In my previous post – getting started with arduino L0 – we have set up the arduino board to communicate with our PC and we also uploaded a very simple sketch on the board.
Today I’ll go through the first project of the Arduino projects book. We’ll start understanding the basics of electricity, how to build a simple circuit with some basic components, and the difference between series and parallel circuit.
1.Introduction to Electricity
Electricity is a type of energy, much like heat, gravity, or light. Electrical energy flows through conductors, like wires. You can convert electrical energy into other forms of energy to do something interesting, such as turning on a light or making some noise out of a speaker.
Transducers are components that transform other forms of energy into electricity and vice versa.
2.How a circuit works
In a closed loop of wires (a circuit), the electricity given by a power supply (e.g. a battery) flows from a point of higher potential energy to a point of lower potential energy. The electricity can flow in one direction or can change. If it flows only in one direction we call it Direct Current (DC). On the contrary, if the direction of the current changes it is called Alternating Current (AC). AC current is the type of electricity that comes from a wall socket.
Current (A) – amount of electrical charge flowing past a specific point in your circuit;
Voltage (V) – difference in energy between one point and another;
Resistance (Ω)– how much a component resists the flow of electrical energy.
Remember that to make a circuit working you need a complete path from the energy source to the point of least energy, otherwise it won’t work.
4.How a circuit looks like
6.Building your first circuit
a) First of all check that your Arduino board is not connected to a power source before starting building the circuit.
b) Then connect a red wire to the 5V pin and put the other end in one of the long bus lines in your breadboard. Then connect a black wire to the ground on Arduino and to the adjacent bus line.
c) The board have power now. Next step is to place the switch across the center of the breadboard.
The circuit is ready! Now you can plug the USB cable into your Arduino board and turn the LED on and off by pressing the switch.
By pressing the switch and closing the circuit you will see the led turning on.
You can assemble two main types of circuits:
Series circuit – where the components come one after another;
These were the basics of electricity, in the next lesson we are going to run the first program to let our Arduino control things!!!