Hello!
Can anybody inform how to start working with UART, I2C, SPI of RPI B4 in node-red?
If its possible
Thanks
please help!
I don't know about SPI, but for using the UART there is the serial node. node-red-node-serialport
and node-red-contrib-i2c for low level i2c
However there are also dedicated nodes for many devices that use SPI and/or i2c - so it really depends what device you are trying to talk to.
Also don't forget to enable the required interface using the sudo raspi-config
tool
Let us know to what you are connecting.
Thanks for the support!
I started with UART, I ve done successfull data transfer via "serial" node, but already have the second day of unsuccessfull trying to receive data from another device...
Plese get the work example cause Ive already tried all possible variants
In Phy Ive got the signals on RPI
What do you mean by "another device"? Is this a sensor attached to the Raspberry GPIO pins (what sensor, which pins)? Or a sensor attached to a microcontroller such as an Arduino?
What do you mean by "In Phy I've got the signals"?
If you have a python script which can print the sensor values, you could simply run that script via a Node-Red exec node.
It's not easy to give you a working example since you have not given any information on the device.
Thanks for the answer!
I use PC + USB-RS485 converter and that is "another device". In another side I use RPI UART with RS485 phy(physical layer).
After MAX485 RO I see signals to RPI UART RX pin
And I dont undertand about phyton scripts and exec mode, I cant use print when I need to receive
It seems possible that I misunderstood your previous post, in which case python is not relevant.
so I still need an example of serial receive, I couldnt find it yet on net and on forum
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.