Questions tagged [hc-sr04]
17 questions
5
votes
4 answers
What is the purpose of this extra capacitor in this opamp low pass filter?
I'm trying to follow along with this blog post reverse engineering the HC-SR04 ultrasonic distance sensor.
The signal from the receiving transducer is amplified, filtered, and then amplified again.
On the filter, there is a 1 nF cap C4 between the…

user364952
- 151
- 1
2
votes
1 answer
Is it possible to make an LED turn on with an HC-SR04 without using an arduino? Only when an object is near it?
I don't know anything about coding so I wish to achieve this effect without a help of an arduino. I'm trying to minimize as much power as possible and trying to achieve the HC-SR04 sensor to sense anything up to 10-14ft to trigger the LED to turn…

Dean Sammels
- 21
- 2
1
vote
1 answer
Why can't the HC-SR04 sensor detect objects that are very close to it?
I am following this worksheet and I am struggling to understand the following piece of code:
# Stop when the Echo pin is no longer high - the end time
while GPIO.input(pinEcho) == 1:
StopTime = time.time()
# If the…

a_sid
- 141
- 8
1
vote
1 answer
How do I cutoff power to ultrasonic HC-SR06 when it is not been used, to save power
I want to read an ultrasonic sensor data every 10 minutes and expect that the module should be turned off in order to save power.
How do I do this?
I tried with a BC547 and PN2222 transistor but I end up with failure.
Can you please suggest a better…

Manu Devappa
- 54
- 6
1
vote
2 answers
HC-SR04 distance sensor trigger signal on 2.5 V voltage level gives no reading
I am using an Arduino on a breadboard setup with an ATMEGA328p MCU. The whole circuit is designed to work in a low-power state and is powered using a 3 V (nominal) Coin Cell.
The HC-SR04 is getting a stable power supply of 5 V from another source…

Marry35
- 131
- 4
0
votes
0 answers
How does the circuit for the HC-SR04 ultrasonic sensor work?
I already understand that the HC-SR04 ultrasonic sensor sends out a pulse and can be used to measure distance with the time of the echo. I want to know more about the actual physical construction of the sensor's circuit and how it works. I basically…

Jane Doe
- 1
- 1
0
votes
1 answer
Proteus Simulation Error With 555 and HCSR04
Hello internet, I stuck at some point while simulating my circuit. This is a circuit that will measure distance and display it on seven segment displays. Firstly, When I tried to simulate this circuit I'm getting these errors;
[SPICE] Gmin step [0…

Robottur
- 1
- 2
0
votes
0 answers
How to do a pulse generator whose pulse width is controlled by a voltage measured in proteus without using a microcontroller or an analog circuit?
how are you?.
I'm trying to emulate the behavior of the HC-SR04 distance sensor in proteus but using variables.
I succesfully could make a simulation of a water tank whose level is indicating by the voltage of a capacitor and I want that voltage as…

vram
- 158
- 12
0
votes
1 answer
Ultrasonic sensor not detecting any values when using Arduino and LabVIEW
I have connected the circuit as shown.
The circuit works perfectly when I Use the Arduino ide.
When I use LabVIEW, the distance from the ultrasonic sensor is always zero.
The LabVIEW circuit diagram is shown.
The Arduino ide code is shown below.
…

Alex Mwaura
- 21
- 1
- 7
0
votes
1 answer
HCSR04 with PIC18f24k22 stuck in real test
I have a problem with HCSR04 ultrasonic distance sensor. I wrote a code that works perfectly in Proteus simulator but when I upload it in real microchip it stop working properly. Looks like it sticks at one while loop and never get a echo signal.…

proestpa
- 1
- 4
0
votes
0 answers
Functional block digram of a HC-SR04?
Can anyone illustrate a functional block diagram of a HC-SR04 ultrasonic sensor? I understand how it works when it comes to the application but I would like to know how it works fundamentally as a system.

BroomHilda
- 75
- 1
- 7
0
votes
1 answer
Arduino DC Motors Not Working Correctly With The Servo
I m building a simple obstacle avoidance robot. Here I Typed the code. But there is a bug I cannot find . The Motors are not working properly when they intergrated as whole. when I check the codes and run separatly it runs the dc motor smoothly.…

Shakthi Sachintha
- 53
- 5
0
votes
1 answer
Ultrasonic module Water proof vs non-water proof types
Ranging SR04 Ultrasonic modules are available as water proof and non-water types.
In the water proof types SR04 modules there is only 1 sensor while in the non-water proof types SR04 there are 2 sensors, 1 as transmitter 1 as receiver. How does…

alt-rose
- 1,441
- 14
- 29
0
votes
1 answer
Dummy Ultrasonic Transducer
I have several HC-SR04 modules which I wish to modify. There are two modifications in particular I want to ask about
First, I am going to use two modules in parallel to determine location as opposed to distance. I’ve seen a project where two modules…

djsfantasi
- 17
- 6
0
votes
2 answers
HC-SR04 Ultrasonic sensor below a grid plate
I want to use the ultrasonic sensor under a metal grid plate like below (just 1 of those plates instead of 3). The sender/receiver will be under (partly inside) two adjecent holes (hopefully it fits) and point upwards. The reason is to detect if…

Michel Keijzers
- 13,867
- 18
- 69
- 139