'Don't Touch Me' Anti-Virus Alarm

by BrownDogGadgets in Circuits > Arduino

3183 Views, 30 Favorites, 0 Comments

'Don't Touch Me' Anti-Virus Alarm

IMG_9901.jpeg
IMG_9857.jpeg
IMG_9888.jpeg
IMG_9880.jpeg

Sometimes you just want to keep people at arms length, such as when you have a cold or the other people might have a horrible virus of their own. For those situations you need a device that warns you when others are getting too close. Thats why we built the "Don't Touch Me" Anti-Virus Alarm system! Whenever someone gets within 6 feet of you the speaker will start emitting a loud and annoying sound while the LED starts flashing faster and faster. Protect yourself today with proven technology!

We wanted to build a silly project to help pass our time in quarantine so we built this. It's a pretty simple project overall, using an Arduino for the brain and a simple ultrasonic range finder as a sensor. We built this using Crazy Circuits components so we could stick the project onto LEGO, but you could also easily build this using standard components and any Arduino compatible board.

If you like our projects and want to see more of what we get up to each week please follow us on Instagram, Twitter, Facebook, and YouTube.

Supplies

Brown Dog Gadgets does in fact sell kits and supplies, but you don't need to buy anything from us to make this project. Though if you do it does help support us in creating new projects and teacher resources.

Electronics:

Other Supplies:

Video Guide

Don't Touch Me Anti-Virus Alarm

For those of you who hate to read we also made this handy video guide.

Lay Out LEGO and Electronics Components

Screen Shot 2020-03-26 at 8.49.40 PM.png
IMG_9878.jpeg
IMG_9876.jpeg
IMG_9873.jpg

In general you can just look at the above diagram and see how everything is connected.

We start by laying out some LEGO plates in order to build a platform for the Robotics Board to sit on. We used some 2x4 plates, but some 1 stud wide plates would also work just fine. You could also just have the Robotics Board hand off the edge of your LEGO base plate as well.

Then, plan out where your electronics will go. We chained the Negative of our LED and Piezo Speaker off each other, but you don't have to do that.

Lastly we added our 1/8th inch Maker Tape. This stuff is a nylon conductive tape which is super strong and durable which makes it perfect for the pressure fit of our Crazy Circuits components.

Sensor Holder

IMG_9868.jpeg

Use some 2x3 and 2x2 bricks to build a platform for the sensor.

We'll also use a couple of 1x6 bricks to hold the sensor in place.

If you have a 3D printer you can also try printing your own sensor holder!

Wire Up Sensor

IMG_9883.jpeg
IMG_9869.jpg
IMG_9871.jpg

The Robotics Board has pin headers on the back end for easy connection to sensors.

The way our code is set up we're using Pin 6 for the Echo and Pin 5 for the Trigger. Connect VCC to any 5V pin and GND to any GND pin.

We also used a 1x2 Technic brick as a wire organizer. Shoving four ribbon cables through it is possible, just don't expect to ever be able to take them out again.

Add More Bricks

IMG_9866.jpg

Add in a couple of 1x6 and 1x4 LEGO bricks to hold the sensor in place.

We also added some longer 1x6 LEGO Technic bricks to the top so we could attach the lanyard.

Upload Code

Screen Shot 2020-03-26 at 6.15.12 PM.png

Before this thing will work you'll need to upload code. If you've not done so already, make sure you have the latest version of the free Arduino IDE software installed on your computer.

Our code is found at our GitHub repo along with the NewTone_1.0 library. You'll need to install the NewTone library for this project to work.

The code is very straight forward. You can change the distance settings as well as which pins are being used for input and outputs.

Enjoy!

IMG_9900.jpg

Thats pretty much it for this project. We hope you've enjoyed making a personal alarm system for yourself.

With any luck you won't need it, but it may come in handy.

Or if nothing else you can use it to alert you to when a cat, dog, or small child is trying to sneak up on you while you work/ study at home. Pesky small mammals!