Go Down

Topic: problem in communication serial (Read 421 times) previous topic - next topic

jpaulo69

Apr 06, 2019, 03:13 am Last Edit: Apr 06, 2019, 07:19 pm by jpaulo69
How to perform a serial configuration in Python ,Azure ,windows10, i have used this code without success in my Arduino  no have comunication 
Code: [Select]
import serial
import time
 
ser = serial.Serial('COM5', 9600)
i=0

while i<180:
ser.write(str(chr(116)))


#t = raw_input("teste")
#print type(teste)
#ser.println((str(chr(1160))))
#time.sleep(1000)
print (ser.readline())



I receive this error      {Module 'serial' has no 'Serial' member; maybe 'serial'?}

groundFungus

This is an Arduino forum.  We gladly offer help for the Arduino compatible boards and the Arduino IDE.  While someone with Python ,Azure or windows10 experience may be able to help, it may be a while before they come along.  Better to find a forum that deals with the language that you want to use.

Idahowalker

How to perform a serial configuration in Python ,Azure ,windows10, i have used this code without success in my Arduino  no have comunication 
Code: [Select]
import serial
import time
 
ser = serial.Serial('COM5', 9600)
i=0

while i<180:
ser.write(str(chr(116)))


#t = raw_input("teste")
#print type(teste)
#ser.println((str(chr(1160))))
#time.sleep(1000)
print (ser.readline())



I receive this error      {Module 'serial' has no 'Serial' member; maybe 'serial'?}
You are loading Python into your Arduino? You are looking for Arduino serial code to receive code from a external serial device? You are looking for Python code that will talk to an Arduino?



jpaulo69

You are loading Python into your Arduino? You are looking for Arduino serial code to receive code from a external serial device? You are looking for Python code that will talk to an Arduino?



The error continues even if the door is changed.

Idahowalker

The error continues even if the door is changed.
The fly ate the yellow bird, 7, 9, 9 4.

jpaulo69

I'm calling a Python code from Arduino (which controls a motor) through the python scipt on the pc

Go Up