Esp 32 using HC-SR04 PROBLEM

For general Flowcode discussion that does not belong in the other sections.
daddytims_tims
Posts: 74
http://meble-kuchenne.info.pl
Joined: Thu Jun 16, 2022 6:16 pm
Has thanked: 110 times
Been thanked: 13 times

Flowcode v10 Esp 32 using HC-SR04 PROBLEM

Post by daddytims_tims »

Hi All

I am currently working on SR04 project that requires an esp32.
It works with the Pic18f1320 and Pic16F648A.

However, I am not getting any readings, when using the esp32 with the Sr04. it ONLY return 9999.
How can this be resolved?

I need some assistance as it regards to this project.

I attached an example file below
Attachments
Esp32_HcSr04.fcfx
(12.93 KiB) Downloaded 218 times

medelec35
Matrix Staff
Posts: 1913
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 619 times
Been thanked: 644 times

Re: Esp 32 using HC-SR04 PROBLEM

Post by medelec35 »

Hello.
The properties Use Timer Interrupt, have you tried selecting No instead of yes?

The timer for ESP32 will be investigated.
Thank you for letting us know.
Martin

daddytims_tims
Posts: 74
Joined: Thu Jun 16, 2022 6:16 pm
Has thanked: 110 times
Been thanked: 13 times

Re: Esp 32 using HC-SR04 PROBLEM

Post by daddytims_tims »

Goodmorning All

Hi martin
No, I didn't select "No", but I just did, another test with 'NO' and the result were 1 then it jumps back to 9999

regards
ryan

daddytims_tims
Posts: 74
Joined: Thu Jun 16, 2022 6:16 pm
Has thanked: 110 times
Been thanked: 13 times

Re: Esp 32 using HC-SR04 PROBLEM

Post by daddytims_tims »

Goodmorning Team


Any updates on the TIMER FOR THE ESP32?

I haven't got back any Response as yet.

medelec35
Matrix Staff
Posts: 1913
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 619 times
Been thanked: 644 times

Re: Esp 32 using HC-SR04 PROBLEM

Post by medelec35 »

Hello.
Sorry for the delay.
It is on my Todo list, and it will be investigated soon.
Martin

daddytims_tims
Posts: 74
Joined: Thu Jun 16, 2022 6:16 pm
Has thanked: 110 times
Been thanked: 13 times

Re: Esp 32 using HC-SR04

Post by daddytims_tims »

Hi
Goodmorning.

Any update on this topic?

Am still interested in using the esp32 with the hc sr04

Regards

medelec35
Matrix Staff
Posts: 1913
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 619 times
Been thanked: 644 times

Re: Esp 32 using HC-SR04 PROBLEM

Post by medelec35 »

Hello.
Sorry for the delay.
I'm currently looking into this now.
Martin

medelec35
Matrix Staff
Posts: 1913
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 619 times
Been thanked: 644 times

Re: Esp 32 using HC-SR04 PROBLEM

Post by medelec35 »

It's working for me on ESP32 with Use Timer = Yes.
HC SR06 Test1.png
HC SR06 Test1.png (43.39 KiB) Viewed 1776 times
AS the distance measured is 5.5cm, I would expect the result to be between 5 & 6
Martin

daddytims_tims
Posts: 74
Joined: Thu Jun 16, 2022 6:16 pm
Has thanked: 110 times
Been thanked: 13 times

Re: Esp 32 using HC-SR04 Working

Post by daddytims_tims »

Hi Medelec35

Thanks a lot, my Hc-SR04 is now working with the esp32
:D :D
I can now finish up my Project.

Regards

medelec35
Matrix Staff
Posts: 1913
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 619 times
Been thanked: 644 times

Re: Esp 32 using HC-SR04 PROBLEM

Post by medelec35 »

That's great to hear.
Thank you for the update.
Martin

Post Reply