Wednesday, 16 November 2016

DCcduino MEGA 2560

Bought a couple of these clones cheap off ebay for use with a PA/ATU project... anyway they use the CH340 and not the FTDI chipset and i run linux on the destop.... so the arduino IDE had a problem using them.

Fix was simple.... Once you read the error messages.

The serial port being created was NOT /dev/ttyACM0 but /dev/ttyUSB0 adjust according to your configuration (look at dmesg to see what was actually created)

[ 1153.436533] usb 2-1.2: new full-speed USB device number 6 using ehci-pci
[ 1153.530065] usb 2-1.2: New USB device found, idVendor=1a86, idProduct=7523
[ 1153.530074] usb 2-1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 1153.530080] usb 2-1.2: Product: USB2.0-Serial
[ 1153.530601] ch341 2-1.2:1.0: ch341-uart converter detected
[ 1153.532502] usb 2-1.2: ch341-uart converter now attached to ttyUSB0


sudo usermod -a -G dialout

sudo chmod a+rw /dev/ttyACM0

and then with one board...

sudo chmod a+rw /dev/ttyUSB0

then you can use the device and program it etc.

3 comments:

  1. is there Windows software to drive them?

    73 G1KQH

    ReplyDelete
  2. Honestly no idea I don't run Windows... I expect there is. I used the Arduino software and then those were the extra steps I had to perform for Linux.

    Dom
    M1KTA

    ReplyDelete
  3. I am sure will be buried in here... https://www.arduino.cc/en/Guide/Windows

    ReplyDelete