Prox / RFID
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Resume / Consulting
LDmicro Forum - ultrasonic sensor hc sr04
(you are viewing a thread; or go back to
list of threads
ultrasonic sensor hc sr04
How to program ultrasonic sensor hc sr04 by ldmicro?
Sat Sep 13 2014, 09:53:40
The minimum cycletime is 0.2mS = 200ÁS and you have to check if the signal is high or low, means 2 x 200ÁS or 400ÁS.
Read the timing diagrams in the datasheet of the sensor and you will know if you can use ldmicro for this.
Mon Sep 15 2014, 06:18:31
Can you send me some program?
Mon Sep 15 2014, 08:12:03
What I wanted to say is that you can not use ldmicro for this sensor.
Ldmicro is too slow.
Mon Sep 15 2014, 12:42:18
(by Plesi Dumitru)
Senzorul US-016 are Aut analog ,se poate citi pe analog IN.
Mon Jun 10 2019, 09:35:53
(by JosÚ GILLES)
In fact, HC-SR04 sensor is not adapted to Ldmicro because its output is a short high-level time, which is not compatible with Ldmicro fixed cycle time.
You should use as said above a US-016 sensor, which output is an analog voltage and can be read with an ADC input.
Wed Jun 12 2019, 04:32:43
Post a reply to this comment:
(no HTML tags; use plain text, and hit Enter for a line break)
(if you want, 5 MB max)