Recently I have been playing around with Arduino.
Arduino is really cool and is a great way to learn electronics.
In this Instructable I will teach you the basics of Arduino including:
- And a project with this knowledge.
Step 1: The Board
- The green box provides power to the Arduino and this is plugged in to a USB cable.
- The orange provides the power to the bread board either 5v or 3.3v as well as ground.
- The red port is a port to power the Arduino without USB at 7-12v.
- Purple is a reset button for the microcontroller.
- Pale blue is the brains of the operation.
- Yellow are the digital pins.
- Navy is analog in.
- Turquoise is the power LEDs that indicates if there is power.
- Finally cyan is TX and RX LEDs They will flash rapidly when you upload a sketch/code.
You don’t have to remember all the names but its good have a vague idea of what everything is.
Components have different ways of being presented:-
Realistic illustrations are images or drawings of the component that look like the component.
Schematic diagrams use symbols to represent components.
In this section I will run through some of the basic components that will be used in our project at the end.
Step 3: LED
On the left is the schematic diagram and on the right is the realistic illustration.
You will notice that one leg of the LED is longer than the other. The longer leg is called anode and connects to power and the shorter leg is called cathode.
Tip – (The black – is usually ground in circuits and red + is power.)
What is an LED?
An LED is a diode that lights up when electricity passes through it.
LED = Light Emitting Diode
Step 4: Pushbuttons
How it works?
A push button works by having two pieces of conductive metal apart from each other. In the middle of these there is another sprigged piece of metal that if pushed down will complete the circuit.. This allows electricity to flow through.
How is it detected?
When the electricity flows through you can channel it into digital, in which current can be read.
Step 5: Resistors
How it works
Electricity is a type of energy. Like all energy, you can turn it into a different type of energy. A resistor works by heating up very slightly therefore converting the electricity into heat (another energy.)
Why we need it.
We need resistors, as not all components will run on the same current as it will simply be too much.
On a resistor there are lots of different colours!
What are these? The colour on a resistor is a code that tells us how much energy they are going to soak up from our circuit.
Here is a Resistor decoder to help you discover this.
Step 6: Potentiometers
How it works
Inside the potentiometer is a circular disk of metal going between the front two legs. The middle knob is a piece of metal that touches the ring at the point it is facing.
Finally, the third leg reads the resistance between the two legs and the knob.
All of this results in us reading the angle of the knob.
Step 7: Bread Board
A bread board has lots of horizontal strips of wire. When components are put in, they act as connecters.
In the image above you can see that the circuit will only continue when a component is between two strips.
Step 8: Tinkercad!
Once you are in, you can build and create prototypes before making them physically.
You can even code your circuits!
Lets create a button and LED
(you can use tinkercad circuits if you don’t have an Arduino)
Step 9: Getting Started
Next wire 5v to +/positive and then ground to –/negative.
You can colour the wires, but it won’t affect your circuit if you don’t.
Step 10: The Button
Without the resistor the 5v would be too much for the button and the LED.
The resistor must also be wired to positive, as that has the electricity going to it.
You can change the resistance of the resistor in the top right as shown.
Step 11: The LED!
You can rotate the LED at the top left corner.
Put a wire between the push button and the anode leg and then from cathode to negative(ground)
Tinkercad allows you to explore Arduino without the risk of frying your circuit!
Now we are all done.
Click on the run simulation and what your LED illuminate as you press the push button!
Step 12: The Practical 🔨
Now it’s time for the fun bit!
We are going to create a night light that uses most of what we have learnt so far.
Read more: Arduino Basics With Night Light