HC-SR04 module should start with trigger pin LOW #967
Unanswered
espruino-discuss2
asked this question in
Interfacing
Replies: 1 comment
-
Posted at 2018-02-12 by @gfwilliams Thanks - I've just done that. I'm surprised though - pretty sure the modules I had never did this, but perhaps more recent ones have skipped a pull-down resistor on the inputs. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-02-11 by Steffen
Just tried out the HC-SR04 module. As soon as
require("HC-SR04").connect(...)
is called the sensor fires off and logs the distance - without waiting forsensor.trigger()
.I suggest to correct the module code to include
trig.write(0)
as the first line.Beta Was this translation helpful? Give feedback.
All reactions