Simple POV homemade arduino shield

 by tempteta
snootlab.jpg

Has Gunnery Sergeant Hartman (Full Metal Jacket) says during the riffle pray “There are many like it, but this one is mine”
 
Remove these adsRemove these ads by Signing Up

Step 1: Material


Indeed there is many project like available on internet.

This one use a tilt switch as trigger

1 x Arduino board (http://shop.snootlab.com/lang-en/arduino/68-arduino-duemilanove.html)
7 x 500 ohms resitors ¼ W
7 x basic red leds
1 x 10 k ohms resitors ¼ W
1 x tilt switch (I use this one http://shop.snootlab.com/lang-en/parts/96-tilt-sensor.html)
A piece of prototyping board plated holes
Male header (0,1") 1 row, 40 pins (need only 28 for complet arduino connexion , and realy need 10 for this project) http://fr.mouser.com/ProductDetail/FCI/68004-236/?qs=sGAEpiMZZMtsLRyDR9nM10aphOtlQBeldG%252bobNTQj6E%3d

Tools

A PC to program the arduino
An soldering iron
Some tin
A cutter
Grenat says: Feb 20, 2013. 3:11 AM
Voilà ma bricole >>>
Merci d'avance
Untitled Sketch.jpg_bb.jpgUntitled Sketch.jpg_bb.jpg
Grenat in reply to GrenatFeb 20, 2013. 3:12 AM
Oups deux images !
Grenat says: Dec 27, 2012. 8:11 AM
hi,
I received all the materials needed for doing a similar pov :), i am on the soldering components part and i have a problem :s >>> how can the 500 ohms resistors be connected to pin 6 to 12 of arduino male header meanwhile it is occupied by
two male header of 8 pins?
Don't know if i have missed something to resolve that
Thank you in advance!:)
tempteta (author) in reply to GrenatDec 27, 2012. 12:26 PM
You have several ways to make that.
The first way is to make a kind PCB trace like this http://www.niklasroy.com/images/ping/ping_04.jpg
The second way is to solder the leg of the resistor on the 8 pin header
I will post a picture of the back of my pcb with the two solution ASAP (maybe tomorrow)
tempteta (author) in reply to temptetaFeb 8, 2013. 2:54 PM
you can found detail of the connexion here :*

http://www.instructables.com/id/Simple-POV-homemade-arduino-shield/step3/Solder-the-electronics-parts/

Sorry for the delay !!!

best regards
bubble_gum_chewing_gum says: Jan 15, 2013. 7:00 AM
suggestion: 2 unnecessary dots can be removed by changing these lines

for (a=0;afor (a=0;a
to

for (a=0;a<(sizeof(texte)-1);a++)
for (a=0;a<(sizeof(texte2)-1);a++)
tempteta (author) in reply to bubble_gum_chewing_gumJan 17, 2013. 5:30 AM
Thank you so much, I will update this instructable with your modification and some improvement
Thank y ou again and best regards
tempteta (author) in reply to temptetaJan 17, 2013. 5:40 AM
Done
Grenat says: Dec 29, 2012. 12:24 PM
Oh i see, ok so i think i'm going to solder the leg of the resistor on the pin of the male header of the PCB (not arduino one), it is right ?
Ok cool can't wait to see it !
Thks :)
Grenat says: Dec 1, 2012. 7:06 AM
Thks for datasheet and technical tips, i will read that very carefully.!
I do not even think about all that as i am a very new beginner, so i think i'm going to experiment and try try try 100000 times !!! (hope i will find the good path !)
No problem, i would pass here for updating some news on that (or if i have any problems again!)
Meanwhile, i have to wait my little components come at home ( free shipping on ebay are very long : between 15-30 days :s!!!)

Thks for all & best ideas for the future!!
Grenat says: Nov 29, 2012. 7:11 AM
Yes, I also told myself that it would be weird to use a switch with mercury for this sort of device ! but as it is named "tilt", i thought maybe it would work....(or not!)
If you say the one you use has metal ball, then i have found something that i think can be used as the same way and largely cheaper, so i would buy that :

http://www.ebay.com/itm/370516344093?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649

I don't know why but there is a bug when i want to sucribe at snootlab. But, if there is no free shipping, i think i'm dead!!

If it works with "Metal Ball Tilt Shaking Position Switches" i would post it here !

Thks !
tempteta (author) in reply to GrenatNov 29, 2012. 2:55 PM
Your second tilt sensor looks like mine.
You can find the datasheet of my tilt sensor here http://snootlab.com/attachment.php?id_attachment=75
This document tell us that the contact is close if the angle is superior to 15° from horizontal.

With yours : "The switch would be in the "off position" in the horizontal positon,
"on positon" when raised to 10-90 degree or shakes"

So il think it can work with this sensor. Maybe you will have to change a part of the code.
Maybe the line "if (digitalRead(2)==LOW)"  is not ideal for your sensor.... It can be better with if (digitalRead(2)==HIGH)... maybe.... try the two method...

Please post your result here even if it doesn't works...

Best regards

Grenat says: Nov 28, 2012. 6:54 AM
Hello !
Seems to be a very great and interesting project !
I have a question, the tilt switch you use, it is possible to use a mercury tilt switch, for example, these ones (saw on ebay) :

http://www.ebay.com/itm/10pcs-Mercury-Tilt-Switch-0-3A-20V-101-/250777330926?pt=LH_DefaultDomain_0&hash=item3a637e64ee

Thank you in advance and Best regards !
tempteta (author) in reply to GrenatNov 28, 2012. 7:28 AM
Hi,
thank you for your interest for my project.
About the tilt switch, your "ebay model" works with a mercury drop... The problem can be that: when you shake your board the mercury drop can split into multiple drop.
Please not that I m not sure about that !!!! I have never use such tilt switch.

If you try please post a comment here.
For information, the tilt switch I use work with a metal ball (you can hear the noise of this ball on the video) You can find this part here ==> http://snootlab.com/lang-en/composants/96-capteur-de-basculement.html


Best regards
bernie308 says: Oct 14, 2012. 8:36 AM
(removed by author or community request)
oliverkellow says: Sep 19, 2012. 7:43 AM
What is "PoliceX"
Is it the font size or something??

Isnt the maximum size simply 7 for 7 LEDS??
but it is set at 5.

Cool sketch
Thanks!
tempteta (author) in reply to oliverkellowSep 19, 2012. 8:59 AM
PoliceX is the police size on the X axis. The police used is 5x7 (x/y) police
So policeX is 5. If you change the police type with a different number of led for example change just the policeX parameter all the timer will be automatically adjusted to this new policiy...
Thank for you comment
oliverkellow in reply to temptetaSep 20, 2012. 4:10 PM
Perhaps Police means something in Italian (if that is what it is in the example?)

So i can use more pins& Leds, adjust the PoliceX and get bigger letters, correct?

Cool!
Thanks for the reply!
tempteta (author) in reply to oliverkellowSep 21, 2012. 3:19 AM
ok ok ok, I see. Police is the french word for font...
So if I use corect (...) english my last relpy is

PoliceX is the font size on the X axis. The font used is 5x7 (x/y) font. So policeX is 5. If you change the font type with a different number of led for example change just the policeX parameter all the timer will be automatically adjusted to this new font... Thank for you comment

Sorry again for my very bad english.....
tempteta (author) in reply to temptetaSep 21, 2012. 3:33 AM
"So i can use more pins& Leds, adjust the PoliceX and get bigger letters, correct? " ==> Yes you can !!!

For example is the TV-out library : http://code.google.com/p/arduino-tvout
you can find the following file : "font4x6.cpp"
Is a 4x6 font so in this case you have to set PoliceX to 4
But in this case, you have to change some other parameters....

I will try to post an update of this skectch in the next day in order to use all the TV out library font...

If you have a special font, please send me the font file, and I will make the code with this font too.

Regards
ma7moodz says: Apr 16, 2012. 6:01 AM
will it work if I put it on a motor that rotates in high speed?
tempteta (author) in reply to ma7moodzApr 16, 2012. 6:50 AM
No, because the sensor if a tilt sensor...
If you put a motor, you have to use a REED switch (http://uk.mouser.com/ProductDetail/MEDER-electronic/KSK-1C90U-2034/?qs=Gn6sDDtUhEnntk6ouTT%252bgA%3d%3d), a hall effect sensor (http://www.sparkfun.com/products/9312) and magnet. You can also use a led + photo transistor .

A last point, if you use a motor with really high speed, the code can fail because it doesn’t use interruptions...

Please post a link with the result of your experimentation

Regards
ma7moodz in reply to temptetaApr 16, 2012. 11:10 AM
Do I have to use a switch?
I'm thinking of not using a switch at all.. you just plug the power to the arduino and it works
And sorry I don't know what do you mean with interruptions ( I'm new to arduino)
tempteta (author) in reply to ma7moodzApr 20, 2012. 1:40 AM
Yes you have!!!

It's for synchro. It you don't use a sensor it will work like this

==> http://youtu.be/VIaAG9hHdEM

or this http://youtu.be/9l2Vnq2NwHg



But if you use a sensor,

==> http://youtu.be/huHlfEiqA6Y

In this last case the sensor is an opto isolator.



Last point, interruptions is the french word for Interrupts (sorry for my bad english)==> http://arduino.cc/playground/Code/Interrupts
tempteta (author) says: Apr 16, 2012. 6:59 AM
And there is an update of this code, with automatic timer calculation... see pov04.pde code...
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!