More as one ultrasonic sensor possible?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
noxx
Normal user
Posts: 14
Joined: 23 Feb 2016, 14:26

More as one ultrasonic sensor possible?

#1 Post by noxx » 23 Feb 2016, 14:31

Hello,

i want to use 4 ultrasonic sensors with one esp8266 (Node Dev v3).
is this possible?

or the sensors interfere with each other? can i let send the sensors sequentially?

reagard

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: More as one ultrasonic sensor possible?

#2 Post by costo » 23 Feb 2016, 16:03

Try it out , nobody has done this before with ESPEasy as far as i know.

After that tell us what your findings are. :?:
I am curious.

noxx
Normal user
Posts: 14
Joined: 23 Feb 2016, 14:26

Re: More as one ultrasonic sensor possible?

#3 Post by noxx » 23 Feb 2016, 21:18

i will try it :-)

but at the moment i have problems to run the first sensor

its connected

VCC -> 5V(VCC) of NodeMCU
GNG -> GND of NodeMCU
TRIG -> D0 of NodeMCU
ECHO -> D2 of NodeMCU

but i get no values, LOG show: 35680 : SR04 : Distance: SR04 : Distance: No reading!

My Board: http://www.seeedstudio.com/depot/NodeMC ... -2415.html
Attachments
ultrasonic.png
ultrasonic.png (31.64 KiB) Viewed 4903 times

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: More as one ultrasonic sensor possible?

#4 Post by costo » 24 Feb 2016, 02:22

I have played once with this ultrasoon sensor on a NodeMCU board.

I connected the echo signal with a voltage divider to make it compatible to 3.3V 1K in series and 2K from ESP input to ground.
The range of the HC-SR04 was not so great, about 4 meter. Accuracy was pretty good if the echo object had a hard surface and was big enough.

I think you make the mistake in numbering of the NodeMCU. GPIO-0 is not DO and GPIO-2 is not D2.
If you want to use GPIO-0 and 2 you connect them to D3 and D4 of NodeMCU
It is a bit confusing but this picture makes it clear.
http://www.14core.com/wp-content/upload ... agram1.png

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests