I plan to create a solution that detects for objects that are within a specified range (2 yards to 5 yards) and neglects anything not within the specified range. If an object is detected within this range, an LED corresponding to which ever side of the vehicle the object is detected (right side, left side, front, behind) will light up to warn the operator. Simultaneously, a vibration will be felt in the operator's seat from a motor that will also warn the operator as well if they encounter an object within that range. The mode of detection will be with an ultrasonic sensor. Using this approach acts as a backup. If one of the LED’s burn out, the seat will still vibrate. If the vibration motor fails, the LED’s act as a back up. The performance can be measured by experimentation (moving an object within the accepted range and seeing if the sensor can detect it and if a response is actuated via vibration or LED coming on).
I want to create a circuit with four ultrasonic sensors, four LEDS, and a motor. What I want it to do is if the sensor detects an object within a specified range it will light up a certain LED corresponding to the sensor. I would also like a motor to spin simultaneously (acts as a vibrator).
jbej19990111:
Any ideas on how I can make this happen?
Yes.
Write a sketch that lights LEDs. Blink is a common example.
When you have that working, set it aside and write a sketch that uses your sensors. Maybe have it print to the serial monitor with the sensor values.
When you have that working, set it aside and write a sketch that runs your motor.
What you have that working, then start trying to put them together.
Hello,
take on of the serval ultra-sound turials to be find the world wide web. Select the best sketch for your purpose, multiply the presented range detection function by four and the results of the functions will control the leds and the motor.