I have a sensor that outputs serial UART data. I connected it to a Raspberry Pi4 using a FTDI chip/cable into the USB port. Bluetooth is disabled so I am using PL011 as the primary UART (I am not using the mini UART), it is configured in Raspbian as /dev/ttyUSB0. I use the Node-Red serial communication node to read the sensor - everything is working fine, no problem.
However, I can't figure out how to add multiple UART serial sensors to Node-Red, say I want to use 2/3/4/5 of the same sensor.
The raspberry Pi1/2/3 only haa 1 PL011 UART channel (UART0), but the Raspberry Pi 4 has 5 (UART0/2/3/4/5) according to this document
So is it possible to setup Raspbery Pi 4 / Node-Red to have 5 serial sensors via 5 separate FTDI chips/cables over a USB hub? Is this possible / the correct way to accomplish this task?
Or would I be better off trying to interface the UART sensors to a small microcontroller that aggregates the data and outputs one string of data to the Pi? Or maybe build a small UART to SPI or I2C bridge for each sensor and poll the sensors this way over a single data line?
Any tips appreciated. Thanks