Blind Spot Detection Sensor

by ajmoran17 in Circuits > Arduino

12 Views, 0 Favorites, 0 Comments

Blind Spot Detection Sensor

FENOUZSM9TY1V02.jpg
Light in car.jpg
Sideview.jpg

I was wanting to make a blind spot sensor for a car. Older cars do not come with that safety feature, which would be nice to have. I made this so that way I could have it in my car just by plugging it into my car charger.

Supplies

Here are the materials that were used for this project. Everything listed below should be all that is needed to make this.

  1. Arduino R4 Wifi
  2. HC-SR04T
  3. RGY LED Light
  4. Case for Arduino
  5. Case for sensor
  6. Mount for sensor

Setup

Simulation.png

I made a mock up of how it would look to picture what it would look like. I then started to plug in the wires. Here is what was pugged into the ports.

Ultrasound Sensor

  1. VCC - Plug into the 5V port
  2. Trig - Plug into the #13 pin
  3. Echo - Plug into the #12 pin
  4. GND - Plug into any GND pin

LED Light

  1. R - Plug into the #2 pin
  2. G - Plug into the #3 pin
  3. GND - Plug into any GND pin

You can use any color wire to plug into the pins, but I used Red for power on the sensor because that is the positive, black as the GND for negative, Trig was purple, Echo was green, R was red for red light, and G was green for the green light.

Assembly

Step 2.jpg

3D print the files that are attached to the setup section. Follow the settings in the link. You will have to change the orientation on the top part for the Arduino case, because it will not print correctly.

LED Wiring

Light.jpg
Light2.jpg

Plug in the green wire into the G pin on the light, and the 12 port on the board, then the red wire on the R pin on the light and the 13 port on the board, lastly plug in the black wire into the GND pin to the GND port.

Ultrasound Sensor Wiring

Ultra.jpg
Ultra 2.jpg

Plug the red wire to the 5V port and the VCC pin on the sensor, then the Green echo wire into port #2 and the echo pin on the sensor. Plug the purple Trig wire into the #3 port and the trig pin on the sensor, and the black GND wire into any GND port and the GND pin on the sensor.

Code

Code.png

Use this code in the Arduino IDE program for the ultrasound sensor and light to know what they are doing. Once you fill out this code then you will verify it on the checkmark on the top left, then import it into the Arduino with it plugged into the computer that you use to code.

Setup in Vehicle

You can set up as you want or need. You will need velcro strips to adhere it to what ever surface you are trying to put it on. I put it under my sideview mirror to and the light next to the media center on my car as the wires cannot reach to far away from the Arduino.

Congrats!

I had a lot of fun learning how to do this project, as I have never worked with Arduino and code with actually using it on a tool. You may have to tweak it a little with the angles, but I got it to work relatively reliably by adjusting as needed.