1
\$\begingroup\$

I am using ESP32 (GPIO-13) and RFP30N06LE to control my load (Motor). Everything works fine until i restart/reset the board, Motor starts irrespective of state (ON/OFF). I tried adding pull-down but it did not work. I want motor to stay LOW/OFF whenever board is Restarted/Reset.

Please refer bellow image for circuit connections. enter image description here

\$\endgroup\$
  • \$\begingroup\$ In case of long wires: did you put the 10k resistor as close as possible to the RFP30N06LE? Did you try using a different port (e.g. try digital IO 5)? \$\endgroup\$ – Huisman Sep 23 '19 at 11:18
  • \$\begingroup\$ Could you measure digital IO 3 with an oscilloscope? Also, in order to check whether digital IO 3 is pulled up or set high: remove mosfet, resistor and connect a LED with such a series resistor to GPIO 3 and GND, that the current through the LED is 5 mA and check if it blinks at startup/reset. \$\endgroup\$ – Huisman Sep 23 '19 at 11:25
  • \$\begingroup\$ @Huisman FYI i have circuit on PCB so there is no question about wire length. And about pin i will have to try on oscilloscope as you said. Although my question is pointing towards the internal elex. of ESP32. Does it change the external pull down cicuitary. P.S. Ignore Arduino in pic. am using ESP32 \$\endgroup\$ – Suraj Jorwekar Sep 23 '19 at 11:52
  • \$\begingroup\$ P.S. Ignore Arduino in pic. am using ESP32 It quite confusing indeed. Better update your question with the correct picture. Further, what's the esp8266 tag meant for? Please remove that as well when it serves no function. (And please correct the mosfet name in the text as well, while updating :-) ) \$\endgroup\$ – Huisman Sep 23 '19 at 12:14
  • \$\begingroup\$ @Huisman updated.Hope it helps \$\endgroup\$ – Suraj Jorwekar Sep 23 '19 at 12:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.