Using 5V of L298N to feed ESP32

leonardus
Posts: 1
Joined: Sat Sep 03, 2022 5:06 pm

Using 5V of L298N to feed ESP32

Postby leonardus » Sun Sep 04, 2022 8:58 am

I'm using sketch 'ESP32 Web Server' and Motor Driver L298N to run and change direction at maximum speed a dc motor with my smartphone. Feeding the dc motor via the motor driver with a 9V battery. By placing a jumper a separate 5V battery for feeding the L298N is not necessary. The ESP32 is feeding with a separate 4.5V battery. All is working fine.
However removing the 4.5V battery and feeding the ESP32 also by the 12V connection of the L298N the motor turns a second and stops. Also for the other direction.
Any idea what the problem is?

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: Using 5V of L298N to feed ESP32

Postby ESP_Sprite » Sun Sep 04, 2022 11:39 am

A 9V battery in general has very low current-delivering capabilities because of a fairly high internal resistance. Turning on the motor may pull the power line so low the ESP32 resets.

rodmcm
Posts: 65
Joined: Sat Sep 02, 2017 3:31 am

Re: Using 5V of L298N to feed ESP32

Postby rodmcm » Sat Sep 10, 2022 11:08 pm

Can you show schematic of how the ESP32 gets supplied. ESP32 are 3.3V. I assume you have regulator inbetween. What is the input range of the requlator. See previous answer

Who is online

Users browsing this forum: ken_cheng and 35 guests