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
Reviews
Properties
Properties describe core aspects of the project.
Pricing & Availability
Distributor | Qty 1 |
|---|---|
Digi-Key | $13.73–$15.30 |
LCSC | $3.15–$6.75 |
Mouser | $15.14 |
Controls
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.
gathuaalex
copilot
L298Nis an integrated motor driver which controls two DC motors simultaneously. Below are the steps on how to connect theL298N (U1)chip:ENAandENB: These are the enable pins for the two DC motors. Typically, you would connect these pins to two output pins on the microcontroller, in your case, theRP2040 (U4). For example, you could useU4:GPIO0forU1:ENAandU4:GPIO1forU1:ENB.IN1toIN4: These are the input pins used to control the direction of the two DC motors. You would usually connect these to four other output pins on the microcontroller. For instance, you could useU4:GPIO2,U4:GPIO3,U4:GPIO4, andU4:GPIO5to connect toU1:IN1,U1:IN2,U1:IN3, andU1:IN4respectively.VSS: This is the logic power supply pin and must be connected to the 3.3V power supply. You can connect it toU2:VOUTwhich is 3.3V power source.VS: This is the motor power supply pin and supplies the power that will be used to drive the motors. Depending on the voltage requirements of your motor, you may need to connect this to a different power supply. Ensure that it is connected to the positive terminal of an appropriate power supply.OUT1toOUT4: These are the output pins where you connect your DC motors.U1:OUT1andU1:OUT2will connect to the first motor, andU1:OUT3andU1:OUT4to the second motor.SENSE_AandSENSE_B: These pins can be connected to the analog inputs on the microcontroller for feedback about the motor's condition. You could useU4:GPIO26/ADC0forU1:SENSE_AandU4:GPIO27/ADC1forU1:SENSE_B.GND: Connect these pins to the ground of your circuit. You can connect it toGroundfrom your additional nets.L298Ncan draw a lot of current, so ensure your power supply can handle the load. Always power off the circuit before making any changes to prevent any damage to the components.