Things used in this project

Hardware components:
Calliope mini weiss joernalraun ixmjbewlqx
Calliope mini v1.0
×1
SeeedStudio Grove - Finger-clip Heart Rate Sensor
×1

Schematics

Calliope PXT Editor Screenshot
Mini screenshot (2) mlnviqkfas

Code

Calliope PXT Editor JavaScript CodeJavaScript
let beats = 0
let sekunden = 0
basic.forever(() => {
    basic.pause(1000)
    sekunden += 1
    if (sekunden == 15) {
        sekunden = 0
        basic.showNumber(beats * 4)
        beats = 0
    }
})
pins.onPulsed(DigitalPin.C16, PulseValue.High, () => {
    beats += 1
    if (sekunden != 0) {
        basic.showLeds(`
            . # . # .
            # # # # #
            # # # # #
            . # # # .
            . . # . .
            `)
        basic.pause(25)
        basic.clearScreen()
    }
})
sekunden = 0
beats = 0

Credits

  ?auto=compress%2cformat&w=60&h=60&fit=min
Sven Haiges
3 projects • 4 followers
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaBlog