Siren with Piezo
NWCCTV
Posts: 3,629
I· was just wondering if anyone has any code for the piezo speaker in the Boe Bot kit to make a siren sound, either police or ambulance or fire truck. Thanks. Could also use a locomotive sond, but not sure if that is doable. I have been playing around with it, just cant seem to nail it down.
Comments
But you can·achieve the same with several FREQOUT commands in a loop. Pretty basic stuff.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."
freqout 11, 200, 700, 750
freqout 11, 200, 900, 950
loop
Check the attachment.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Change is inevitable - except from a vending machine.
Robert C. Gallagher
Post Edited (BoeBot) : 3/5/2010 3:55:02 AM GMT