Setting up your Arduino/Genuino Uno

The Arduino/Genuino Uno is the entry-level product in a family of easy-to-use microcontroller boards which connect to a computer via a USB port and allow you to control all manner of devices.

It can be programmed directly using the Arduino IDE software, but if you are new to computer control and programming, the MECControl system gives you a simpler way to get started.

Inputs and outputs

Here is a photo of the Arduino/Genuino Uno:

Arduino/Genuino Uno

Along the top are 14 connectors called pins, labelled 0 to 13. These can be used as either digital inputs or digital outputs.

As outputs, they can be connected to devices such as LEDs, Motors and Meccanoid Servo Motors.

As inputs, they can be connected to devices such as Buttons and Switches.

Along the bottom are 6 pins labelled A0 to A5. These are analogue inputs which can be connected to devices such as Potentiometers, Buttons and Switches.

Powering the Arduino/Genuino Uno

The simplest way to power your Arduino/Genuino Uno is to plug it into your computer’s USB port. Your computer then provides it with a 5V DC supply of up to 500mA. This is sufficient to power the Arduino/Genuino Uno along with a few other low-current devices like LEDs, but if your Arduino/Genuino Uno will be controlling high-current devices such as Motors, you will probably need to power these from a separate regulated power supply.

Universal laptop computer power supplies can generally provide 4A at 12V DC, enough to run several 12V Motors.

Some USB mobile phone chargers provide 2A at 5V DC, ideal for devices such as Meccanoid Servo Motors.

Whatever power supply you choose, make sure that its negative lead is connected one of the ground pins labelled GND on your Arduino/Genuino Uno.

However, if your power supply’s voltage is higher than 5V, keep the positive lead away from your Arduino/Genuino Uno at all costs — it is strictly for use by the devices that your Arduino/Genuino Uno is controlling. Connecting it to one of the pins on your Arduino/Genuino Uno is likely to cause damage.

Experimenting

The best way to experiment with the Arduino/Genuino Uno and electronic components in general is to use a breadboard. A breadboard allows you to quickly connect components and wires to each other without soldering.

Many breadboards have lugs that allow multiple boards to be placed side-by-side and edge plates to be fitted for securing larger components such as buttons and switches.

Here is a photo of a typical breadboard, with superimposed lines showing how its pinholes are connected internally:

Breadboard

By convention and for convenience, one of the bottom rows of pins is normally connected to a ground pin, labelled GND, on your Arduino/Genuino Uno, and/or the negative lead from your power supply.

One of the top rows of pins is normally connected to the pin labelled 5V on your Arduino/Genuino Uno, or the positive lead from your power supply (but not both — see ‘Powering the Arduino/Genuino Uno’ above).

The pins in the central columns can then be used for connecting components and wires to each other.

It is easiest to use stiff single-core wire with breadboard (or ready-made jumper wires) and to stick to a colour code, such as the following: