Chat
Welcome to Flux
Treat Flux like your intern. Tell it what you'd like to build and it'll get to work. You can also ask it questions, brainstorm ideas, and teach it your preferences. Learn More
Ready.
Reviews
Designators | Net | |
|---|---|---|
Designator | MPN | |
|---|---|---|
None |
Inspect
Main Board
Controls
Properties
Availability & Pricing
| Distributor | Qty 1 | |
|---|---|---|
| Digi-Key | $14.86–$15.06 | |
| LCSC | $5.28–$7.51 | |
| Mouser | $14.30 | |
Assets
Welcome 👋
Flux helps you build PCBs faster with an AI teammate!
Create your account to collaborate, stay updated, fork your own version, and get instant answers from our AI agent.
emreonaran
copilot
-
Power Supply Connections
- The L298N module typically has a screw terminal or pin for motor power supply (often labeled as VM or VS). Connect your 12V power supply to this terminal.
- Also, ensure to connect the ground of the 12V power supply to one of the ESP32-S3-MINI's GND pins (e.g., U1:3) and the L298N ground.
-
Motor Connections
- Connect Motor A to the L298N outputs for one bridge (often labeled as Out1 and Out2).
- Connect Motor B to the L298N outputs for the other bridge (often labeled as Out3 and Out4).
-
Control Connections from ESP32-S3-MINI to L298N
- The L298N has input pins for controlling the direction of each motor and enable pins for controlling the speed (via PWM) of each motor.
- Assuming you will use PWM for speed control and digital write for direction control:
- Connect U1:IO2 (PWM capable) to L298N Enable Pin for Motor A (EnA).
- Connect U1:IO4 and U1:IO5 to L298N Input Pins for Motor A direction control (In1, In2).
- Connect U1:IO12 (PWM capable) to L298N Enable Pin for Motor B (EnB).
- Connect U1:IO13 and U1:IO14 to L298N Input Pins for Motor B direction control (In3, In4).
Sample ConnectionsU1:IO2to L298NEnA.U1:IO4to L298NIn1.U1:IO5to L298NIn2.U1:IO12to L298NEnB.U1:IO13to L298NIn3.U1:IO14to L298NIn4.emreonaran
copilot
-
L298N Dual H-Bridge IC
- This is the central component of your motor driver circuit. It contains two H-bridges, which allows you to control two motors independently.
-
Decoupling Capacitors
- Place a 100nF ceramic capacitor close to the power supply pins of the L298N for noise suppression. Moreover, include a larger electrolytic capacitor (e.g., 47µF to 100µF) near the power supply input for stability.
-
Flyback Diodes
- The L298N requires external flyback diodes for inductive load protection. One diode per output pin is needed, totaling eight diodes for full protection. Common diodes like the 1N4007 can be used for this purpose.
-
Power Supply
- Design your circuit to accommodate the motor's power supply (12V) and the logic power supply for the L298N, which is typically 5V. Note that the logic power pins on the L298N must not exceed 7V.
-
Pull-down Resistors
- It's good practice to include pull-down resistors (10kΩ) on the input pins to ensure they don't float when not driven by the ESP32-S3-MINI.
-
Heat Sink
- The L298N can get quite warm during operation, especially when driving motors near its maximum current capability. Consider adding a heat sink to your design.
Wiring and Connections- Motor Connections: Connect Motor A to Out1 and Out2, and Motor B to Out3 and Out4 of the L298N.
- Power Connections:
- Connect your 12V supply to Vs (Pin 4) of the L298N for motor power.
- Connect your 5V logic power to Vss (Pin 9) for the internal logic circuit.
- Grounds (GND) should be connected to both your power source and the ESP32-S3-MINI ground.
- Control Signals from ESP32-S3-MINI:
- Connect U1:IO2 (PWM capable) to EnA (Pin 1) for Motor A speed control.
- Connect U1:IO4 to In1 (Pin 2) and U1:IO5 to In2 (Pin 7) for Motor A direction.
- Connect U1:IO12 (PWM capable) to EnB (Pin 15) for Motor B speed control.
- Connect U1:IO13 to In3 (Pin 10) and U1:IO14 to In4 (Pin 15) for Motor B direction.
Additional Design Considerations