Shop OBEX P1 Docs P2 Docs Learn Events
Variable tone circuit — Parallax Forums

Variable tone circuit

Steve2381Steve2381 Posts: 94
edited 2006-05-15 20:41 in BASIC Stamp
Anyone got any ideas for a circuit to control a variable bleep/tone output?
I don't want to use FREQ as it halts the routine (and trashes my running numeral LED display), yet I need to play at least 5 different pitch warning tones - basically just using a brief pulse output.

I could make 5 individual tone circuits, but that ties up 5 I/O lines.

Thanks

Steve
·

Comments

  • Lee HarkerLee Harker Posts: 104
    edited 2006-05-15 19:46
    Steve,
    You could use a 555 timer circuit arranged in astable mode to create the tones. You could use a digital pot to set the frequency and a seperate pin could be used to enable the circuit with the reset pin. It is also possible if you pick your values right that you may be able to delete the enable line. You could adjust the value of the digital pot so the output of the 555 is outside the audio range.
    It would probalby take just a few milliseconds to change the tone frequency.

    Lee
  • Steve2381Steve2381 Posts: 94
    edited 2006-05-15 20:41
    Yes... I thought of using a 555 chip.
    I think its going to be a case of playing around for an evening on my breadboard and seeing what I can come up with.
Sign In or Register to comment.