The Squawking boe-Bot
So I have a little project planned. I’m calling it the Squawking boe-Bot. I guess I could call it the singing Boe-Bot.
Anyway for my Birthday I received a very funny but appropriate card. When you open the card it plays a little jingle. It’s a good jingle, but how many times do you want to open a card and here it, right.
I thought it would be fun to see if I could make my Boe-Bot play the jingle and dance a little routine. So I cut the card open to see if it was doable. I attached a photo of the guts, or as I call it, the squawk box.
The triggering device was the photocell, which I learned is just an on off switch (I always thought they generated a little voltage). Not knowing the total capability of my Micro controller yet, I figure I could use a relay to safely switch it on and off.
The relay is also in the photo, which I purchased from the local Radio Shack. I think it’s the right one for the job, feedback on this would be greatly appreciated, here are the specs.
5VDC/1A SPDT Micro Relay
Coil voltage: Nominal–5VDC; maximum–6.5VDC
Nominal coil current: 89.3 mA
Coil resistance: 56 ohms
I’m going to use the High and Low command to operate it, I’m not sure how the pause is going to work in to this, but I have time to think about that.
What do you think.
Looking at the squawker(PCB), I’m sure as I learn a little more I will be able to eliminate the Button cells and relay ,then power it from the Boe-Bot power supply.
Comments
I/O Pin HIGH = Music circuit closed
I/O Pin LOW = Music circuit open
It's good.
Probably only matters if you have another pin that is pulling any significant current.
Is any particular pin better for this use, or are they all pretty much even?
Well at least I’ve learned a few thing about relay. I ‘m really liking those latching relays I read about in one of your blogs
Am I correct in assuming (this is were I always got in trouble with girlfriends) that if the diode should vibrate lose during maneuvers and there was a kick back from the relay coil,
1. With the use of a switching transistor, it would be the .59 cent transistor that might get damaged.
Verses
2. Without the transistor it would be the Basic Stamp that could be damaged?
Personally I would use a transistor to drive a relay coil even though the uC pin could handle it. As you noted it gives an extra layer of protection for the uC. As for the diode coming loose, that would not be a problem if it is soldered to the board or across the relay coil contacts.
If anybodys interested, the Shack in Seaside had a decent little display of Parallax product. I didnt see anything at the store in Monterey, which is a drag because thats where the guy with the knowledge works.
I’ve add a photo of my Boe-Bot with the relay circuit on top, and the music module underneath.
In music timing is everything. Joseph