Open jajito opened 8 months ago
That sounds like you missing pip packages ?
pip install pyserial
Thanks for the fast reply. It was a problem with several python versions... After leaving only one and do your pip install pyserial now compiles Solved
How to print to serial monitor through USB?
How to print to serial monitor through USB?
I have the same question. There are 5 different Serial* available to arduino IDE (0,1,2,3,4) and none of them print anything that can be picked up by arduino serial monitor or screen /dev/ttyACM0 (I am on linux, it will be com-something for windows, you can try putty). Looking around in the linux on the milk v duo with ssh, there is a /dev/ttyGS0 where you can intercept flashing messages from arduino IDE (and send messages to yourself), but this also does not show any messages from an arduino program containing serial.Print. When I get home from school I will try connecting a ch340 adapter to the various serial interfaces on the duo. Maybe there is still documentation to be added, after all arduino support was added yesterday.
I actually kind of had one on me so I was able to find that:
Serial 0,3 share the same pins (there are 5 pins above the pair on the left side with the usb c port pointing away from you)
Serial 1 is the first 2 pins on the top on left side
Serial 4 is below the ground below serial 1
I can't figure out which one serial 2 is (maybe it needs to be configured from system?
Hi. I have tried every UART port, connecting a CH343 to the board. Only UART0/1 works. It's the PIN 16 and PIN 17. And the result is the Boot of the linux system (that loads linux kernel). But no way of getting result of the arduino sketch. I found no way of getting result of the Serial.println() in Arduino, not by USB, not by UART. Appears that the Arduino runs over the Linux Kernel. The board first load Linux Kernel from the SD card, and after that runs the Arduino sketch. With the CH343 connected to UART0/1 you can access to the linux command line, with Arduino Serial Monitor, or Putty. I'm on Windows, so through the COM port. That's the result of my investigation so far.
I'm facing the same issue here but I've only Python versions 3.10 and 3.12. Does it need Python 2.x?
I'm facing the same issue here but I've only Python versions 3.10 and 3.12. Does it need Python 2.x?
I don't know what you mean? pip install pyserial doesn't work for python 3.10 or 3.12?
@shiptux pip
is replaced pip3
but it recomended me to run in venv using pipx so I did it. pyserial
is already installed but still getting the same error.
@shiptux
pip
is replacedpip3
but it recomended me to run in venv using pipx so I did it.pyserial
is already installed but still getting the same error.
If you installed pyserial in a venv environment. Then the burntool.py might not recognise your pyserial, so I recommend you to install it global.
Hi. Trying to use Arduino as per your instructions. But when trying to upload any sketch, error: File "C:\Users\javie\AppData\Local\Arduino15\packages\sophgo\tools\burntool_py\0.2\burntool.py", line 11, in
import serial
ModuleNotFoundError: No module named 'serial'
Failed uploading: uploading error: exit status 1
Thanks