First, here is my testing setup:
- Intel(R) Atom(TM) CPU N270 @ 1.60GHz
- 1 GB Ram
- 80GB HD
running Debian Linux Jessie/Sid (testing distro, Linux kernel version 3.14-2-686-pae).
After installing the Arduino Ide from the Debian repository i connected the Leonardo the first time. The device shows up in /var/log/syslog as ttyACM0:
[ 8990.196160] usb 2-2: new full-speed USB device number 31 using uhci_hcd [ 8990.371296] usb 2-2: New USB device found, idVendor=2341, idProduct=8036 [ 8990.371314] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 8990.371327] usb 2-2: Product: Arduino Leonardo [ 8990.371338] usb 2-2: Manufacturer: Arduino LLC [ 8990.375805] cdc_acm 2-2:1.0: This device cannot do calls on its own. It is not a modem. [ 8990.375913] cdc_acm 2-2:1.0: ttyACM0: USB ACM device [ 8990.389678] input: Arduino LLC Arduino Leonardo as /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.2/0003:2341:8036.0011/input/input35 [ 8990.390371] hid-generic 0003:2341:8036.0011: input,hidraw1: USB HID v1.01 Mouse [Arduino LLC Arduino Leonardo] on usb-0000:00:1d.0-2/input2
The first scetch:
Then i loaded the “Blink” scetch from “File” => “Examples” => “01. Basics” into the Arduino ide and set the Serial Port in “Tools” => “Serial Port” to /dev/ttyACM0.
I uploaded the “Blink” scetch to the board and added the little circuit with a green LED described on the Arduino Tutorial page. It works quite well 🙂
The traffic light :
Then i added a yellow and a red LED and their resistors to the breadboard and added some more code to the scetch. The first part of this little video shows how the Arduino led is lightning up during the upload of the scetch, the second part shows the traffic light.
Things to be done:
Since this is my first try and just the first topic of the used Arduino tutorial the scetch and the circuit is quite extremely simpl. The code has to be more efficient, additional Parts will be added to the circuit and so on. But the small experiments are quite a lot of fun and i enjoy the time very much. I’m on it …