I wanted to post my last Picaxe project for awhile (only because I'm out of boards again and have to wait a bit before ordering more). It's 4 pairs of randomly flashing LED's that we will use in our "batroom" The bathroom is totally decorated with bats, red lights and an appropriate audio track. These eyes will be installed in a glass fronted display cabinet that has a black fabric inside. Just the LED's will poke through the fabric.
I want to thank Fritz_42 for the code for this and also thank hpropman for all his encouragement to get me started with the Picaxe. If you haven't checked out the first installment of his book, there's a link to it on his site - http://www.freewebs.com/hpropman/
If anyone wants the program code, I'll be happy to post it.
A great addition to the haunt for less than $12.
-
Yet another Picaxe project - $12 Cave Eyes –
02-25-2011,09:39 AM
-
02-25-2011,12:21 PM
Your haunt is going to be the bomb this year.I can't wait to see it!!!

halloween props 2012 http://www.halloweenforum.com/member...012-props.html
albums http://www.halloweenforum.com/member...71-albums.html
-
02-26-2011,04:11 AM
That's gonna look GREAT! Halstaff, the picaxe is an awesome micro controller, and soooo cheap!
I would greatly appreciate it if you could post the code you used.
Thanks
Phil
-
02-26-2011,06:00 AM
Totally awesome Halstaff!
Watch where you dig... you may find yourself...
-
02-26-2011,11:43 AM
Phil,
Here is the code I'm using for the random eyes.
'Random flash program:
symbol led0 = 0
symbol led1 = 1
symbol led2 = 2
symbol led4 = 4
main:
startup:
high led0
high led1
high led2
high led4
pause 2000
low led0
low led1
low led2
low led4
goto flash
flash:
Random w0
Random w1
w2 = w0 / 80
w3 = w1 / 11
if w3 < 1000 then: high led0
pause w2
low led0
elseif w3 < 2000 then: high led1
pause w2
low led1
elseif w3 < 3000 then: high led2
pause w2
low led2
elseif w3 < 4000 then: high led4
pause w2
low led4
endif
goto flash
Hope you find it useful.
-
02-26-2011,12:37 PM
Thanks very much Halstaff, very kind of you to post it.
Thanks again
Phil
-
04-02-2011,09:25 AM
Can you post the wiring diagram?
PC
-
04-02-2011,09:43 AM
I used Fritz42_male's Very Low Cost (VLC) controller for this project. You can find the complete instructions here - http://www.ipprofessional.com.au/VLC...Controller.pdf
-
04-02-2011,09:52 AM
So are you saying the wiring is the same (via Fritz's VLC), whether you use the controller for cave eyes or motor control, and only the code needs to be changed?
PC
-
04-02-2011,10:11 AM
Exactly! The basic board design remains the same, you just connect it to different things.
For this project I used pins 0,1,2 & 4 to each run a pair of eyes. This will run continuously so it won't have a trigger. I used the chips power supply to also run the LED's which is a 3AA battery pack. I'm switching most of my Picaxe's over to regulated 5V wall warts that I picked up for .79 each. Make sure if you use pin 0 to change over the jumper which is located next to the chip after you program it.
If I'm not going to be using all the pins for a specific project, I may not add them to the board however if you reuse the board for another project, you may have to add them on. It's easier just to build the complete board and then it's ready to go for whatever you do. For my skeleton fish, I was really pressed for space so adding in just the pins I needed allowed it to fit inside the fish's head. You can see that thread here - Animated Pirate Skeleton Fish



LinkBack URL
About LinkBacks
Yet another Picaxe project - $12 Cave Eyes




Bookmarks