segalion / raspipool

Swimming Pool Automation Systen with Raspberry Pi + Home Assistant
MIT License
393 stars 73 forks source link

UART's and using more than one #36

Closed cremer42 closed 1 year ago

cremer42 commented 1 year ago

I have had a little luck working on this project considering it is four years old. I've been able to get it up and going for the most part, but I am not able to get two uarts going at one time. Ive swapped both back and forth and know both the pH and ORP work. But simultaneously they do not. What could I be missing?

I am on a pi4

Here is my current config:

RaspiPool

force_turbo=1 dtoverlay=disable-bt enable_uart=1 dtoverlay=uart0,txd0_pin=8,rxd0_pin=10 dtoverlay=uart5,txd5_pin=32,rxd5_pin=33 dtoverlay=w1-gpio

My uart on ttyAMA0 is working great on pins 8 and 10, but the 2nd uart isnt working on pins 32&33. I have tried dtoverlay=uartx (x being 2-5) as well.

I know my yaml is okay, like i said, I can swap ports on the two sensors and swap hardware and it will work. I must be missing something in my pi4 setup.

Thanks!

cremer42 commented 1 year ago

I was able to get this working by using uart 4 instead of 5.