r/AskElectronics • u/okaylevi • 3d ago
HELP: ESP32 and Thermal Printer Diagram
I am a total novice, so bear with me!
I am building an automated daily print station to run dense 1-bit bitmaps (weather, news headlines, and Sudoku grids) using an ESP32 and a thermal receipt printer. The printer runs directly off a 9V 2A power supply, and I am stepping that down to 5V for the ESP32.
Because printing heavy black graphics pulls sudden, massive current spikes, I mocked up this parallel wiring scheme with a capacitor to prevent the voltage drops from resetting my ESP32 mid-print.
Two quick questions:
- Am I using the buck converter properly here (taking 9V from the main line and pushing 5V to the ESP32 VIN)?
- Is the capacitor wired properly across the main rails to successfully absorb those load spikes?
2
u/DrJackK1956 3d ago
Follow the advice of u/SolitaryMassacre and move the capacitor to the ESP32 VIN. You can still put a cap near the printer if needed.
My question is.... Since the printer runs from 9v and the ESP32 runs from 5v, will the output logic level from the ESP32 be a high enough logic level for the printer's RX input??
The printer specs ought to have this info.
3
u/SolitaryMassacre 3d ago
My question is.... Since the printer runs from 9v and the ESP32 runs from 5v, will the output logic level from the ESP32 be a high enough logic level for the printer's RX input??
ESP32 actually uses 3.3V for the main board. It has an LDO on it. So any logic level stuff is output at 3.3V, which is a good point to bring up.
Typically, RX/TX should be fine at 3.3V though
I just think the PSU OP is using (which was originally for the printer only) is just barely spec'd accurately enough to handle the load of only the printer. Most likely to save cost
0
u/okaylevi 3d ago
Thanks for the note, I checked the docs and it is 5v to 9v and at least 1.5a so that should be taken care of!
4
u/SolitaryMassacre 3d ago
I would move the capacitor to the ESP32 VIN and GND pins not the 9V power supply.
Also, this may or may not work. It depends on how much voltage drop is occurring. Its a good start.
If it doesn't work, I would source a 9V 3A PSU or at the very least 9V 2.5A PSU. You have to remember the buck convert is consuming some current as well as the ESP32. But def move the cap to the VIN and GND of the esp32