are designated as Sketch by Arduino, in a programming language similar to C. This Arduino IDE also creates the connection between the PC and
Arduino.
For everyone who does not have the Arduino ready to operate, here is the system installation in seven steps:
1 Download the Windows installer for the current Arduino IDE at www.arduino.cc/en/Main/Software or simply use the file arduino-1.6.8-
windows.exe from the downloads for the Advent calendar.
2 Install the Arduino IDE before you connect the Arduino to the PC for the first time. The necessary drivers are thereby automatically installed
with it and the Arduino is later recognised automatically. In doing so, make sure that in the dialogue field Installation Options , all check
boxes are checked. Depending on your Windows configuration, a confirmation of the user account control is required.
3 After the installation, start the Arduino IDE and then connect the Arduino using a USB cable. The driver is now automatically installed and
simulates via USB a serial port to which the Arduino is connected.
4 After the driver is installed and not before, go to the menu of the Arduino IDE and select Tools/Port. In most cases, only a single serial port is
shown. Select the check box here.
5 Then, via the menu option Tools/Board, select the Arduino/Genuino Uno, if this was not automatically recognised.
6 In the menu, select File/Examples/Firmata/StandardFirmata. A new window of the Arduino IDE opens with the StandardFirmata sketch.
7 Click on the Upload icon in the top toolbar (the round symbol with the arrow pointing to the right). The software is now compiled and
transferred to the connected Arduino.
If you use Linux or Mac OS X: On the website www.arduino.cc/en/Guide/HomePage you will find installation notes for the Arduino IDE for
these operating systems.
Lighting the LED
No separate program is needed for the first experiment. The Firmata test program switches an LED on and off and at the same time, thereby also
tests whether StandardFirmata is functioning.
Components: 1xbreadboard, 1xred LED, 1x220-ohm resistor (red-red-brown), 2xconnection cable
Connect the LED as shown in the figure via a series resistor to Pin 5 of the Arduino.
Now start the programme firmata_test.exe from the Downloads for the Advent Calendar. In the Port menu, select the port used by the Arduino.
Control elements for the pins of the Arduino will then appear.
The Firmata test programme causes the LED to light up.
Click on the Low button in the Pin 5 line; the LED switches on and the button switches to High. Click on it again; the LED switches off again.
For status indicators without additional hardware, the Arduino also has its own LED. This can be controlled via Pin 13. Click on the Low button in
the Pin 13 line; this LED switches on off.
Switching off the Arduino
The Arduino does not have an off switch. You need only pull the plug, and it switches off. The next time you switch it on, the last stored
program starts automatically – thus in our case the StandardFirmata. The same thing happens when one presses the Reset button.
Day 2
Today on the Advent calendar
• Green LED
• 220-ohm resistor (red-red-brown)
• Connection cable
Alternating flashing light
A simple programme allows two LEDs to flash alternately.