Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4477

Automation, sensing and robotics • Help setting up NPK soil sensor with the Raspberry Pi via RS485 ttl module

$
0
0
Hey, I’m relatively new with using the Raspberry Pi and have been struggling with this for a while and haven’t been able to get it working.

I’m trying to set up a soil NPK sensor to work with the Raspberry Pi4 via the TXD0 and RXD0 ports. They are connected to respectively to the DI and RO ports on the RS485 TTL board. The RS485 A and B are connected to the sensor with the sensor 12v live cable connected directly to the 12v adapter and the negatives connected via the breadboard. I think my wiring is correct but could be wrong.

When I try to read for any transmitted data via the PI using ‘minicom’ using the ‘/dev/ttyS0’ port get no readings using different baud rates. However when I tried jumping the TXD0 and RXD0 headers correctly I get readings returned.

I have tried reading several guides online but most of them relate to Arduino. Would anyone have any ideas as I have tried for days and would truly appreciate it.
IMG_3551.jpeg

IMG_3552.jpeg

IMG_3550.jpeg

Statistics: Posted by smalltalk10 — Wed Jan 31, 2024 5:03 pm — Replies 0 — Views 22



Viewing all articles
Browse latest Browse all 4477

Trending Articles