Vincent Perez
Published

Project 2 Protest Object

A piece of wearable technology made to counteract police brutality by alerting nearby people to the presence of a violent interaction.

BeginnerFull instructions provided37
Project 2 Protest Object

Things used in this project

Hardware components

Circuit Playground Express
Adafruit Circuit Playground Express
Attached to arm band.
×1
Li-Ion Battery 1000mAh
Li-Ion Battery 1000mAh
×1

Software apps and online services

MakeCode
Microsoft MakeCode

Story

Read more

Schematics

First step - get the components

Second step - attach the board

Third step - attach the battery

Fourth step - wear on arm. Can be slid up to conceal under sleeves.

Code

Protest Object Code

JavaScript
Very simple function that is called when the accelerometer receives shake in excess of 8g.
function Shake_8g () {
    for (let i = 0; i < 5; i++) {
        light.showAnimation(light.runningLightsAnimation, 2000)
        music.setVolume(255)
        music.siren.playUntilDone()
    }
}
input.onGesture(Gesture.EightG, function () {
    Shake_8g()
})
forever(function () {
    input.setAccelerometerRange(AcceleratorRange.EightG)
})

Credits

Vincent Perez
3 projects • 1 follower

Comments