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
Specific Teal Sonic Screwdriver
Properties
Properties describe core aspects of the project.
Pricing & Availability
Distributor | Qty 1 |
|---|---|
Digi-Key | $12.56 |
LCSC | $3.29–$5.25 |
Mouser | $11.63 |
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.
cg75
copilot
- Connect all
- Connect
- Connect all
- Connect
- The L298N (
- Connect
Step 2: Motor Driver to MotorsIOVDDandDVDDpins of U1 to a +3.3V power source. Given the Pico W operates at 3.3V logic.VCC(+)of U3 and U4 to a +5V power source. This will also be the assumed power requirement for the servomotors and the ultrasonic sensor.GNDpins of U1 to the common ground.GNDpins of U3 and U4 to the common ground.U2:VS) should be connected to a higher voltage power source, assuming 12V for motor operation.U2:GNDandU2:VSSto the common ground.VSSis the logic supply voltage for the L298N and should be connected to +5V if operating logic level motors.- We'll assume two generic DC motors for the car's wheels, represented as Motors 1 and 2.
- Connect
- Connect
- Connect
- Connect
Step 3: Control ConnectionsU2:OUT1to Motor 1 positive terminal.U2:OUT2to Motor 1 negative terminal.U2:OUT3to Motor 2 positive terminal.U2:OUT4to Motor 2 negative terminal.- For servomotors, GPIO pins from U1 can be used. The specific GPIO to use is flexible, but let's choose three arbitrary GPIOs for the purpose of example:
- Connect
- Connect
- Connect
- For the ultrasonic sensor, which typically has
- Connect
- Connect
Step 4: Encoder Connections for Feedback (Optional)U1:GPIO18to Servomotor 1 signal line (steering).U1:GPIO19to Servomotor 2 signal line (throttle control or speed).U1:GPIO20to 90-degree Servomotor signal line (auxiliary functions).TRIGandECHOpins, you can use two more GPIO pins:U1:GPIO21to Ultrasonic SensorTRIG.U1:GPIO22to Ultrasonic SensorECHO.- Connect
- Similarly, connect
Step 5: L298N Control PinsU3:CLKandU3:DTto two GPIOs on U1 for encoder feedback.U4:CLKandU4:DTto two other available GPIOs on U1.- For L298N (
- Connect
- Connect
Note:U2) input and enable pins, connect them to control the speed and direction of the DC motors:U1:GPIO2toU2:IN1,U1:GPIO3toU2:IN2,U1:GPIO4toU2:ENAfor Motor 1 control.U1:GPIO5toU2:IN3,U1:GPIO6toU2:IN4,U1:GPIO7toU2:ENBfor Motor 2 control.cg75
cg75
copilot