Shop OBEX P1 Docs P2 Docs Learn Events
Count — Parallax Forums

Count

Jeffrey MaguireJeffrey Maguire Posts: 4
edited 2007-03-26 04:02 in BASIC Stamp
How can I use the COUNT command to measure frequency with the schmitt trigger? I am trying to input sound from a violin into a microphone and then have the signal pass through the schmitt trigger into the basic stamp. Then somehow the basic stamp could determine the frequency with count commands. Does anyone know how I can use the count commands to measure frequency? I have A BS2 module.

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-03-26 04:02
    Jeffrey,

    The COUNT command returns the number of transitions in a given duration. So for example, if you set that duration to 1 second, the returned number will be your frequency (cycles per second). Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.