r/robots • u/inspired_goose • 9h ago
Discussion Schematic review before I order my PCB – ESP32 line follower with a 2S LiPo and TB6612FNG
drive.google.comHi everyone, I’m designing a custom PCB for a line-following robot in EasyEDA Pro. I’ve adapted parts of the open-source Semreh line follower, and I’d appreciate a schematic review before I order the boards from JLCPCB.
The robot uses a 2S LiPo and two MP2307 buck converters. One supplies 3.3 V to the ESP32-WROOM-32, sensors, and motor-driver logic. The other supplies 6.3 V to the TB6612FNG to drive two brushed DC motors.
I’d especially appreciate feedback on three things:
- Motor power. How much battery voltage can I realistically use before the 6.3 V rail starts dropping out? I used two 22 µF output capacitors and the same 3.9 nF / 5.6 kΩ compensation network on both regulators. Would you change those values for the motor rail?
- Power switch. I spotted that Q1’s body diode can still power the board when SW3 is off. I’m considering two back-to-back P-channel MOSFETs so the slide switch only carries gate current. Does that make sense here?
- Line sensors. The QRE1113GR infrared LEDs are wired in pairs with one 47 Ω resistor per pair. Each phototransistor has a 47 kΩ pull-up, and a CD74HC4067 multiplexer feeds the ESP32 ADC. Could those pull-ups make the readings slow to settle when switching channels?
I’ve also flagged the duplicate VCC label in the screenshots. The 6.3 V output should be VMOT, separate from the 3.3 V rail.
If you spot another issue, please point me to the component or pin and tell me what you’d change. Thanks!