Hendini21 / Local_Flood_Navigation

0 stars 2 forks source link

ESP32 interaction with Ultrasonic Sensor #2

Open Hendini21 opened 4 years ago

Hendini21 commented 4 years ago

Hey Hieu, It has been a while. Happy New Year. I hope you are enjoying the holidays. I am having a problem with my ESP32 and the ultrasonic sensor. I will send you pictures and the code file. Thanks again. -Alex

Hendini21 commented 4 years ago

@ image image image image

cheehieu commented 4 years ago

Hey Alex. Can you elaborate on what the problem is? Are you getting any readings from the sensor?

Hendini21 commented 4 years ago

No, the readings aren't taking place, nothing is happening at all.

Hendini21 commented 4 years ago

That's the problem this is the standard code for using this kind of ultrasonic sensor, so it should work, but it doesn't work.

cheehieu commented 4 years ago

It's a bit difficult for me to debug without seeing the hardware in person... But I would make sure to check the following:

Hendini21 commented 4 years ago

The sensor is the same is almost every aspect, the only difference is that it is built by someone else. It runs the exact same way though.

cheehieu commented 4 years ago

Maybe it is a faulty sensor? Can you try running your code with another one to see if you get the same results?

Hendini21 commented 4 years ago

The sensor is brand new. I got it the day I tried running the code and it didn’t work. I don’t know what’s wrong with my layout if there is anything wrong.

Hendini21 commented 4 years ago

But yes, I will try the code with another sensor.

Hendini21 commented 4 years ago

I got another sensor and am trying to figure out if I just have my board set incorrectly, but I don't know if I do.

Hendini21 commented 4 years ago

Nevermind, I got it working.