Lopy to Raspberry pie 3 via serial
-
Hello! Can anyone help me please? I want to send data from lopy to raspberry pie 3...I follow the instructions from other topics but I can t figure it out! Thank you!
lopy code:
import machine, time, pycom
pycom.heartbeat(False)
pycom.rgbled(0x000000)
#uart1 = UART(1, 115200, pins=("P3", "P4"))
uart1 = UART(1, 115300, bits=8, parity=None, stop=1)
uart1.init(baudrate=115200, bits=8, parity=None, stop=1)while True:
uart1.write(b'send')
time.sleep(1)raspberry code:
import serial
with serial.Serial('/dev/ttyS0', 115200, timeout=10) as ser:
print(ser.read(4))

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login