Build Circuit To Blink LEDs in Different Patterns Microcontroller Programming Project
Build Circuit To Blink LEDs in Different Patterns Microcontroller Programming Project
POLYTECHNIC
DEPARTMENT OF MECHATRONIC TECHNOLOGY
Submitted By
ROLL
NO. NAME OF STUDENT ENROLMENT NO
152 SHAIKH AMAN AJIJ 2000340620
163 YENGE CHAITANYA MAHESH 2000340650
165 BHAD SUMIT VALMIK 2000340200
166 AHIRE VISHAL SUDHAKAR 2100340539
173 BANBERU SIDDHARTH SHRIKISAN 2100340557
SANJIVANI K. B. P. POLYTECHNIC
DEPARTMENT OF MECHATRONIC TECHNOLOGY
CERTIFICATE
This is to certify that the Project report entitled
Under our supervision and guidance for partial fulfillment of the requirement for
Diploma in Mecatronics Technology affiliated to
Maharashtra State Board of Technical Education,
Mumbai For academic year
2022 - 2023
I hope you understood how to say “hello world” using arduino. This is
a good start for any one new to electronics and arduino. If you have
any doubts, feel free to ask. I have added a photograph of the circuit I
tested below. You can also watch the video of LED blinking using
arduino.
Components Required
You will need the following components −
1 × Breadboard
1 × Arduino Uno R3
5 × LED
28 × Jumper
Program
void setup() {
// put your setup code here, to run once:
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
pinMode(11, OUTPUT);
pinMode(10, OUTPUT);
pinMode(9, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(13, HIGH);
digitalWrite(12, LOW);
digitalWrite(11, LOW);
digitalWrite(10, LOW);
digitalWrite(9, LOW);
delay(500);
digitalWrite(13, LOW);
digitalWrite(12, HIGH);
digitalWrite(11, LOW);
digitalWrite(10, LOW);
digitalWrite(9, LOW);
delay(500);
digitalWrite(13, LOW);
digitalWrite(12, LOW);
digitalWrite(11, HIGH);
digitalWrite(10, LOW);
digitalWrite(9, LOW);
delay(500);
digitalWrite(13, LOW);
digitalWrite(12, LOW);
digitalWrite(11, LOW);
digitalWrite(10, HIGH);
digitalWrite(9, LOW);
delay(500);
digitalWrite(13, LOW);
digitalWrite(12, LOW);
digitalWrite(11, LOW);
digitalWrite(10, LOW);
digitalWrite(9, HIGH);
delay(500)
OUTPUT
DIAGRAM
Code explanation:
Code to Note
pinMode(2, OUTPUT) − Before you can use one of Arduino’s pins, you need to
tell Arduino Uno R3 whether it is an INPUT or OUTPUT. We use a built-in
“function” called pinMode() to do this.
digitalWrite(2, HIGH) − When you are using a pin as an OUTPUT, you can
command it to be HIGH (output 5 volts), or LOW (output 0 volts).
APPLICATIONS :-
Blinking LED circuit can be used for any visual sign indication
in any highways or it can be used in advertisement hoarding
also.LED blinking circuit can be used in signaling purpose (It can be
used as signal for help, if you are in danger)LED blinking circuit can
be used as flashing beacon.LED blinking circuit can be used as
vehicle indicator when it is broke down in the middle of the road. It
can be used in operation theaters or offices as an indication that you
are engaged in work. There are lots of applications with these two
circuits.
CONCLUSION
Today’s world the continuous need of automatic appliances is increasing day by day in
our standard of life. So there is an urgent need of developing such circuits that would ease out the
complexity of our daily life. In addition to this, the project provides enriched learning experience to
count the number of visitors in any particular location where the circuit is being implemented with
proper technological experience.
We just took up this project as we were interested in Electronics and wanted to learn
something more about it. Through this project, we learnt a lot about the overall functioning of
the circuit, uses of the various electronic components and their applications in real life. We were
also able to correlate ourselves about whatever we studied in this particular course.
RESULT
You should see your LED turn on and off. If the required output is not
seen, make sure you have assembled the circuit correctly, and verified
and uploaded the code to your board.
REFERENCES :-
➢ http://electronicsproject.org/
➢ https://en.wikipedia.org/