AttributeError when running your code

ForumCategory: ArduinoAttributeError when running your code
David asked 2 months ago

Hello I am getting this error while running your code:”
I am using your code to attempt to test reading data from Arduino Uno R3 serial port on my raspberry pi 3 +
I have followed your instructions.
 
Python 3.7.3 (/usr/bin/python3)
>>> %Run Ser_Tesst_shrt.py
Traceback (most recent call last):
File “/home/pi/Documents/PyDev/Ser_Tesst_shrt.py”, line 4, in <module>
ser = serial.Serial(port=”/dev/ttyAMC0″),
AttributeError: module ‘serial’ has no attribute ‘Serial’
>>>

Click to rate this post!
[Total: 0 Average: 0]
Do NOT follow this link or you will be banned from the site!
DIY Projects