will
New Member
Posts: 10
|
Post by will on Aug 27, 2018 8:43:48 GMT -8
I am trying to communicate with the our weather board via serial connection to a Raspberry Pi zero. This is something I do frequently between Rpis and Arduino microprocessors. I can't get it to work!
With my Raspberry Pis I get nothing. When connected to an Arduino Uno (using software serial) I get a stream of data but it looks like there's a parity problem as I only get partially readable characters and partially garbage.
Any ideas would be appreciated.
|
|
will
New Member
Posts: 10
|
Post by will on Aug 28, 2018 6:26:12 GMT -8
Part of my own answer...software serial is only good to 57600 and when I plug in an Arduino Mega the stream is there and ok. Does not explain why I can not see anything on multiple RPis.
|
|
|
Post by SDL on Aug 28, 2018 13:45:41 GMT -8
It has to do with the relative accuracy of timing on the Raspberry Pi versus the Arduino. The Pi having a multi-tasking pre-emptive operating system makes for far less accurate timing. Cut the baud rate down to 19200 and see if that does it. An Arduino has no real operating system, so the timing is very predictive.
BP
|
|