Pages

Thursday, 13 November 2014

Magic Wand based on Persistence of Vision using Arduino Nano

Magic Wand based on Persistence of Vision 





Hi All,

I was impressed with two articles on Instructables.com   Magic-POV-Wand-yet-another-POV-toy and Persistence-of-Vision-Wand. They explain in detail, how to build a LED POV wand and mostly display a name or a message.

I made something my son could enjoy and made sense to make. So I drew some Alien UFO and Faces in Green.....

To Reduce form factor I sued Arduino Nano instead of Uno



What you Need
1. Arduino Nano ( Bought on Ebay for 600)
2. 19 Green Leds ( You may choose your favorite color)
3. 19 100 Ohm Register 1/4 W
4. Universal PCB
5. 9V battery with connector
6. Switch
7, 7 to 9 mtrs of soft wire
8. Wooden stick





Circuit Diagram with 20 LEDS


Arduino Nano V3


Step 1: Select a universal PCB and cut into long strip, I could not put 20 LED so selected 19 leds as shown



Step 2 : Solder  The leds and 100 Ohms registers as shown, or refer the Circuit diagram
 Step 3 : On another fix the female connector for Arduino Nano







 Step 4: Solder the wires as below images. Remember these are not easy and take quiet a long time. So take regular break
Step 5 : The code !!!!

Uploaded in GitHUB

11 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Hi! I use an Arduino Uno but when i try to compile i get that: wand_19_leds:609:19: error: variable 'letterY' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
    boolean letterY[] PROGMEM = { What can i do, i tried to add const just before bolean but it would not work...

    ReplyDelete
    Replies
    1. You need to have pgmspace

      https://github.com/amit-jain-diy/blog/blob/main/Ardunio_CODE/POV_AJ_19_LED_ALL/pgmspace.h

      Delete
    2. hi I already have arv/pgmspace.h but I still get that error, I've checked your GitHub and downloaded it from there but still doesn't work

      Delete
  3. hi thanks the error logs:

    In file included from D:\programas\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
    from sketch\POV_AJ_19LED.ino.cpp:1:
    POV_AJ_19LED:54:19: error: variable 'letterA' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
    boolean letterA[] PROGMEM = {
    ^
    and goes on until letter Z and then shows the next line:

    exit status 1
    variable 'letterA' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

    ReplyDelete
  4. https://github.com/amit-jain-diy/blog/blob/main/Ardunio_CODE/POV_AJ_19_LED_ALL/POV_AJ_19_LED_ALL.ino
    https://github.com/amit-jain-diy/blog/blob/main/Ardunio_CODE/POV_AJ_19_LED_ALL/pgmspace.h
    those two are the ones I'm working on

    ReplyDelete
  5. hi it's me again, I made it work by installing arduino's 1.0 version so now it kinda works
    NOW I'm wondering if its okay if only 9 of the 19 leds are on and what kind of motor did you use ??
    I tried the one who has
    String povtext1 = " GAUTAM ";//PUT YOUR MESSAGE HERE!!- must be in all caps, spaces are fine, no punctuation
    String povtext2 = " AMIT ";
    String povtext3 = " SURBHI ";
    so I thinks it's weird that only 9 leds are "working"

    ReplyDelete
  6. sorry i made a mistake its actually 10 leds and I checked they are pins D2 to D12 in the arduino nano

    ReplyDelete