Ubuntu 12.04.2

My old install of 12.04 wouldn’t take an update for some reason. I took the opportunity to do a bit of cleanup and moved /home to its own partition so I can trash root in the future.

The newer Ubuntu install is easier. The package finder and loader worked pretty well.

Part of my desire to do an update was to get a remote Arduino serial feed available at the Robot Ranch for any number of reasons (temp/humidity/soil moisture/etc.)

So, after the new install, I was hoping for plug-and-go! Alas, it was plug-and-no… 🙁

After a bit of poking around, I found the udev incantation to allow the system to see the board. Strangely, my board reported a different id than what the webpage suggested, so here’s how I did it.

Put your user into the group “dialout” so you can access the device:

$ sudo usermod -a -G dialout `whoami`

See what the system thinks of its USB topography:

$ lsusb

You’ll get a bunch of stuff like:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
...
Bus 007 Device 004: ID 045e:0750 Microsoft Corp. Wired Keyboard 600

Plug or unplug your Arudino and to an lsusb again to see what changes:

Bus 007 Device 002: ID 2341:0001  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
...
Bus 007 Device 004: ID 045e:0750 Microsoft Corp. Wired Keyboard 600

Ooo! We’ve got a ID: 2341:0001 – that’s what we want. The 2341 is the Vendor ID and the 0001 is the Product ID.

Now we have to tell the device loader udev what to do with the device when we plug it in.

SUBSYSTEMS=="usb", ATTRS{product}=="FT232R USB UART", ATTRS{idProduct}=="0001", ATTRS{idVendor}=="2341", SYMLINK+="arduino arduino_$attr{serial}"
SUBSYSTEMS=="usb", ATTRS{product}=="ARDUINO NANO",    ATTRS{idProduct}=="0001", ATTRS{idVendor}=="2341", SYMLINK+="arduino arduino_nano_$attr{serial}"

Put that into a file in /etc/udev/rules.d/ if there isn’t something there already. Maybe name the file something like: 10-local.rules

Dunno if I need the NANO, but didn’t seem to hurt working with the UNO. Will update after I try a few different flavors like FTDI Friend, etc.

Reboot, log in, launch Arudino and try to upload and run a sketch. Yea!

 

 

This entry was posted in Arduino, Software, Upgrade. Bookmark the permalink.

Leave a Reply