ser = serial.Serial('COM4', 9600) Traceback (most recent call last): File "", line 1, in AttributeError: module 'serial' has no attribute 'Serial' help pls
Hello, I solved the problem. I uninstalled serial with: pip uninstall serial Then I installed pyserial: pip install pyserial Here's the first lines code: import serial import time ser = serial.Serial('COM5', 9600) print(ser.name) # This prints the port you have for your arduino, in my case COM5 As you can see if you install 'pyserial' you still import serial. Let me know if you managed to solve this problem!
ser = serial.Serial('COM4', 9600)
Traceback (most recent call last):
File "", line 1, in
AttributeError: module 'serial' has no attribute 'Serial'
help pls
same
Hello, I solved the problem.
I uninstalled serial with:
pip uninstall serial
Then I installed pyserial:
pip install pyserial
Here's the first lines code:
import serial
import time
ser = serial.Serial('COM5', 9600)
print(ser.name) # This prints the port you have for your arduino, in my case COM5
As you can see if you install 'pyserial' you still import serial.
Let me know if you managed to solve this problem!
but how we define the pin number of arduino at which led is connected
Thanks my brother
Nice tutorial 👍
Please make more projects and tutorials with arduino python.
Usually in micropython we have to import machine library and utime function??
I think the (b )is builtin ?
I like it i m a noob and youre the first indian and the only i follow you re cool i don't know
bro why you cant use python idle
ODIONOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO HAHAHAHAHA
it doesnt let me install the pip install seria
\
Then its not yours :)
it is pip install pyserial
what does b means
Bytes
i think using pyfirmata is more simple than this
oo bahi hindi ma tutorial bana loo! apni oqat mat bhoolo
Bhai hindi bolo