PDA

View Full Version : Generating ping sounds



bodgetts
- 18th January 2012, 05:32
Hi,

I am trying to recreate the bullet ricochet sound like the old shooting gallery games that I can control via a PIC. I am not sure of the best way to do this either with the PIC itself, or some external circuitry. Any kind of loud dings, etc to signify a bullet has hit metal, and/or maybe some 'thud' kind of sounds for when you miss. Has anybody done this sort of stuff before? I could always use a raw sound file stored in an EEPROM for playback, but it seems like overkill for my project.

Thanks

Heckler
- 19th January 2012, 01:09
Here's a low tech idea...

How about if you use an old doorbell or electromagnet or solonoid to clank or ping or ding something to get the sound(s) you want. Obviousily this could be controlled by a sufficient transistor or relay controlled by the PIC.

bodgetts
- 19th January 2012, 04:01
I thought about that, but really need a solution that can be produced in a decent quantity (1000 units or so). I have seen electronic shooting gallery games make this sound, I was just wondering if anybody knew how they do it. I don't really have a background in analogue electronics, so not sure of the best way to go.

ScaleRobotics
- 19th January 2012, 04:27
There's the old Roman Black method. Sounds are rather hissy, but you can embed it into a pic chip. A ricochet sound mightbe well suited for it, since it might over ride the hiss. :)

Here's some code with number example. And a wave file you can play for getting an idea of the "quality". Not great, but you can easily tell what numbers they are.
http://www.picbasic.co.uk/forum/showthread.php?t=8113&p=90131#post90131

and Darrel's better example:
http://www.picbasic.co.uk/forum/showthread.php?t=8113&page=2&p=51089#post51089

(In fact, his example has a sort of laser gun sound in it.)

bodgetts
- 19th January 2012, 05:48
Thanks for the suggestion, I already tested the Roman Black method and found that the sound was just too hissy. It is pretty cool though.

I was hoping that there would be some kind of simple sound circuit I could make from other components. I have seen sine wave generators with 555 timer chips that make wailing sounds. Maybe there is something like this that they use to make 'ding' kind of sounds?

Ioannis
- 19th January 2012, 07:41
Have a look at this one

http://www.4dsystems.com.au/prod.php?id=73

Ioannis

bodgetts
- 19th January 2012, 20:58
Thanks Ioannis, the SOMO-14D looks awesome. I have ordered one and will let you know how it goes.

Demon
- 22nd January 2012, 03:57
Moved from Schematics.

Robert

bodgetts
- 23rd January 2012, 02:25
Ok, I managed to get the SOMO-14D working correctly. It does exactly what it says it should, and plays sounds quite loudly through the speaker connection. It does take a while getting the right SD card for it, but once you have that it's great.

Thanks again for the help!

Ioannis
- 23rd January 2012, 07:14
Great you got it working and your feedback.

Ioannis