Raspberry Pi Asked by rdel on November 15, 2021
Is it possible to read more than one TTL sensor on serial RX GPIO 10?
I know you can add multiple serial sensors on /dev/ttyUSBx
Does the same apply to /dev/ttyAMAx ?
Use a MUX IC between the sensors and the pin. That should work.
Answered by Sohan Arafat on November 15, 2021
While I have not been able to find a way to read multiple TTL sensors on a single GPIO pin, I did find this way of using other GPIO pins as serial RX pins via the pigpio library. Works great.
http://abyz.me.uk/rpi/pigpio/python.html#bb_serial_read
And a link to simple python code for reading a given GPIO pin as serial:
https://www.rs-online.com/designspark/raspberry-pi-2nd-uart-a-k-a-bit-banging-a-k-a-software-serial
Answered by rdel on November 15, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP