Shop OBEX P1 Docs P2 Docs Learn Events
BPM calculator, displaying BPM on LCD. — Parallax Forums

BPM calculator, displaying BPM on LCD.

Clock LoopClock Loop Posts: 2,069
edited 2008-03-01 06:31 in Robotics
Beats Per Minute, mostly musical use, possibly for live mixing DJ's.

This was my very first project with my BS2. After ALOT of help here I finally finished the BPM calculator.

I then integrated a cheap 5$ graphical display into it. http://forums.parallax.com/showthread.php?p=556815

The finished BS2 code, and schematic is attached.

The BS2 code could use ALOT of optimization im sure.

The circuit NEEDS a button debouncer i think, then the BPM might be even more exact.
(the 555 timer gives the stamp a external way to count the cycles that happen in between each button press, creating "on the fly" bpm counting. I added some averaging code to smooth out the results.)

Right now the BPM is within about 4 BPM of the real BPM. (2 up and 2 down)

If anyone has any suggestions on how I can get more accurate with it, let me know please.

Post Edited (BPM) : 11/21/2005 11:41:27 PM GMT
320 x 242 - 71K
1180 x 659 - 298K

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-11-21 15:28
    BPM,

    ·· Do you have any filtering capacitors in your power supply system?· I noticed there are none on the voltage regulator...But I can't remember what the LM317 requires off the top of my head.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Clock LoopClock Loop Posts: 2,069
    edited 2005-11-21 21:36
    I suppose I should have added them to the schematic, I have cap filters in with my breadboard's voltage regulators. I'll edit the schematic.

    It now shows two .1uf NP caps on both 5v and 2.5v supplies.

    Post Edited (BPM) : 11/21/2005 11:42:12 PM GMT
  • LejgeoLejgeo Posts: 8
    edited 2006-01-19 05:13
    where did you get the lcd?
  • Clock LoopClock Loop Posts: 2,069
    edited 2006-01-20 19:17
    Lejgeo said...
    where did you get the lcd?

    Go here for more info on the LCD.

    http://forums.parallax.com/showthread.php?p=556815

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Meh. Nothing here, move along.
  • RinksCustomsRinksCustoms Posts: 531
    edited 2006-06-29 07:24
    i believe you could use a schmitt trigger logic gate to debounce that switch, find out how at www.discovercircuits.com

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Definetly a E3 (Electronics Engineer Extrodinare!)
    "I laugh in the face of imposible,... not because i know it all, ... but because I don't know well enough!"
  • Ryan ClarkeRyan Clarke Posts: 738
    edited 2006-06-29 15:44
    So this is for generating the BPM after reading in button presses, yes? Do you have a way to simply input a number to begin generating the desired BPM?

    Any pictures of the finished unit ?

    Thanks for sharing this!

    Ryan

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Ryan Clarke
    Parallax Tech Support

    RClarke@Parallax.com
  • Clock LoopClock Loop Posts: 2,069
    edited 2006-07-04 04:28
    I didn't know this thread came back. I didn't originally have a way to input starting bpm. But with the lcd project, I can include a way to include a keypad, and a housing. A.K.A. a cell phone. I don't mean a program for your cell phone, I mean the cell phone, lcd, and interface keypad with all circuits in tact. It wouldn't have a battery tho. You must provide power.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Meh. Nothing here, move along.
  • TrezitorulTrezitorul Posts: 68
    edited 2008-03-01 06:31
    Just a suggestion to make it more accurate.
    Have you considered the time required for the beep in the total BPM.
    confused.gif
Sign In or Register to comment.