Buzzer for tilt sensor - seeking a code to intergrate

Hi All,

I have been able to code my tilt sensor - accelerometer quite easily however I have not been able to find a code that works with it to include a buzzer. Is anyone able to help guide me in this? Perhaps a website or a code?

I am seeking a way to help guide my students.

Thank you in advance

Rod

What kind of buzzer are you using? The code is easy if the buzzer only must be turned on and off, more complicated if it expects a continuous rectangle signal.

Hi,
Welcome to the forum.

Can you please post your code?

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?
What model Arduino are you using?
What is the accelerometer?

Thanks.. Tom.. :slight_smile: