create account

Make a simple LED chaser using 10 segment bargraph light Display by pakganern

View this thread on: hive.blogpeakd.comecency.com
· @pakganern · (edited)
$0.80
Make a simple LED chaser using 10 segment bargraph light Display
Today i will be making a basic arduino experiment on how to make 10 led chaser using bragraph light display in arduino, This is a LED Chaser with the simplest code. we can have different LED glowing arrangements, like Knight Rider is kinda famous, you can make it by simply putting the same loop but with descending outputs to try it. so what you can learn on this post is, you can actually make your own christmas lights:) on your own desired blink in sequence.

![P_20180707_143111_vHDR_Auto.jpg](https://ipfs.busy.org/ipfs/QmYBGdKP9fTXscBf7Vo3434ngfYiDqX3MRUw8YbCzWoxrZ)


**Required Electronic Components:**
-  10 segment bargraph LED display
- 10k Ohms Resistance
- Arduino uno
- Jumper wires
- Breadboard

**The connection Diagram**

![qq.png](https://ipfs.busy.org/ipfs/QmewgTUinby6BEBFqYrPevKfj8AaiYwjmqL6ZgwoCssQdw)

The Bargraph light display uses 10 different colour of LED. each LED has 2 legs the common anode which means its a possitive and the cathode which is the GND or the negative leg. we need to use resistor to limit or we can say it regulates the amount of power that flows into the led, resistor is made from winding Nichrome or similar wire on an insulating form. This component, called a wirewound resistor and it can be able to handle higher currents.

Arduino Uno R3 has two GND actually 3 GND pins 2 is along with power pins and other one is along with digital pins. Both of the GND pins are common, so you may connect the common cathode leg of the leds on the any GND pin. we have to put the short leg of the led to the horizzontal rail on the breadboard.

**TestBlink**

<center>![P_20180707_142509.gif](https://ipfs.busy.org/ipfs/Qma37XmBP5mdkHJBeHawiwhM4ZoHXJefaMEy3ce6NUGCpw)</center>


**Set /Define Output pins of the LED**
<pre><code>void setup(){ // The setup() is called once, or the first booth when the sketch starts.
  pinMode(2, OUTPUT); // configured pin as an OUTPUT with pinMode() its voltage will be set to the corresponding value: 5V (or 3.3V on 3.3V boards) for HIGH, 0V (ground) for LOW.
  pinMode(3, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
  pinMode(7, OUTPUT);
  pinMode(8, OUTPUT);
  pinMode(9, OUTPUT);
  pinMode(10, OUTPUT);
  pinMode(11, OUTPUT);
} //  { and } is called the body of setup the function</code></pre>

**Set/Initialize the Loop Function**

<pre><code>void loop(){ // this function runs over and over again
  digitalWrite(4, HIGH); //digitalWrite() will enable/ turn on the led (HIGH) or disable off (LOW) the internal pullup.
  delay(100); // LED wait for the specified number of milliseconds before continuing on to the next line. There are 1000 milliseconds in 1 second
  digitalWrite(4, LOW);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(4, LOW);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(8, LOW);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(8, LOW);
  delay(100);
  digitalWrite(2, HIGH);
  delay(100);
  digitalWrite(2, LOW);
  delay(100);
  digitalWrite(2, HIGH);
  delay(100);
  digitalWrite(2, LOW);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(10, LOW);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(10, LOW);
  delay(100);
  digitalWrite(3, HIGH);
  delay(100);
  digitalWrite(3, LOW);
  delay(100);
  digitalWrite(3, HIGH);
  delay(100);
  digitalWrite(3, LOW);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(7, LOW);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(7, LOW);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(5, LOW);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(5, LOW);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(11, LOW);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(11, LOW);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(6, LOW);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(6, LOW);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(9, LOW);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(9, LOW);
  delay(100);  
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(11, LOW);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(10, LOW);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(9, LOW);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(8, LOW);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(7, LOW);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(6, LOW);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(5, LOW);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(4, LOW);
  delay(100);
  digitalWrite(3, HIGH);
  delay(100);
  digitalWrite(3, LOW);
  delay(100);
  digitalWrite(2, HIGH);
  delay(100);
  digitalWrite(2, LOW);
  delay(100);  
  digitalWrite(2, HIGH);
  delay(100);
  digitalWrite(3, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);  
  delay(100);
  digitalWrite(2,LOW);
  delay(100);
  digitalWrite(3,LOW);
  delay(100);
  digitalWrite(4,LOW);
  delay(100);
  digitalWrite(5,LOW);
  delay(100);
  digitalWrite(6,LOW);
  delay(100);
  digitalWrite(7,LOW);
  delay(100);
  digitalWrite(8,LOW);
  delay(100);
  digitalWrite(9,LOW);
  delay(100);
  digitalWrite(10,LOW);
  delay(100);
  digitalWrite(11,LOW);
  delay(100);
  digitalWrite(2,HIGH);
  delay(100);
  digitalWrite(3,HIGH);
  delay(100);
  digitalWrite(11,HIGH);
  delay(100);
  digitalWrite(4,HIGH);
  delay(100);
  digitalWrite(10,HIGH);
  delay(100);
  digitalWrite(5,HIGH);
  delay(100);
  digitalWrite(9,HIGH);
  delay(100);
  digitalWrite(6,HIGH);
  delay(100);
  digitalWrite(8,HIGH);
  delay(100);
  digitalWrite(7,HIGH);
  delay(100);  
  digitalWrite(2, HIGH);
  delay(100);
  digitalWrite(2, LOW);
  delay(100);
  digitalWrite(3, HIGH);
  delay(100);
  digitalWrite(3, LOW);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(4, LOW);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(5, LOW);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(6, LOW);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(7, LOW);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(8, LOW);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(9, LOW);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(10, LOW);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(11, LOW);
  delay(100);  
  digitalWrite(2, HIGH);
  delay(100);
  digitalWrite(3, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(11,LOW);
  delay(100);
  digitalWrite(10,LOW);
  delay(100);
  digitalWrite(9,LOW);
  delay(100);
  digitalWrite(8,LOW);
  delay(100);
  digitalWrite(7,LOW);
  delay(100);
  digitalWrite(6,LOW);
  delay(100);
  digitalWrite(5,LOW);
  delay(100);
  digitalWrite(4,LOW);
  delay(100);
  digitalWrite(3,LOW);
  delay(100);
  digitalWrite(2,LOW);
  delay(100);  
  digitalWrite(2, HIGH);
  delay(100);
  digitalWrite(2, LOW);
  delay(100);
  digitalWrite(3, HIGH);
  delay(100);
  digitalWrite(3, LOW);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(4, LOW);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(5, LOW);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(6, LOW);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(7, LOW);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(8, LOW);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(9, LOW);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(10, LOW);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(11, LOW);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(3, HIGH);
  delay(100);
  digitalWrite(2, HIGH);
  delay(100);  
  digitalWrite(2,LOW);
  delay(100);
  digitalWrite(3,LOW);
  delay(100);
  digitalWrite(11,LOW);
  delay(100);
  digitalWrite(4,LOW);
  delay(100);
  digitalWrite(10,LOW);
  delay(100);
  digitalWrite(5,LOW);
  delay(100);
  digitalWrite(9,LOW);
  delay(100);
  digitalWrite(6,LOW);
  delay(100);
  digitalWrite(8,LOW);
  delay(100);
  digitalWrite(7,LOW);
  delay(100);  
  digitalWrite(11, HIGH);
  delay(100);  
  digitalWrite(11,LOW);
  delay(100);
}</code></pre>

I hope you enjoy this helpful activity if wan to learn how arduino works, and how to make a sketch, then maybe this blog might help you. so thats it, if you want to know and see my future activity follow me! thank you.

<center>https://media.giphy.com/media/5qFCoPGcqunHzoyjc1/giphy.gif</center>

-----------

<center><sub>all images and screenshots are made by @pakganern gif animation is edited using giphy.com, code is made using arduino desktop IDE</sub></center>

👍  , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorpakganern
permlinkmake-a-simple-led-chaser-using-10-segment-bargraph-light-display
categorysteemmakers
json_metadata{"community":"bsteem","app":"bsteem","format":"markdown","image":["https://ipfs.busy.org/ipfs/QmYBGdKP9fTXscBf7Vo3434ngfYiDqX3MRUw8YbCzWoxrZ","https://ipfs.busy.org/ipfs/QmewgTUinby6BEBFqYrPevKfj8AaiYwjmqL6ZgwoCssQdw","https://ipfs.busy.org/ipfs/Qma37XmBP5mdkHJBeHawiwhM4ZoHXJefaMEy3ce6NUGCpw","https://media.giphy.com/media/5qFCoPGcqunHzoyjc1/giphy.gif"],"users":["pakganern"],"links":["/@pakganern"],"tags":["steemmakers","diy","arduino","technology","busy","bsteem"]}
created2018-07-07 07:47:33
last_update2018-07-07 12:22:57
depth0
children3
last_payout2018-07-14 07:47:33
cashout_time1969-12-31 23:59:59
total_payout_value0.614 HBD
curator_payout_value0.181 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length9,762
author_reputation39,682,824,097,581
root_title"Make a simple LED chaser using 10 segment bargraph light Display"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id63,751,266
net_rshares398,042,101,747
author_curate_reward""
vote details (23)
@filler · (edited)
Cool project! Please share more of your future projects with arduino!
properties (22)
authorfiller
permlinkre-pakganern-make-a-simple-led-chaser-using-10-segment-bargraph-light-display-20180709t154222363z
categorysteemmakers
json_metadata{"tags":["steemmakers"],"app":"steemit/0.1"}
created2018-07-09 15:42:24
last_update2018-07-09 15:43:03
depth1
children0
last_payout2018-07-16 15:42:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length69
author_reputation4,924,532,976,740
root_title"Make a simple LED chaser using 10 segment bargraph light Display"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id64,046,730
net_rshares0
@rksagar ·
Awesome article. Congratulations on the effort.
properties (22)
authorrksagar
permlinkre-pakganern-201877t131816486z
categorysteemmakers
json_metadata{"tags":["steemmakers","diy","arduino","technology","busy"],"app":"esteem/1.6.0","format":"markdown+html","community":"esteem"}
created2018-07-07 07:48:18
last_update2018-07-07 07:48:18
depth1
children0
last_payout2018-07-14 07:48:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length47
author_reputation400,732,403,059
root_title"Make a simple LED chaser using 10 segment bargraph light Display"
beneficiaries
0.
accountesteemapp
weight1,000
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id63,751,325
net_rshares0
@steemmakers ·
<div class='pull-right'><center><a href='http://www.steemmakers.com'><img src='https://www.steemmakers.com/img/comment_logo_makers.png' /></a></center></div><b>Congratulations</b> This post has been upvoted by SteemMakers. We are a community-based project that aims to support makers and DIYers on the blockchain in every way possible. <br/><br/>Join our <a href='https://discord.gg/EFGbRuW'>Discord Channel</a> to connect with us and nominate your own or somebody else's posts in our review channel.<br/><br/><b>Help us to reward you for making it !</b> Join <a href='https://www.steemmakers.com/#/Trail'>our voting trail</a> or <a href='https://www.steemmakers.com/#/Delegation'>delegate steem power</a> to the community account. <br/><br/>Your post is also presented on the community website <a href='http://www.steemmakers.com'>www.steemmakers.com</a> where you can find other selected content. <br/><br/>If you like our work, please consider upvoting this comment to support the growth of our community. Thank you.
properties (22)
authorsteemmakers
permlinkre-pakganern-make-a-simple-led-chaser-using-10-segment-bargraph-light-display-20180709t085400448z
categorysteemmakers
json_metadata""
created2018-07-09 08:53:48
last_update2018-07-09 08:53:48
depth1
children0
last_payout2018-07-16 08:53:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,019
author_reputation1,907,312,584,548
root_title"Make a simple LED chaser using 10 segment bargraph light Display"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id64,001,650
net_rshares0