LEDs Blinking M shape Using arduino in proteus
Components
- Arduino UNO R3
- LED (different colors)
- Resistor
Arduino code
int shape[] = {0,1,2,3,4,5,6,7,8,9};
void setup() {
// put your setup code here, to run once:
for (int i = 0; i < 10; i++)
{
pinMode(i, OUTPUT);
}
}
void loop() {
for (int i = 0; i < 10; i++)
{
digitalWrite(shape[i],HIGH);
delay(50);
digitalWrite(i,LOW);
delay(50);
}
for (int i = 10; i > 0; i--)
{
digitalWrite(shape[i],HIGH);
delay(50);
digitalWrite(i,LOW);
delay(50);
}
for(int j=1;j<=3;j++){
for(int i=0;i<10;i++)
digitalWrite(i,HIGH);
delay(50);
for(int i=0;i<10;i++)
digitalWrite(i,LOW);
delay(50);
}
for (int j = 0; j < 6; j++)
for (int i = 0; i < 10; i++)
{
i = random(10);
digitalWrite(shape[i],HIGH);
delay(50);
digitalWrite(i,LOW);
delay(50);
}
}
Output
- LEDs blinking forward direction in M shape
- LEDs blinking backward direction in M shape
- Blink All LED in same time
- LEDs blinking randomly
Embedded systems basics:
Embedded systems step by step video guide
-using PROTEUS ISIS professional and Arduino IDE software
Click below link for interface Keypad with Arduino UNO
https://youtu.be/cnPb4pObkXc
Click below link for the gas sensor
https://youtu.be/ALm-okkKRPY
Click below link for PIR sensor
https://youtu.be/4gRo1ijpMmQ
Click below link for the temperature sensor
https://youtu.be/1GJC_6eF7Xg
Click below link for vibration sensor
https://youtu.be/jiJAhxa687s
Click below link for M shape led blinking
https://youtu.be/S46J4L4KOu4
Subscribe To My Channel and Get More Great Ideas
https://www.youtube.com/channel/UC6hd...
Click below link for more embedded topics
https://digiuniverselife.blogspot.in
Contact Us
Facebook
https://bit.ly/2NAeebK
Twitter
https://bit.ly/2x3R1p1
If you like this Video Please like and Share with your friends...
Basics of embedded systems -Digital Universe
Thanking you..
Embedded systems step by step video guide
-using PROTEUS ISIS professional and Arduino IDE software
Click below link for interface Keypad with Arduino UNO
https://youtu.be/cnPb4pObkXc
Click below link for the gas sensor
https://youtu.be/ALm-okkKRPY
Click below link for PIR sensor
https://youtu.be/4gRo1ijpMmQ
Click below link for the temperature sensor
https://youtu.be/1GJC_6eF7Xg
Click below link for vibration sensor
https://youtu.be/jiJAhxa687s
Click below link for M shape led blinking
https://youtu.be/S46J4L4KOu4
Subscribe To My Channel and Get More Great Ideas
https://www.youtube.com/channel/UC6hd...
Click below link for more embedded topics
https://digiuniverselife.blogspot.in
Contact Us
https://bit.ly/2NAeebK
https://bit.ly/2x3R1p1
If you like this Video Please like and Share with your friends...
Basics of embedded systems -Digital Universe
Thanking you..
No comments:
Post a Comment