-
Basic electronic
In this section we will work on basic electronic concepts such as Ohm's law, resistors, initial basic circuits, etc.
Basic circuit with Arduino. Blinking LED
This is the schematic of the first application or project that we are going to make with Arduino.
As you can see, it is a basic project in which an LED will be lit with a minimum of programming knowledge.
Hardware required
- Arduino Board
- LED
- 220 ohm resistor
- Breadboard
- Jumper wires
Theoretical concepts
Few components will be needed to carry out this first project.
The first is an Arduino board which we are going to use in practically all the projects proposed in this course. A resistor, which is a passive electronic element that limits the flow of electricity in a circuit by reducing its voltage. Finally, an LED diode will be used. These diodes only pass current in one direction and light up when electricity passes through them.
We are using a 220 ohm resistor which is appropriate for this circuit.
In the case of not using resistance, the electronics of the LED diode will suffer from the high voltage received and will surely end up breaking.
Code
In the above code, it should be noted that the setup() function will be executed only once. When the device is turned on. While the loop() function is going to be executed repeatedly, with which the led will turn on and off with delays of half a second.