Hi Guys,
My project uses GPIO pins to drive PWM to control power to a load. The issue I am facing now is that the power-on-default value of the pins is driving the MOSFET fully on - this will damage my load as the current is uncontrolled. This condition exists until the boot up process is completed and firmware change the status of the selected pin.
Since the boot time is too large, we need a way to instruct the ESP32 MCU to keep the pins in the required condition during power-on / boot up process.
Can anyone please let me know how to do this?
ESP32: Power On status of the pins during power-on/ boot up process.
-
- Posts: 63
- Joined: Wed Mar 06, 2019 4:39 am
- Contact:
-
- Posts: 63
- Joined: Wed Mar 06, 2019 4:39 am
- Contact:
Re: ESP32: Power On status of the pins during power-on/ boot up process.
Anybody help me because It is urgent.
Last edited by Yuvaraj1867 on Thu Jun 20, 2019 6:49 am, edited 1 time in total.
-
- Posts: 9599
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32: Power On status of the pins during power-on/ boot up process.
You could try to hack the bootloader to set the GPIOs as soon as possible.... but that would be a workaround at best. What GPIOs are your mosfets connected to? Can you move them to IOs that aren't used during boot, and add a pull-up / pull-down resistor to force them to the correct level around that time?
-
- Posts: 63
- Joined: Wed Mar 06, 2019 4:39 am
- Contact:
Re: ESP32: Power On status of the pins during power-on/ boot up process.
Hi
Thanks.
I don't know how to hack the bootloader. Can you help me.
i am using GPIO18 and GPIO19.
Thanks.
I don't know how to hack the bootloader. Can you help me.
i am using GPIO18 and GPIO19.
-
- Posts: 9599
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32: Power On status of the pins during power-on/ boot up process.
18 and 19 aren't used by the chip on boot as far as I know. Do you have pullups/downs on the gates of your mosfets?
-
- Posts: 63
- Joined: Wed Mar 06, 2019 4:39 am
- Contact:
Re: ESP32: Power On status of the pins during power-on/ boot up process.
i will try to add pullup/pulldown.
Who is online
Users browsing this forum: No registered users and 86 guests