-->
Page 1 of 1

Esp01 and hc-sr04 GPIO2 boot problem

PostPosted: Fri Dec 02, 2016 5:42 am
by seedseifer
Hello All,
I need wire Gpio2 with echo pin on hc-sr04 (ultrassonic sensor) but every time I go to download mode on power up, if i power esp without connect echo pin all works well (connecting pin after boot process)
Any hint?

Thks and sorry about bad english :D

Re: Esp01 and hc-sr04 GPIO2 boot problem

PostPosted: Fri Dec 02, 2016 9:10 am
by AcmeUK

Re: Esp01 and hc-sr04 GPIO2 boot problem

PostPosted: Fri Dec 02, 2016 10:19 am
by martinayotte
GPIO2 and GPIO0 need to be both HIGH to boot in normal execution mode.
If the HC-SR04 provide LOW in idle state, I would recommend to use a MOSFET as an Inverter, so in the way the idle state will becomes HIGH.