I am running ubuntu in a VM using VirtualBox and can’t connect to the Arduino.
Bus 001 Device 003: ID 2341:0042 Arduino SA Mega 2560 R3 (CDC ACM)
When I click Ports in GroundControl, it shows a long list of /dev/ttyS… port with, at the top, /dev/ttyACM0 and /dev/ttyprintk
I can select any port but when I click Connect, it says “Not Connected”.
I’ve tried entering “sudo usermod -a -G dialout julian” before running GroundControl (mentioned in other posts) but still no luck.
Do I assume /dev/ttyACM0 is the right port? What else can I try to connect?
Thanks for any help.
On my Ubuntu the port is /dev/ttyACM0. To confirm you can do a “ls /dev” with the Mega plugged in. /dev/ttyACM0 should show up. Unplug it and the /dev/ttyACM0 should have gone.
Do you have the ArduionIDE installed in the VM? Did the firmware upload go well?
I had to restart after adding my user to dialup. I suggest installing the Arduino IDE and trying to connect from there first.
Hope this helps
Thanks @Gero and @Bee for your help. I had originally loaded the Arduino from Windows and when I tried it from the ubuntu VM, it wouldn’t connect.
After trying everything I could, I gave up and found another old laptop onto which I loaded ubuntu natively (i.e. not VirtualBox). Everything works now - loading the Arduino and running some tests with motors connected.
In case anyone else is reading this, I did have to run this command before I could connect to the Arduino:
sudo usermod -a -G dialout
I’m glad your up and running. Keep up the good work.