PyBoard 1.1 Strange UART Behaviour #10565
-
Hello, I've written some code to use the UART connection between my PyBoard (v1.1) and a Raspberry Pi (model 3, B) to send commands, data, etc. So far, it works 100% of the time with no issues when I have the PyBoard powered via USB from the RPi. The weird thing is, however, if the PyBoard is powered in any other manner (eg. plugging the USB cord into another computer or just using a 12V battery, no USB), it would seem that the output from the PyBoard is sent mostly correctly (with occasional distortions that were not present in the RPi-PyBoard connected setup) and any output from the RPi UART gets sent right back to the RPi. Once again, I'll emphasize that, aside from the power setup, there are no changes to wiring or code between these runs, and it works perfectly fine when the RPi is powering the PyBoard. I'm very confused, and would love some feedback about what might be causing either of these issues (power source change causing PyBoard to send wrong characters or the "reflection" of signals back to the RPi) Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Just to ask for the obvious: did you connect GND between the RPi and PyBoard in addition to TX and RX? |
Beta Was this translation helpful? Give feedback.
-
@jimmo I like the example of the switch at a helium balloon. |
Beta Was this translation helpful? Give feedback.
-
@Davis-Garrad Ensuring a reliable common ground between all subsystems is crucial in any electronics project. If a subsystem is "floating" it can actually cause physical damage when connected to a grounded subsystem. Explaining the mechanism would require going beyond the rather novel helium balloon analogy, but I'll do so if you wish... |
Beta Was this translation helpful? Give feedback.
Just to ask for the obvious: did you connect GND between the RPi and PyBoard in addition to TX and RX?