Notifications
Clear all

Power supply for esp32 and a4988

3 Posts
2 Users
3 Likes
39 Views
spe109
(@spe109)
Active Member
Joined: 1 month ago
Posts: 4
Topic starter  

Hi, I'm fairly new to all this and for a while I have been making a lounge curtain opener. It is working but I would like to tidy it up a bit, in particular the power supply.

I am using the esp32 as my controller and a A4988 stepper motor driver. Currently I have a little portable USB battery plugged into the esp32 and a 12volt power supply (plugged into the wall) powering the stepper motor.

I was thinking could I get rid of the USB battery, have one 12 volt supply powering the esp32 and the A4988, but put something(a buck convertor?) to step down the voltage for the esp32.

I was wondering if that is what other people would do? Or is there a better way?

Thanks for your help

Paul.


   
DREWSTER reacted
Quote
Topic Tags
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 3926
 

Posted by: @spe109

Hi, I'm fairly new to all this and for a while I have been making a lounge curtain opener. It is working but I would like to tidy it up a bit, in particular the power supply.

I am using the esp32 as my controller and a A4988 stepper motor driver. Currently I have a little portable USB battery plugged into the esp32 and a 12volt power supply (plugged into the wall) powering the stepper motor.

I was thinking could I get rid of the USB battery, have one 12 volt supply powering the esp32 and the A4988, but put something(a buck convertor?) to step down the voltage for the esp32.

I was wondering if that is what other people would do? Or is there a better way?

Thanks for your help

Paul.

Nothing wrong with that approach as long as the wall wart can maintain the voltage when the stepper is drawing max current. I have done similar with no problem.

 

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
DREWSTER reacted
ReplyQuote
spe109
(@spe109)
Active Member
Joined: 1 month ago
Posts: 4
Topic starter  

@zander Thanks very much for confirming, it's very useful when you are new to this.


   
DREWSTER reacted
ReplyQuote