Things used in this project

Hardware components:
Calliope mini
×1
Microbitheart
BBC micro:bit board
×1

Code

parking sensorJavaScript
senses strength of magnetic field and transmits it via RF to another Calliope mini
let Platzhalter = 0
radio.onDataPacketReceived(({receivedNumber}) => {
    basic.showString("r:")
    basic.showNumber(receivedNumber)
})
input.onButtonPressed(Button.A, () => {
    for (let i = 0; i < 100; i++) {
        Platzhalter = input.magneticForce(
            Dimension.Strength
        )
        radio.sendNumber(Platzhalter)
        basic.showString("s:")
        basic.showNumber(Platzhalter)
        basic.pause(2000)
    }
})

Credits

Holadiho g9t92k0hwa
Stephan Noller
7 projects • 8 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

Add projectSign up / LoginAbout BBC micro:bit