I am little bit confusion how to connect echo and trig pins of ultrasonic distance sensor to arduino uno and esp8266. I made connectin between Arduino uno and Esp8266 and it is connecting to wifi netwok. Now i want to read sensor data.
Which of the two you want to connect the sensor to?
Actually it doesn't matter really - just take two pins, echo and trig, tell your sketch which ones you have, and you're good to go. Uses the exact same code for both processors.
wvmarle:
Which of the two you want to connect the sensor to?
Actually it doesn't matter really - just take two pins, echo and trig, tell your sketch which ones you have, and you're good to go. Uses the exact same code for both processors.
Where do i program the code?? directly in esp8266 or in arduino uno board?
please help me this is a massive help in my thesis