12/6/2021 5:08 PM | |
Joined: 10/22/2020 Last visit: 10/1/2024 Posts: 169 Rating:
|
Hello there, to integrate I2C devices into NodeRED on the IOT2050 you can use 3rd party modules. The node-red-contrib-i2c package is pre-installed depending on your installed image and can detect, write to and read from devices. If not, please use the pallet manager in the online editor. In preparation, your device must be connected to SCL and SDA via X10 or X11. Note the jumper on the interface X83 to set the supply voltage to 3.3V or 5V. Configure withiot2050setupthe I2C interface of the Arduino interface respectively. With the help of the i2c-tool you can collect the configurations of your devices. First check that the installation is complete:
The following command shows you a list of available I2C buses:
Here you should see the I2C buses 0 to 6 of the IOT2050. To have a closer look at the devices of the individual connections, the following command can be used for every lane:
In this detail view you can get the necessary information of the device address, which can be used e.g. in the NodeRED modules to read in the data. Together with the number of bytes written/read, the configuration in NodeRED should be complete and you should be able to successfully process data over i2c. Unfortunately, the integration of SPI devices is not that comfortable. As it currently stands, we do not see any direct possibilities for NodeRED. BR |
This contribution was helpful to
1 thankful Users |
12/6/2021 5:35 PM | |
Joined: 11/1/2021 Last visit: 12/4/2023 Posts: 6 Rating:
|
Thank you for your Answer. I will try it. Regards |
Follow us on