munhra / rdopresence

0 stars 0 forks source link

Test ultrasonic sensor HC-SR04 with ESP8266 #5

Closed munhra closed 7 years ago

munhra commented 7 years ago

Let's change the PIR sensors by ultrasonic sensors HCSR04: https://cdn.sparkfun.com/datasheets/Sensors/Proximity/HCSR04.pdf

The tests show that there is problem as this sensor uses 5V and ESP8266 only delivery 3V so it will not work. I did a test with Arduino MEGA and it work as expected as Arduino have 5V feed.

munhra commented 7 years ago

Done ! it worked. It was required to create a tension divider to send 3v from the ultrasonic sensor instead of 5v. Tension Divider

Ultrasonic assembled