Piggy Bank with sound

Hi,

I’m looking to make a piggy bank that makes a sound when you put a coin in for a gift. I’ve got the sound module and speaker already but just wondering what the best way to trigger the module is. The obvious answer would be a limit/Microswitch but I can’t get it to work it’s quite inconsistent. I thought this may have been done before but couldn’t see anything via the search option. I’m open to any suggestions or ideas.

Thanks

Daniel

2 Likes

Hiya @Daniel209871

What is the size of your piggy bank?
i.e. How much room do we have to put in a sensor?
For instance, Is there any room inside the coin slit for a beam break sensor like this?

2 Likes

Hi @Daniel209871,

Another version of the IR Break Beam sensor @Pixmusix shared could be an IR object presence sensor.

I can also think of a few different ways of doing this as well that might start overcomplicating this involving different types of sensors but they’d likely be less reliable than a simple beam break.

3 Likes

Oh this IR sensor is so cheap and cute! I love it. :heart:

2 Likes

This

could be set up with a finely balanced tilting tray so it responds to the smallest coin.

2 Likes

Couldn’t Dan get a sweet payday by just rolling the piggy down a hill? :pig2: :mount_fuji:
Can he set a max response?

1 Like

Hi Pix

Would an IR sensor detect coins??? I would not think a coin would have much in the way of IR to detect.
Just a thought.
Cheers Bob

2 Likes

I think it’s got an IR Led on the board and a sensor that looks fro the reflections off an object. Is that right @Aaron

4 Likes

Hi Pix
Yes, that would probably explain it
Cheers Bob

1 Like

Thanks for everyone’s help I’ve got some things to work with now and some great ideas.

Daniel

3 Likes

I have used this sort of thing in the past.

There are different size and shapes for the slot part.
In short you power the “IR LED” then the coin would break the beam.

You would need to shop around to find the best size/shape and beam location in the sensor to match your setup such that the coin would always break the beam.

2 Likes

Hi Michael. Thanks for that. That option also seems feasible. But excuse poor understanding but would you just cut a slot in the bottom of the “ U piece” so the coin could go through?

Thanks

Daniel

1 Like

Hi Daniel,

That is certainly one option but that is also what is keeping the beam alligned with the detector.

This one is the same type of sensor with a slot a bit wider (0.2mm) than a $2 coin. With the tolerances on the drawing, it could end up on the smaller side.

If you’re searching through DigiKey there are many different photointerrupters in stock and you can optimise your search with a sensing distance. Just check the datasheets to make sure that it isn’t too large to fit into your piggy bank.

1 Like

Hi all,

Jumping on the IR photointerrupter bandwagon we also stock this one: https://core-electronics.com.au/ir-break-beam-endstop-sensor.html

Should be plenty enough for any coins!

Liam

1 Like

there are a few ways and options, just need to ensure it works in your case.
But in short it would mount sideways.
Sorry for my very rough image…

But something like this… box with slot, Just under the slot (inside the box), you place the sensor (red) with the wires going back to the controller/sound board etc.
then as the coin (orange) is dropped it cuts the senor/beam.

Note: The challenge is the size of the coin (slot) v the bit of the beam that needs to be cut; so checking actual specs will be important. e.g. you could have a small coin miss the beam cut while bigger ones work.

there are designs for the slot that can also deal with it.
e.g. Coin drops onto a ramp, then “rolls” past the sensor.
so maybe some cad work and a 3d print ?

So just some idea that may or may not work in your use case.

image

2 Likes

Cheers everyone for their input. Super helpful. I’m pretty sure I should be able to sort something out with all this info

3 Likes