E-Book 3 LED Blinking
E-Book 3 LED Blinking
● Learn how the Voltage, Current and Resistance in 3 LED blinking circuit
1. Introduction:
1.1. Arduino
Arduino is an open-source electronics platform based on easy-to-use hardware
and software. The Arduino board is designed around an Atmel microcontroller
(usually Atmel AVR or Atmel SAM3X8E ARM Cortex-M3) with input/output
(I/O) pins that can be programmed to interact with various electronic
components, such as sensors, motors, and LEDs.
Arduino boards come in various shapes and sizes, and they are widely used by
hobbyists, students, and professionals for various projects, such as home
automation, robotics, and data logging. The Arduino software includes a
programming environment that allows users to write, compile, and upload code
to the board, as well as a library of pre-written code and functions that can be
used to simplify programming tasks.
One of the key features of Arduino is its open-source nature, which means that
the design files and source code for the hardware and software are freely
available for anyone to use and modify. This has led to a large community of
users who contribute to the development of the platform, as well as a wide
range of compatible components and accessories that can be used with Arduino
boards.
2.The holes on a breadboard are typically arranged in rows and columns, with
each row of holes connected electrically to the others in that same row, and each
column of holes connected to the others in that same column.
3. This allows components to be easily connected together to create a circuit,
and then easily changed or removed as needed for testing and experimentation.
Breadboards come in different sizes and shapes, with the larger ones typically
having more rows and columns of holes for more complex circuits.
2. L.E.D.:
1. The light-emitting diode (LED) is a semiconductor device that emits light
when a current flows through it in the forward direction. LEDs are
commonly used as visual indicators in electronic circuits.
The LED symbol is the standard symbol for a diode, with the addition of two
small arrows denoting the emission of light.
3. Arduino:
● Arduino is an open-source
electronics platform based on
easy-to-use hardware and
software.
● The Arduino is a
programmable
microcontroller board that
can be used to control
electronic circuits. It has
digital input/output pins that
can be used to control the
voltage and current flowing through the LED.
In this Circuit, we will use one Arduino with 3 LEDs and Breadboard. Here, we
will control the speed of LEDs.
Step 1: From the Components panel, select the following components and drag
them onto the workspace:
● 3 LED’s
● Breadboard
● Arduino
Step 2: Connect the Arduino board to the breadboard by dragging a wire from
the ground (GND) pin on the Arduino to the negative (-) rail on the breadboard.
Step 3: Insert an LED into the breadboard, making sure that the longer leg of
the LED (the positive leg) is connected to the Arduino for pin 2,pin 3 and pin 4
connect the other end of the LED’s to the negative (-) rail on the breadboard.
Step 4: Your circuit is now complete! You can now test it by clicking on the
"Start Simulation" button at the top of the page.
Step 3: In the setup () function, you need to specify the pin you are using (in
this case, pin 2,3,4) as an output pin using the pinMode () function.
Step 4: In the loop () function, you first turn on the LED by setting the pin 4 to
HIGH using the digitalWrite () function.
Step 5: Then, you use the delay() function to pause the program for 5000
milliseconds (1 second) before turning off the LED by setting the pin 4 to LOW
using the digitalWrite() function again.
Step 6: Then, same follow the above process for pin 3 and pin 2.
Step 6: This creates a simple program that will make the 3 LED’s blink on and
off one by one.
II. Visual indicator: The LEDs can be programmed to indicate the status of a
device or system, such as showing whether a switch is on or off or
indicating the level of a sensor reading.
III. Notification system: The circuit can be used as a notification system, such
as for an alarm or alert system. The LEDs can be programmed to flash or
change colour to indicate different types of notifications.
IV. Decorative lighting: A circuit with 3 LEDs can be used to create
decorative lighting, such as for a holiday display or to add ambiance to a
room.
Summary: