People who code: we want your input. Take the Survey

Questions tagged [ultrasonics]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
31 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
0answers
34 views

Linefollower detecting obstacles

I have a problem with linefollower which detects line with infrared sensors and follows it, but I would like it to detect obstacles with an ultrasonic sensor. I would like the robot to stop after ...
1
vote
0answers
40 views

Does natural outdoors wind affect the readings of an ultrasonic sensor significantly?

I am thinking of using an ultrasonic sensor outdoors, and am wondering if the presence of wind (say up to 20km/h) would significantly impact the accuracy of the readings, or would this not be a large ...
1
vote
1answer
38 views

How does measuring angled surfaces using ultrasonic distance sensors affect the readings?

I've read online that ultrasonic distance sensors do not work well when measuring surfaces that aren't close to perpendicular to the sensor (read something like 5 degrees from perpendicular). I was ...
0
votes
1answer
27 views

How to make ultrasonic and light sensors detect whether a person moving in or out

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 ...
1
vote
0answers
49 views

How can I detect the amount of water that must be filled in an arbitrary container?

So I am making a Smart Water Dispenser that must detect the amount of water that must be filled in an arbitrary shaped container. This is what I have thought: Installing an IR LED strip to first ...
1
vote
2answers
235 views

Arduino code not working properly (Please Help)

I am having some trouble getting my board to perform the function I want it to perform. This is a project I have due in a few days, and I have hit a wall I just can't seem to get past. Now, I will say ...
2
votes
0answers
22 views

Issues with Polytone Library?

I'm building a device that uses two ultrasonic sensors to detect objects and provide audio feedback in the form of beeps that get faster the closer an object is. I have two speakers, one for each ...
0
votes
0answers
41 views

ESP32 + distance sensor only works when disconnecting & reconnecting cable after code upload

I'm trying to set up my ESP32-WROOM-32D to use an AJ-SR04M ultrasonic sound distance sensor but am having some difficulties. Using Arduino IDE with NewPing and the below code, distance measurements ...
1
vote
0answers
41 views

Problem using sequential loop

So I have created this project to have an LED blinking at a constant speed whenever the program is running. The first LED (green) will blink faster and faster the closer an object gets to the sensor. ...
1
vote
0answers
32 views

Arduino Ultrasonic Sensor AnalogRead

i have an ultrasonic sensor. The sensor normally works stably. But I have to carry the data cables of this sensor for 50 meters and take reading. When i do this, when I extend the cable, the values I ...
2
votes
0answers
26 views

When is following code is dumped into Arduino NANO the output is not as expected after few trials

I'm a beginner of Arduino programming, when I dumped the following code into Arduino NANO board, at the first the output is as expected. But After few trials the 16*2 LCD display is getting off and ...
1
vote
1answer
85 views

How to get an angle from two ultrasonic sensors

I am building a chair for a special 4 year-old with cerebral palsy, I thought it would be a good idea to add two distance sensors on each arm of the chair to measure the angle at which he presses ...
1
vote
2answers
796 views

sro4m-2 waterproof ultrasonic sensor

I bought this waterproof ultrasonic sensor about 5 of them with the part number SR04M-2 Written on the PCB silkscreen Which is different from the usual SR04t-0.2, they are just not working, I don't ...
0
votes
1answer
25 views

Whatever components we connect to the Arduino, their grounds and 5v pin connection must be the same?

I am trying to connect different types of sensors & motors to the Arduino should I make their grounds and 5v pins on the same connection.
0
votes
1answer
672 views

UltraSonic Sensor wirh ESP-01 Standalone

I'm trying to build a cheap device to measure water level in a tank using HC-SR04 sensor and ESP-01 which send the data to MQTT topic. I used the same code with ESP-E12 which works just fine. As I'm ...
0
votes
0answers
503 views

Data Fluctuation with AJ-SR04M Sensor

I'm working on water level detector using lolin nodemcu v3 and AJ-SR04M Sensor, a water proof ultrasonic sensor. It is working fine at close distance less than one meter or so. However for long ...
0
votes
1answer
53 views

working with ultrasonic sensors

I have a little problem dealing with ultrasonic sensor I want a simple thing , when the sensor read High pulse then after it low pulse , turns on the led so I try to make it with a 5cm distance and a ...
3
votes
2answers
94 views

Is an Ultrasonic Sensor or Infrared Sensor better for measuring distance (to/from a human body)?

I'm trying to make a sensor to detect that a person is within 50cm to trigger a function. But when I use the HR-SR04 sensor, it works accurately on flat surfaces (e.g. walls, books) with a margin of ...
1
vote
0answers
39 views

why this unexpected behaviour shows when i use the following code to send the data from the ultrasonic distance sensor to firebase

I am using nodeMCU esp8266 wifi module to send the data received by the ultrasonic distance sensor to the firebase. here is my code: #include <ArduinoJson.h> #include <ESP8266WiFi.h> #...