Can I do this with a homework board?
thomasfamily
Posts: 17
OK, I'm still very new to this but I'm having fun and the kids and I have created a jack-o-lantern that sprays silly string by using the homework board and a PING sensor.
I took the basic idea from instructables and then wrote the code essentially from scratch since the original was for the arduino.
it works great and we can't wait to use it but now I'm thinking what ELSE can I do with this? The homework board is running off a 9V and it is powering the PING and a single servo that with some added hardware pushes the spray nozzle on a can of silly string.
simple program, looks for anything less than 3 feet away then activates the servo. waits 30 secs then looks again.
**********
my wishlist:
1. add LEDs to the eyes (pretty simple, just haven't done it yet)
2. also would love to have a car horn beep as it sprays the kids when the approach the door. or even better about 20 secs after the string hits them so they get a second jolt.
horn pulls 12V. so can I power the whole board with 12V? that might make things easier than trying to add in a transistor (no clue how to do that)
how does the increased voltage affect my PING sensor/servo/LEDs ?
if I cannot run the board off 12v how do I power the horn separate from the PING, servo and LEDs? transistor? if so how?
************
looking at maybe switching the PING to this sensor simply because it is black and easier to hide? (also PING actually belongs on my BOE-BOT and needs to go back) issues using this sensor on a HW board?
also for the price hard to beat this set of horns. I'd only need 1 for the project but they state 12V and pull 8A current.
thanks for the insight.
Shawn
I took the basic idea from instructables and then wrote the code essentially from scratch since the original was for the arduino.
it works great and we can't wait to use it but now I'm thinking what ELSE can I do with this? The homework board is running off a 9V and it is powering the PING and a single servo that with some added hardware pushes the spray nozzle on a can of silly string.
simple program, looks for anything less than 3 feet away then activates the servo. waits 30 secs then looks again.
**********
my wishlist:
1. add LEDs to the eyes (pretty simple, just haven't done it yet)
2. also would love to have a car horn beep as it sprays the kids when the approach the door. or even better about 20 secs after the string hits them so they get a second jolt.
horn pulls 12V. so can I power the whole board with 12V? that might make things easier than trying to add in a transistor (no clue how to do that)
how does the increased voltage affect my PING sensor/servo/LEDs ?
if I cannot run the board off 12v how do I power the horn separate from the PING, servo and LEDs? transistor? if so how?
************
looking at maybe switching the PING to this sensor simply because it is black and easier to hide? (also PING actually belongs on my BOE-BOT and needs to go back) issues using this sensor on a HW board?
also for the price hard to beat this set of horns. I'd only need 1 for the project but they state 12V and pull 8A current.
thanks for the insight.
Shawn
Comments
something like this seems like it would work.
then I can have the 12V supply just to the horn and controlled with the Mosfet.
so it's isolated from the homework board by the Mosfet and when I send a signal to the gate (control) pin it would honk?
also found the sensor from above on parallax site too (YaY!)
seems like that would work?
Would I need a diode across the horn to prevent any current running back into the homework board?
the silly string is fun and unexpected but a 20 second later horn blast will be hilarious. but even then the whole sequence is over rather quickly and I could get a horn blast in a half second if not less after the initial sense.
so now I need to order a new sensor and a MOSFET. Oh! and good call on the wall wart. gotta go see if I have one in the scrap box.
Since you're mechanical enough to use a servo to shoot silly string out of an aerosol can, you could really scare the kiddies with one of my favorite aerosol devices:
http://www.youtube.com/watch?v=p3wq6I8KkAo
I think, I've got it. that's very helpful and I love the flamethrower!
The mechanical side I get, it comes pretty easy and I can usually muddle through programming with enough time. I really struggle with the electronic side.
I can usually get pointed in the right direction if I read enough but my solutions may not be the most elegant.
Thank you
I switched to a home security alarm that pulls 500mA at 12v.
Planning on running it off a AA battery brick I have already.since it is momentary on, I figure the batteries will last a good while.
So I assume I can still power the board/PING off 9v then AA brick to power the alarm. Still need a transistor and a relay or can I just use the transistor? Like the MOSFET above?
Edit: so i went with this http://parallax.com/product/27115 likely overkill but will solve my issues.
Likely a cheaper way but i can use it later on other projects.