I took a look at your project.
First of all, a Raspbery Pi4 is installed.
You must use the GPIOs_A_B(GPIOs B+/Pi2).
The error ULINT can't be set to IDINT.... with your project as well.
If I change your project to ‘CODESYS_Control_for_Raspberry_Pi_SL’
the error is gone.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is the operating system and has nothing to do with the runtime. Unless you use 64bit commands. You can see for yourself that you have errors with 64bit compilers
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry, wrong expression.
You have a 64bit system, so do I.
You can also use the 64bit runtime, but most bib and commands are 32bit and are not properly supported.
I had read somewhere that there are problems with I2C. That's why I recommend switching to PI_SL and using the correct gpio.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I succeed to change the device to PI_SL but still the same problem of the I2C device switching between running and not running. the only difference with your project is that yo use I2C_master device version 4.7.0 and i 4.7.13, for GPIO i also use the 4.7.13 version and you the 4.7.0. Can you send me the older version of the Raspberry PI pheripals library, because i cannot choose lower version then 4.7.10 for the GPIO and I2C_master device
Last edit: jeroenaero 2024-11-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I also installed your codesys version with the codesys for raspberry pi package version 4.7.0. but with no succes, only the TCA multiplexer has a constant green turning circle, the ADS1115 still changing from running to not running.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't have a multiplexer so it very weird that it connects with that multiplexer.
If i do a I2C scan on the PI terminal, i only get the device addresses 0x48 and 0x51. One for the ADC and one for RTC.
I will try again with your libraries
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Finnaly i get it working. There was a line in the file that set the ADS1015 chip in /boot/firmware/config.txt which i removed and after that the ADS1115 has a green turning circle and i got values. i created a new component so it fits our ADS1015. see screenshot. It works also with Codesys Control for Raspberry Pi 64 SL after adding the ULINT_TO_UDINT conversion in the library.
i think the chip was all the time in use by the Raspberry pi itself.
I included a project archive in the attachments
I took a look at your project.
First of all, a Raspbery Pi4 is installed.
You must use the GPIOs_A_B(GPIOs B+/Pi2).
The error ULINT can't be set to IDINT.... with your project as well.
If I change your project to ‘CODESYS_Control_for_Raspberry_Pi_SL’
the error is gone.
We use a Compute module 4 it's 64bit based, so i cannot change it to sl.what are the possibilities to get the i2c working?
This is the operating system and has nothing to do with the runtime. Unless you use 64bit commands. You can see for yourself that you have errors with 64bit compilers
Sorry, wrong expression.
You have a 64bit system, so do I.
You can also use the 64bit runtime, but most bib and commands are 32bit and are not properly supported.
I had read somewhere that there are problems with I2C. That's why I recommend switching to PI_SL and using the correct gpio.
I succeed to change the device to PI_SL but still the same problem of the I2C device switching between running and not running. the only difference with your project is that yo use I2C_master device version 4.7.0 and i 4.7.13, for GPIO i also use the 4.7.13 version and you the 4.7.0. Can you send me the older version of the Raspberry PI pheripals library, because i cannot choose lower version then 4.7.10 for the GPIO and I2C_master device
Last edit: jeroenaero 2024-11-11
I also installed your codesys version with the codesys for raspberry pi package version 4.7.0. but with no succes, only the TCA multiplexer has a constant green turning circle, the ADS1115 still changing from running to not running.
Are you using a multiplexer?
Which one?
Ok,
here are the libraries I use.
First of all, try to get the ADS1115 to run completely on its own. Without MUX or other sensors.
As muxboard I use this one:
https://www.digikey.de/de/products/detail/sparkfun-electronics/BOB-16784/12714950?utm_adgroup=&utm_source=google&utm_medium=cpc&utm_campaign=PMax:%20Smart%20Shopping_Product_Zombie%20SKUs&utm_term=&productid=12714950&utm_content=&utm_id=go_cmp-18521752285_adg-_ad-__dev-c_ext-_prd-12714950_sig-Cj0KCQiA88a5BhDPARIsAFj595gkPXWPT8aa-EixL97BDWjO988WDhcx-iHOVbqb_H8CLpHBcwLuJW0aAu1JEALw_wcB&gad_source=1&gclid=Cj0KCQiA88a5BhDPARIsAFj595gkPXWPT8aa-EixL97BDWjO988WDhcx-iHOVbqb_H8CLpHBcwLuJW0aAu1JEALw_wcB
All other boards don't work for me either.
The terminating resistor is missing
Important: Before you install the drivers, remove all other device drivers.
My drivers are all located in ‘Raspberry I2C MUX_11_2023’
Last edit: andrax 2024-11-11
I don't have a multiplexer so it very weird that it connects with that multiplexer.
If i do a I2C scan on the PI terminal, i only get the device addresses 0x48 and 0x51. One for the ADC and one for RTC.
I will try again with your libraries
Finnaly i get it working. There was a line in the file that set the ADS1015 chip in /boot/firmware/config.txt which i removed and after that the ADS1115 has a green turning circle and i got values. i created a new component so it fits our ADS1015. see screenshot. It works also with Codesys Control for Raspberry Pi 64 SL after adding the ULINT_TO_UDINT conversion in the library.
i think the chip was all the time in use by the Raspberry pi itself.
Thanks for your help!