Well.. I must say this little device is pretty cool. I hooked it all up and it worked first try! first I just lit the LEDs sequentially with a pause 60, then I hooked up the 2 pots and added the adjustability of how fast the array fills and how fast it goes out.. I can't believe the ease in which I did this, I thought the coding was gonna be the hardest part.. so far the hardest part was getting all the parts!
Big thanks to everyone here for the help I've received so far, just wanted to show you that I'm doing something with it! Now I'll just make it so a digital input receives the blinker pulse from the car and make that trigger the sequence..
I'll rig that up here to get a feel for it with a switch to mimic the signal pulse.. and then I gotta try the PWM for the brakes.. and then rig up both sides of the signal and make sure only the side that's supposed to be signaling has power... it's all coming together now and I'm stoked.
Here's the simple little program I wrote:
Can't get video to load into photobucket.. I'll get a youtube account here or something so I can upload it.
edit: I dunno why the code tags don't work, what am I missing?
edit 2: Here's the vid.. although I'm pretty much ready to make another.. I've got much more done now.
http://www.youtube.com/watch?v=BXMnO5fFuxc
Big thanks to everyone here for the help I've received so far, just wanted to show you that I'm doing something with it! Now I'll just make it so a digital input receives the blinker pulse from the car and make that trigger the sequence..
I'll rig that up here to get a feel for it with a switch to mimic the signal pulse.. and then I gotta try the PWM for the brakes.. and then rig up both sides of the signal and make sure only the side that's supposed to be signaling has power... it's all coming together now and I'm stoked.
Here's the simple little program I wrote:
Code:
main:
readadc 0,b0
readadc 1,b1
high 0
pause b0
high 1
pause b0
high 2
pause b0
high 3
pause b0
high 4
pause b0
high 5
pause b0
high 6
pause b0
high 7
pause b1
low 7
pause b1
low 6
pause b1
low 5
pause b1
low 4
pause b1
low 3
pause b1
low 2
pause b1
low 1
pause b1
low 0
pause b1
pause 50
goto main
Can't get video to load into photobucket.. I'll get a youtube account here or something so I can upload it.
edit: I dunno why the code tags don't work, what am I missing?
edit 2: Here's the vid.. although I'm pretty much ready to make another.. I've got much more done now.
http://www.youtube.com/watch?v=BXMnO5fFuxc
Last edited: