Backstabbing Sensing Jacket Using a TOF Sensor With Arduino

by err13 in Circuits > Arduino

91 Views, 0 Favorites, 0 Comments

Backstabbing Sensing Jacket Using a TOF Sensor With Arduino

IMG-3416.jpg

Have you ever wanted eyes in the back of your head?

Have you ever wondered what having Spidey Senses like Peter Parker would feel like?

Do you have a fear of a person coming up behind you?

Look no further, I present to you the Backstabbing Sensing Jacket.


Never fear again if a creep or scary person is coming up from behind you with this product. When the jacket gets a sense of an object approaching and coming too close, it starts sending vibrations through your back to alert you and give you time to react.

Supplies

Arduino Uno or anything similar.

Jumper Wires

Time of Flight Sensor

Mini Vibrating Motor

Mini Breadboard

9V Battery

DC to 9V adaptor cord

Jacket or Hoodie of choice

Find Materials

Screen Shot 2023-05-01 at 7.15.44 PM.png
Screen Shot 2023-05-01 at 7.17.30 PM.png
Screen Shot 2023-05-01 at 7.17.59 PM.png

I found my materials for the entirety of this project on Amazon.


They have the fastest turnaround time and around competition prices for a guaranteed fast delivery.

Start Putting Sensors Together

IMG-3414.jpg
IMG-3415.jpg
IMG-3416.jpg
IMG-3417.jpg
IMG-3421.jpg
IMG-3422.jpg

After receiving your materials in the mail start by soldering your pins to the TOF sensors that came alongside them in the bag. Each pin will need o be placed and soldered fully in order for all functions of the project to operate correctly.

I would recommend using a small and pointy tip for your soldering iron in order to avoid bridging between two pins in your solder. If you do connect the two pins you can try to continue to fix it with your soldering iron, ask a professional to help, or simply start over by knocking the existing pins in and replacing them with another set.


To extend the sensors and vibrating motor you can use wire to connect to the existing jumper and solder the connection point and then cover with shrink wrap to make sure your connection is strong and will not come lose upon installing hardware on to the jacket material.


Connecting Wired Sensors to Arduino

IMG-3471.jpg
IMG-3589.jpg
IMG-3590.jpg

Now you connect your sensors that you just wired to the board.


Set up jumpers going from the 5V Power and the GND.

Then set the following 2 jumpers to the SCL and the SDA in their respected ports.

Then the wire connected to the TOF sensors final pin "XSHUT" connects to the pins 7 and 6.

After the first row of jumper wires are connected to the bread board, you then line the same designated wires from the TOF sensor to their respected ports back to back on consecutive rows.

The vibrating motor sensor is then connected to the 5V row and then to pin 8 on the Arduino.

Download Arduino Libraries

LibraryManager_1.png
add-library.png

Before you jump into the code just yet you need to download the latest version of Arduino IDE online if you have not done so already.

Then when you open up the Arduino application, you will see the tabs at the top.

Head on over to Sketch.

Then Include Libraries.

Then Manage Libraries.

You can download many libraries from here but for this project we will be looking to include the library titled. "Adafruit_VL53L0X"

Here is the link to it as well.

VL53L0X library for Arduino - PololuGitHubhttps://github.com › pololu › vl53l0x-arduino



Download and Upload the Code to Arduino IDE

IMG-3594.jpg
IMG-3597.jpg

You can download the code from the attached item above.


Once the code is downloaded, you then can open the code and connect your board and setup your circuit.

Hit the check mark to verify your code before uploading and then once verified you can then hit upload.

Once your circuit and wiring are fully setup, you can begin to read the Serial Monitor to test if the TOF is running and reading data.

Move objects in front of and away from the circuit to see if the sensors are reacting and actively responding to the objects it is detecting.

Once you feel that the numbers you are dealing with are in range and the item is reading correctly you can then remove it and connect it to the 5V battery



Take the Circuit and Attach It to Jacket of Choice

You then will take your jacket and flip it inside out.

After doing so make just a small enough cut to fit the sensor face into the fabric on the upper and lower side of the back fabric.

Also recommend adding a pouch or pocket to the inside of the jacket to hold the Arduino and relative wires and battery.

After the TOF sensors are in the holes created in the fabric you then sew the device on to the jacket through the holes on either side of the device to keep them in place.

You can attach the vibrating motor to your skin or even the jacket it self just wherever it feels the most comfortable and where you can feel the vibration.

Wear Jacket and Enjoy a Feeling of Safety of Things Coming From Behind

After the following steps, flip the jacket back right ways and wear it out and see how it interacts with its surroundings.


Once you have the project calibrated to your liking wear the jacket out and blast your headphones full blast with the confidence that no one will sneak up on you from behind saying they can hear your music or even trying to kill you.


Have fun with it and use it for more ways than just putting eyes in the back of your head and let your creativity take over