Questions tagged [ultrasonics]
The ultrasonics tag has no summary.
28 questions
0 votes
1 answer
91 views
Ultrasonic sensor showing random readings
I am using a HC-SR04 ultrasonic sensor to measure the distance using an Arduino Uno. When I run this code which is worked perfectly in the previous, it only shows just random readings in the serial ...
1 vote
0 answers
242 views
Inaccurate and changed results with ultrasonic sensor
I have an issue using an ultrasonic sensor. The problem is that when I connect the ultrasonic sensor to my Arduino Nano, it always gives some random values, usually 130 cm, I don't know why. I bought ...
0 votes
1 answer
166 views
Single Method for 2 Ultrasonic Sensor is not working as expected
So I have created a method to read and return Ultrasonic Sensor Data. I have 2 Ultrasonic Sensors. Below is my code. // Ultrasonic Pins #define T1 2 &...
1 vote
0 answers
96 views
Controlling Bluetooth voice-controlled car with ultrasonic sensor
I am trying to use an ultrasonic sensor to stop a tiny voice-controlled car but I can't get it to work. once the motor starts moving it doesn't stop I'm trying to make the car stop moving even though ...
1 vote
0 answers
99 views
I want my LED's to turn on for 5 sec when the Ultrasonic Sensor Activated
const int Trigger = 6; const int Echo = 7; const int LEDpin1 = 4; const int LEDpin2 = 5; const int Parameter = 400; float Time; void setup() { Serial.begin(9600); pinMode(Trigger, OUTPUT); pinMode(...
4 votes
1 answer
227 views
Can't stop the 3 pin active buzzer
I was simply trying to program a buzzer with the ultrasonic HC SR04 and 128x64 OLED display. The buzzer is an active buzzer (3 pin) on a small board. The problem is that, once on, it never stops ...
2 votes
1 answer
571 views
Arduino (line follower + ultrasonic sensor + servomotor)
I am making a line follower car that follows the line when push button is pressed. And by using ultrasonic sensor I want the car to stop when object ahead distance is closer than 100 and then make ...
0 votes
1 answer
106 views
How to make ultrasonic and light sensors detect whether a person moving in or out [closed]
I am trying to make a circuit that will be used for turning on a light whenever there are 1 or more people in a room. I need to add to a variable counter when someone enters and subtract when someone ...