I got an Arduino Nano clone with the CH340 chip and wan't to upload code from the IDE but it doesn't recognize the port.
I am using Ubuntu 20.04 and already installed the driver for the CH340. I can see the arduino at /dev/ttyCH341USB0.
With the Arduino IDE 1.8.19 that I can instal from apt I was able to upload my sketches to this arduino, but the IDE didn't find any libraries.
So I downloaded the AppImage from arduino.cc and now the port doesn't show up.
If I use a different arduino like the Arduino Mega 2560 or Arduino Due the IDE on version 2.3.2 sees them and everything works.
But I wan't to use this Nano for my project.
Linux should have that driver pre-installed.
Where do you see that? Using lsusb?
You can run dmesg and scrutinise the output. The easiest way
- Disconnect the board.
- Run dmesg -w; the program will not close?
- Connect the board; dmesg will report the changes.
- Check for possible issues.
One thing that can be the culprit is BRLTTY. If you find that in the dmesg output, uninstall it.
I read about BRLTTY making problems and already uninstalled it.
The output of dmesg -w is:
[ 269.352225] usb 1-1: new full-speed USB device number 10 using xhci_hcd
[ 269.503441] usb 1-1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice=81.34
[ 269.503446] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 269.503448] usb 1-1: Product: USB Serial
[ 269.506645] usb_ch341 1-1:1.0: ttyCH341USB0: ch341 USB device
I saw the arduino at /dev/ttyCH341USB0 using ls.
I fixed it by installing a different driver for the CH340 from here: https://learn.sparkfun.com/tutorials/how-to-install-ch340-drivers/linux and now the arduino is at /dev/ttyUSB0 and the IDE recognizes it.
So now it works.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.