Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [hc-sr04]

The tag has no usage guidance.

0
votes
0answers
29 views

Not getting reading back from HC-SR04 with PIC18F45k50 MCU

Hello I'm trying to measure the distance with HC-SRO4 ultrasound sensor PIC18F45k50 micro-controller however, I'm not reading any value on the LCD screen. Here is the following code that I have ...
0
votes
2answers
118 views

HC-SR04 Distance Sensor Trigger Signal on 2.5V 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 3V (Nominal) voltage Coin Cell. The HC-SR04 is ...
2
votes
1answer
237 views

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 ...
0
votes
2answers
84 views

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) ...
0
votes
2answers
520 views

Can I interconnect all echo pins from multiple ultrasonic sensors?

I want to use (probably) four ultrasonic sensors HC-SR04. These use a trigger pin and echo pin. For the echo pins, I want to connect them to a timer with 'Combined Channels PWM Input on CH1', and the ...
0
votes
1answer
872 views

HC-SR04 with STM32 gives unexpected values

On an Arduino it is easy to get an HC-SR04 ultrasonic sensor getting to work. However, on my STM32(F103C8T6) I get strange values. I assumed I connect it correctly, since I get values on the trigger ...