Coder Social home page Coder Social logo

multiple_timers-piezo_buzzer's Introduction

Multiple Timers for a Piezo Buzzer

Use the MSP430FR5969 Launchpad to play a repetitive two-tone sequence through an external piezoelectric buzzer. Square waves are generated at 2200 and 1300 Hz, which are the maritime radiotelephone audio distress frequencies. Tone duration is set by timer TA0 sourced to the VLO clock at 10 kHz. Tone frequency is set by TA1 sourced to SMCLK at 500 kHz. Drive the buzzer with TA1.1 output on P1.2. Use the TA0 interrupt to change the frequency.

A multi-tone piezo buzzer generates a high-quality audio alarm. It is an alternative to signaling with a more expensive electromagnetic buzzer that produces a single audio frequency, typically around 2500 Hz. About 10x more current is required with a magnetic buzzer, which may be undesirable in battery applications. In addition, there is a turn-on transient that may cause a noticeable "squeaking" sound (The magnetic buzzer alarm is often heard when a delivery van or service truck is in reverse gear). Advantages of a magnetic buzzer are: i) implemented by simply toggling a GPIO pin and ii) it is louder.

A simple driver circuit for the piezo-buzzer is shown. It is important to leave TA1.1 in the low state to keep the transistor turned off.

Driver circuit

multiple_timers-piezo_buzzer's People

Contributors

microphonon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.