Giovanni Minus
Created February 18, 2020

Project 2: Protest Object- Giovanni Minus

A shirt of armor that upon impact sends a signal over the internet to let people know that this person has been attacked.

BeginnerShowcase (no instructions)1 hour5
Project 2: Protest Object- Giovanni Minus

Things used in this project

Hardware components

Circuit Playground Express
Adafruit Circuit Playground Express
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Armor Shirt Video Demonstration

Armor Shirt Block MakeCode

Armor Shirt Construction 1

Armor Shirt Construction 2

Armor Shirt Construction 3

Armor Shirt Construction 4

Armor Shirt Construction 5 (Final)

Code

MakeCode JavaScript

JavaScript
input.buttonA.onEvent(ButtonEvent.Click, function () {
    alarmStatus = 2
    light.setAll(0xffffff)
})
input.buttonB.onEvent(ButtonEvent.Click, function () {
    alarmStatus = 2
    light.setAll(0xff8000)
})
let alarmStatus = 0
alarmStatus = 2
light.setAll(0xffffff)
forever(function () {
    if (input.soundLevel() >= 200) {
        alarmStatus = 1
    }
    if (alarmStatus == 1) {
        music.siren.loop()
        light.showRing(
        `red blue red blue red red blue red blue red`
        )
        light.showAnimation(light.colorWipeAnimation, 500)
    }
    if (alarmStatus == 2) {
        music.stopAllSounds()
    }
})

Credits

Giovanni Minus
3 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.