Dominic Lincourt
Published © GPL3+

Anti-Poaching Tripwire

Stop poachers with this tripwire alarm.

BeginnerShowcase (no instructions)3 hours242
Anti-Poaching Tripwire

Things used in this project

Hardware components

Circuit Playground Express
Adafruit Circuit Playground Express
×1
Alligator Clips
Alligator Clips
×1
Battery, 3.7 V
Battery, 3.7 V
×1
Auxiliary cord
×1
Speaker
×1
Clothespin
×1
Twine
×1
Drinking Straw
×1

Software apps and online services

MakeCode
Microsoft MakeCode

Story

Read more

Schematics

Diagram

When the tripwire is tripped, the clothespin lets go of the twine which lets the CPX go into free fall which triggers the alarm.

Electronics Diagram

A0 is reserved for audio out so you can attach an alligator clip to with a ground wire to get the CPX to connect to a speaker.

Code

Code

JavaScript
input.buttonA.onEvent(ButtonEvent.Click, function () {
    light.clear()
    light.stopAllAnimations()
    music.stopAllSounds()
})
input.onGesture(Gesture.FreeFall, function () {
    music.setVolume(10)
    music.siren.loop()
    light.showAnimation(light.runningLightsAnimation, 7000)
})

Credits

Dominic Lincourt
4 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.