Hi,
I am trying out serial communication between raspberry pi and atmega 32 using
pyserial module . I have tried serial communication between two atmega and it
is working.
But when I try it rpi and atmega I get blank lines as output. My python code is
import serial
ser = serial.Serial('/dev/ttyAMA0',38400,timeout = 10)
while True:
print "try"
val = ser.read(10)
print val
Output:
try
try.
There is a blank line being printed every time in place of val. The logic level
conversion between atmega and rpi has been done perfectly.Can you tell me why
'val' is being printed as blank value.
Thanks in advance.
Gautam Venkata,
SolarMobil.
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor