loading
Parts needed :
: Arduino uno x 1
: led x 5
: 1k resistor x 5

Step 1: Wiring

Connect all the wire as shown in the figure :
Digital pin 2 to led 1
Digital pin 3 to led 2
Digital pin 4 to led 3
Digital pin 5 to led 4
Digital pin 6 to led 5


don't forget the resister ...!
.............................................................................................................................
Possible improvement


# custom shield for arduino
# adding battery
# adding more led 's

.............................................................................................................................
and upload the sketch and you are left with an amazing pov display...:)



Thanks for the tutorial, it helped me a lot.
Thanks...:)
is there a message in the code or can I upload the code directly to my board?
<p>Salam, ur algorithm worked with my device nicely. Iwanted to make a digital clock with this algorithm and that's why in the &quot;void loop()&quot; section I made this modification.</p><p>void loop()<br>{</p><p> for (r=0; r&lt;3; r++)</p><p> {</p><p> printLetter(NUMBER[r]);</p><p> q=0;</p><p> for (q=0; q&lt;10; q++)</p><p> {</p><p> printLetter(NUMBER[q]);</p><p> printLetter(TIMEDOT);</p><p> p=0;</p><p> for (p=0; p&lt;6; p++)</p><p> {</p><p> printLetter(NUMBER[p]);</p><p> k=0;</p><p> for (k=0; k&lt;10; k++)</p><p> {</p><p> printLetter(NUMBER[k]);</p><p> printLetter(TIMEDOT);</p><p> j=0;</p><p> for (j=0; j&lt;6; j++)</p><p> {</p><p> printLetter(NUMBER[j]);</p><p> i=0;</p><p> for (i=0; i&lt;10; i++)</p><p> {</p><p> printLetter(NUMBER[i]);</p><p> delay(s);</p><p> }</p><p> }</p><p> }</p><p> }</p><p> }</p><p> }</p><p>}</p><p>But it is not working except with the portion counting for seconds. Can u please help me solving this problem???<br>Thanks</p>
<p>My full Code:</p><p>int s=1000;</p><p>int i;</p><p>int j;</p><p>int k;</p><p>int p;</p><p>int q;</p><p>int r;</p><p>int ZERO[] = {1,1,1,1,1, 1,0,0,0,1, 1,1,1,1,1};</p><p>int ONE[] = {1,0,0,0,1, 1,1,1,1,1, 0,0,0,0,1};</p><p>int TWO[] = {1,0,1,1,1, 1,0,1,0,1, 1,1,1,0,1};</p><p>int THREE[] = {1,0,1,0,1, 1,0,1,0,1, 1,1,1,1,1};</p><p>int FOUR[] = {1,1,1,0,0, 0,0,1,0,0, 1,1,1,1,1};</p><p>int FIVE[] = {1,1,1,0,1, 1,0,1,0,1, 1,0,1,1,1};</p><p>int SIX[] = {1,1,1,1,1, 1,0,1,0,1, 1,0,1,1,1};</p><p>int SEVEN[] = {1,0,0,0,0, 1,0,0,0,0, 1,1,1,1,1};</p><p>int EIGHT[] = {1,1,1,1,1, 1,0,1,0,1, 1,1,1,1,1};</p><p>int NINE[] = {1,1,1,0,1, 1,0,1,0,1, 1,1,1,1,1};</p><p>int TIMEDOT[] = {0,0,0,0,0, 0,1,0,1,0, 0,0,0,0,0};</p><p>int* NUMBER[] = {ZERO,ONE,TWO,THREE,FOUR,FIVE,SIX,SEVEN,EIGHT,NINE};</p><p>int letterSpace;</p><p>int dotTime;</p><p>void setup()</p><p>{</p><p> // setting the ports of the leds to OUTPUT</p><p> pinMode(2, OUTPUT);</p><p> pinMode(3, OUTPUT);</p><p> pinMode(4, OUTPUT);</p><p> pinMode(5, OUTPUT);</p><p> pinMode(6, OUTPUT);</p><p> // defining the space between the letters (ms)</p><p> letterSpace = 4;</p><p> // defining the time dots appear (ms)</p><p> dotTime = 3; </p><p>}</p><p>void printLetter(int letter[])</p><p>{</p><p> int y;</p><p> // printing the first y row of the letter</p><p> for (y=0; y&lt;5; y++)</p><p> {</p><p> digitalWrite(y+2, letter[y]);</p><p> }</p><p> delay(dotTime);</p><p> // printing the second y row of the letter</p><p> for (y=0; y&lt;5; y++)</p><p> {</p><p> digitalWrite(y+2, letter[y+5]);</p><p> }</p><p> delay(dotTime);</p><p> // printing the third y row of the letter</p><p> for (y=0; y&lt;5; y++)</p><p> {</p><p> digitalWrite(y+2, letter[y+10]);</p><p> }</p><p> delay(dotTime);</p><p> // printing the space between the letters</p><p> for (y=0; y&lt;5; y++)</p><p> {</p><p> digitalWrite(y+2, 0);</p><p> }</p><p> delay(letterSpace);</p><p>}</p><p>void loop()</p><p>{</p><p> for (r=0; r&lt;3; r++)</p><p> {</p><p> printLetter(NUMBER[r]);</p><p> q=0;</p><p> for (q=0; q&lt;10; q++)</p><p> {</p><p> printLetter(NUMBER[q]);</p><p> printLetter(TIMEDOT);</p><p> p=0;</p><p> for (p=0; p&lt;6; p++)</p><p> {</p><p> printLetter(NUMBER[p]);</p><p> k=0;</p><p> for (k=0; k&lt;10; k++)</p><p> {</p><p> printLetter(NUMBER[k]);</p><p> printLetter(TIMEDOT);</p><p> j=0;</p><p> for (j=0; j&lt;6; j++)</p><p> {</p><p> printLetter(NUMBER[j]);</p><p> i=0;</p><p> for (i=0; i&lt;10; i++)</p><p> {</p><p> printLetter(NUMBER[i]);</p><p> delay(s);</p><p> }</p><p> }</p><p> }</p><p> }</p><p> }</p><p> }</p><p>}</p>
<p>If I'm using 8 LEDs how can I modify your code?<br>Thanks for sharing!</p>
<p>I made it! But I have a question, do I have to move the leds in a single direction or both directions?</p>
<p>how did you compute the value of the letterSpace and dotTime variables?</p>
<p>It's really easy and works fine.... Thax Glen.</p>
<p>Can i apply the same code to make a POV with 7 LEDs on a rotating base like of motor?</p><p>Would i need to change the delay between letter?</p>
I started with your 5 LED display and built on that to make my globe. Thanks for sharing. Also, thanks to SintaxGamer for sharing the 0-9 digits. I'll see if I can run both loops to display text on the globe.
<p>Cool ! </p>
<p>NICELY SAID.. N VERY EASY TO FOLLOW :)</p>
<p>NICELY SAID.. N VERY EASY TO FOLLOW :)</p>
<p>this is simplest..i have ever seen....thanks</p>
Hi,where's the code to upload?please.
<p>how do the forloops work??</p>
<p>how do yo make this work?</p>
<p>i didn't find step 3 and 4 here?? sorry?? can you help me?</p>
<p>there is no step 3 and 4</p>
<p>very nice code, took the time to add 0-9 :)</p><p>int ONE[] = {1,0,0,0,1, 1,1,1,1,1, 0,0,0,0,1};</p><p>int TWO[] = {0,1,0,1,1, 1,0,1,0,1, 0,1,0,0,1};</p><p>int THREE[] = {1,0,1,0,1, 1,0,1,0,1, 1,1,1,1,1};</p><p>int FOUR[] = {1,1,1,0,0, 0,0,1,0,0, 1,1,1,1,1};</p><p>int FIVE[] = {1,0,1,0,1, 1,0,1,0,1, 1,0,1,1,1};</p><p>int SIX[] = {1,0,1,1,1, 1,0,1,0,1, 1,0,1,1,1};</p><p>int SEVEN[] = {1,0,0,0,0, 1,0,0,0,0, 1,1,1,1,1};</p><p>int EIGHT[] = {1,1,1,1,1, 1,0,1,0,1, 1,1,1,1,1};</p><p>int NINE[] = {1,1,1,0,0, 1,0,1,0,0, 1,1,1,1,1};</p><p>int ZERO[] = {1,1,1,1,1, 1,0,0,0,1, 1,1,1,1,1};</p>
<p>Thanks for making it really simple :D</p>
<p>muy bueno</p>
<p>Thanks for share.</p><p>It's very simple &amp; interesting. ^^</p>
<p>r have clock time ? help code ? </p>
Nice and simple. I am going to try this with a nano. Make it compact and easy to wave around. Thanks for sharing.
Thanks for share. <br>I think there is a mistake in wiring diagram. The resistor should be in the negative leg (shorter leg) of the led. <br>Regards.
What difference could it make? It's in series w/ the LED.
which Arduino uno u used <br>
Arduino Uno Rev 3
usb or plug Arduino Uno Rev 3 <br>how to program it? <br>
Which arduino? <br>usb one or plug. <br>how to program it and where is the third step. <br>
which type of Arduino Uno Rev 3 <br>i)usb cable <br>ii) plug <br>
Thanks for posting, I was looking at the sketch, its a bit like that movie, you look at it long enough you can see the matrix.... or maybe I just need glasses :-)
Next time ,I will make a code searching glasses.....:)
Step 3 and 4 are very difficult :-)
yea :)...indeed .... <br>

About This Instructable

41,423views

102favorites

License:

Bio: Interested in everything that run on electricity!.....
More by Glen P Yeldho:Simple Arduino POV :) 
Add instructable to: