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.
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