Step 5:

 Turn on your Power Supply and make sure all the lights are flashing.
<p>hmmm esp8266 pov with updateable from phone?</p>
<p>I am using the LilyPad Simple and trying to run this program with some adjustments. I can't get all of the lights to blink. Can you look at my code and tell me what is wrong?</p><p>#define NUM_ELEM(x) (sizeof (x) / sizeof (*(x)))</p><p>int lilypad[] = {</p><p>11111110, //D</p><p>10000010,</p><p>10000010,</p><p>10000010,</p><p>10000010,</p><p>10000010,</p><p>01111100,</p><p>00000000,</p><p>11111110, //o</p><p>11000110,</p><p>10000110,</p><p>10000110,</p><p>10000110,</p><p>11111110,</p><p>11111110,</p><p>00000000,</p><p>00000110, //t</p><p>00000110,</p><p>00000110,</p><p>11111110,</p><p>00000110,</p><p>00000110,</p><p>00000010,</p><p>00000000,</p><p>00000110, //t</p><p>00000110,</p><p>00000110,</p><p>11111110,</p><p>00000110,</p><p>00000110,</p><p>00000010,</p><p>00000000,</p><p>10000110, //i</p><p>11111110,</p><p>11111110,</p><p>10000110,</p><p>00000000,</p><p>11111110, //e</p><p>10110110,</p><p>10110110,</p><p>10110110,</p><p>10110110,</p><p>10110110,</p><p>10110110,</p><p>00000000,</p><p>11111110,</p><p>10010010,</p><p>10010010,</p><p>10010010,</p><p>10010010,</p><p>10010010,</p><p>01111100,</p><p>00000000,</p><p>00000000};</p><p>int ledPinA4 = A4; // LED connected to digital pin A4</p><p>int ledPinA3 = A3; // LED connected to digital pin A3</p><p>int ledPin1A2 = A2; // LED connected to digital pin A2</p><p>int ledPin11 = 11; // LED connected to digital pin 11</p><p>int ledPin10 = 10; // LED connected to digital pin 10</p><p>int ledPin9 = 9; // LED connected to digital pin 9</p><p>int ledPin6 = 6; // LED connected to digital pin 6</p><p>int ledpin5 = 5; // LED connected to digital 5 </p><p>int ledPinArray[8] = {5,6,9,10,11,A2,A3,A4};</p><p>// The setup() method runs once, when the sketch starts</p><p>int columnDelay;</p><p>int sizeWord = 0;</p><p>void setup() { </p><p>// initialize the digital pin as an output:</p><p>for(int i = 0; i &lt; 8; i++){</p><p>pinMode(ledPinArray[i],OUTPUT);</p><p>}</p><p>columnDelay = 2.5; //wait 2.5ms between each column flash</p><p>Serial.begin(9600);</p><p>Serial.print(&quot;Number of lilypad: &quot;);</p><p>Serial.println(NUM_ELEM(lilypad));</p><p>delay(2000);</p><p>sizeWord = NUM_ELEM(lilypad);</p><p>}</p><p>// the loop() method runs over and over again,</p><p>// as long as the Arduino has power</p><p>/*void loop() </p><p>{</p><p>for(int i = 0; i &lt; 8; i++){</p><p>digitalWrite(ledPinArray[i],HIGH);</p><p>}</p><p>delay(1000); // wait for a second</p><p>for(int i = 0; i &lt; 8; i++){</p><p>digitalWrite(ledPinArray[i],LOW);</p><p>}</p><p>delay(1000); // wait for a second</p><p>}*/</p><p>void loop()</p><p>{</p><p>//Serial.print(&quot;Number of lilypad: &quot;);</p><p>//Serial.println(NUM_ELEM(lilypad));</p><p>//delay(1000);</p><p>printWord(lilypad);</p><p>delay(8); //wait a little bit between each display of the word LilyPad</p><p>}</p><p>void printWord(int wordVar[]) {</p><p>int numRows = sizeWord/8;</p><p>for(int j = 0; j &lt; numRows; j++) {</p><p>for(int i = 0; i&lt;8; i++) {</p><p>digitalWrite(i+6, wordVar[i+j*8]);</p><p>}</p><p>delay(columnDelay);</p><p>}</p><p>} </p>
<p>What kind of camera/settings did you use?</p>
<p>I can't recall exactly -- something with a exposure time of about ~1.5sec</p>
<p>Nice Project!!! I made a 3d printer case and make LED watch. and add button code to change the word.</p>
<p>can you share how you added those? </p>
<p>Still working, trying to make it easier to read!<br>Great project! Thanks!</p>
<p>cool glad you made a tutorial</p>
Why did you create the ledPin6-ledPin13 variables?<br /> They don't seem to be used anywhere.<br /> Or is it a way to tell the Lilypad that those outputs are used to power LEDs?<br />
&nbsp;You're right. &nbsp;I was using those variable in a previous version of the code. &nbsp;I will take them out and repost. &nbsp;Thanks! &nbsp;For what it's worth, I am telling the Lilypad to use pins 6-13 as output using the following code:<br /> int ledPinArray[8] = {6,7,8,9,10,11,12,13};<br /> <br /> for(int i = 0; i &lt; 8; i++){<br /> &nbsp;&nbsp; pinMode(ledPinArray[i],OUTPUT);<br /> }<br /> <br />
Thanks for posting such a great tutorial! I am using the LilyPad USB, which has a different numbering on the pins. I have succeeded at blinking all the lights, by changing the values in the array as such: <blockquote> <p> int ground = 2; // LED connected to digital 2 &quot;ground&quot;<br> int ledPinArray[8] = {A5, A4, A3, A2, 11, 10, 9, 3};</p> </blockquote> <p> But when I run the rest of the program, I have only two leds blinking... I am working on understanding the loop, and I think the problem is that the ledPinArray variable isn't used in the digitalWrite command in the printWord function... and since my pins are not all numerals, this is failing for me. Can you help me get my head around how the PrintWord function should look using the ledPinArray variable? &nbsp;Thanks!</p>
<p>Actually i have the same problem now, because I am using also the LilyPad USB for my bachelor thesis. Did you solve the problem till now? Thanks in advance :)</p>
<p>Can I use diffrent colours of LEDs? Or have all the 8 LEDs to be in one colour? </p>
I can't get any of my leds to flash. Everything else turns on except the leds. did I do something wrong?
Did you remember to set the last pin as LOW? Do the LEDs turn on at all?
<p>This is after it has been plugged into the computer, correct?</p>
yes, so sorry, I was able to figure it out. Thanks so much! this is a great instructable.
<p>I can't get my LEDs to light up. The battery red LED comes on, the green light on the lilypad flashes but the white LED's will not turn on. What should I look at?</p>
I know this is an old post but can I substitute a 3v button cell for the power supply?
Yes. I hooked up a multimeter and measured a 3mA draw for a button cell (3V CR2032) a LilyPad LED and around a 3mA draw to power a LilyPad. As a large estimate: 8*3mA=24mA+3mA=27mA. The coin cell battery has between 200and 250mAh. So you should be able to power you POV wristband between 7 and 9 hrs continuously. <br><br>This is a pretty rough estimate. The current draw will actually change over time and you can't extract all the juice in a coin cell battery. For a great discussion check out: http://www.evilmadscientist.com/article.php/throw/
please could u test this for me<br><br><br>B8(00100000),<br>B8(00111111),<br>B8(00000000),<br>B8(00111111),<br>B8(00100101),<br>B8(00100101),<br>B8(00000000),<br>B8(00111111),<br>B8(00100101),<br>B8(00011110),<br>B8(00000001),<br>B8(00000001),<br>B8(00111111),<br>B8(00000001),<br>B8(00000001),<br>B8(00000000),<br>B8(00000000),<br>B8(00000000),<br>B8(00000000),<br>B8(00000000)<br>
&nbsp;Could this be modified to make &quot;Pixel Poi&quot;?&nbsp;<a href="http://www.feedingthefish.com/index.htm" rel="nofollow">www.feedingthefish.com/index.htm<br /> <br /> </a><br />
Where did you buy your LEDs? <br />
The leds are from sparkfun (<a href="http://www.sparkfun.com/commerce/product_info.php?products_id=8735" rel="nofollow">www.sparkfun.com/commerce/product_info.php</a>).
Great tutorial.&nbsp; I'm teaching my kids (homeschoolers) electronics, robotics, etc. &nbsp;Lots of it is new to me, although I did teach MS&nbsp;office, Internet, etc at one point in a traditional school (duh K-12 jail lol).&nbsp; Anyway, loving this site and your posts. &nbsp;&nbsp;<br />
extremely cool!&nbsp; I like building circuits, but this might be over my head.<br />
This is a very cool little project, awesome piece! 5/5.<br />
seems like a geeky and clever way to get a girls attention at a bar<br />
It can't be seen with the naked eye, right? You would only see the flashing lights.<br />
Actually, you can see this with the naked eye; you just have to move fairly fast. &nbsp;It does get a bit more difficult the longer the word/image is. &nbsp;For example, here are some 3D globes&nbsp;<a href="http://www.youtube.com/watch?v=4rEIFGvD4wA&amp;feature=related" rel="nofollow">www.youtube.com/watch</a>&nbsp;that are spinning really really fast! &nbsp;And for a great electronics POV&nbsp;kit visit adafruit.com or&nbsp;<a href="http://www.ladyada.net/make/minipov3/" rel="nofollow">www.ladyada.net/make/minipov3/</a>
Where was this when I was a teenager?!&nbsp;Very cool. <br />
&nbsp;I saw this on flickr the other day, so glad you made a tutorial. Great little project!
very cool
sweet :3<br />

About This Instructable




More by quasiben:EL Driver Board Image Capturing Bird Feeder Proximity-Sensing Pocket Squares 
Add instructable to: