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

MicroPython • Re: Raspberry PI Pico W UART-UART problem

$
0
0
The receiver seems to receiving a continuous stream of three bytes -

Code:

0x41  'A'0x040x10  '\n'
Which would be a bitstream of '1000 0100 0010 0000 0000 1000' ignoring start and stop bits and idle. It looks to me like a pulse is being repeatedly sent, or there's a baud rate or polarity mismatch.

Possibly a wiring error but I have no real idea. I would suggest simplifying your sending code to -

Code:

def main():  while True:    uart.write("U")    utime.sleep(1000)
That sends one byte every second. See what that shows on the receiver.

Statistics: Posted by hippy — Tue May 07, 2024 1:15 pm



Viewing all articles
Browse latest Browse all 5940