Distance Sensing Pushup Machine!
by merloav in Workshop > Laser Cutting
173 Views, 0 Favorites, 0 Comments
Distance Sensing Pushup Machine!
This is my distance sensing pushup machine. Using a CircuitPython Bluefruit (CPB), LED lights, a potentiometer, and a distance sensor, I made a machine that encourages you to do pushups whenever you get too close to it. You can prank your friends by putting it next to a doorway and then shout at them to do pushups when they walk through it!
Supplies
Electronics Used:
- CircuitPython Bluefruit microcontroller
- vl53l1x distance sensor
- Strip of LED Lights (30)
- Battery Pack containing AAA batteries
- Potentiometer
Materials:
- 1/4 Baltic Birch Wood
- 1/8 Clear Acrylic
Tools and Consumables:
- Trotec Laser Cutter
- Hot Glue Gun
- Clear Tape
Download Code
In this step, you must download the code so you can run the program on your microcontroller. In the next step, I will show you how to assemble everything so your code works!
Assembling of Electronics
This is how you must order your inputs or else the code will not run properly:
- LEDs ATTACHED TO A1 OUTPUT
- Potentiometer ATTACHED TO A3 OUTPUT
- Distance Sensor ATTACHED TO A4 OUTPUT
This video attached will help you to understand.
Assembling of Parts
First, I went to https://www.festi.info/boxes.py/ and used the "Based Box" design for my project. I kept the dimensions normal, and then I cut that design using the laser cutter. After it was all cut, I used hot glue to put the whole thing together. Finally, I cut an acrylic rectangle that held my LED lights using the laser cutter, and then attached the LEDs to it using tape.
Once all the cutting was done and my LEDs were attached, I put my CPB in the box along with the potentiometer and the distance sensor. I then put the knob of the potentiometer so it was facing outwards and taped it down so it would not move. I did the same thing with the distance sensor, only this time I made sure its sensor was not blocked.
As long as you have those steps completed, you should have a fully functional push-up box!