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
Inspect
Effective Silver Flux Capacitor
Controls
Properties
Availability & Pricing
| Distributor | Qty 1 | |
|---|---|---|
| Digi-Key | $11.76 | |
| LCSC | $1.07–$3.30 | |
| Mouser | $11.20 | |
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.
cristian2301
copilot
-
Motor 1:
- Para controlar la dirección de Motor 1 (M1), conectamos los pines GPIO que actuarán como señales de entrada al L298N.
- Conecta RPi1:GPIO23 (pin 16) a U1:IN1 (pin 3).
- Conecta RPi1:GPIO24 (pin 18) a U1:IN2 (pin 4).
-
Motor 2:
- De manera similar, para controlar la dirección de Motor 2 (M2), utilizamos otro par de pines GPIO.
- Conecta RPi1:GPIO27 (pin 13) a U1:IN3 (pin 5).
- Conecta RPi1:GPIO22 (pin 15) a U1:IN4 (pin 6).
Conexiones de Habilitación para Control de Velocidad:- Conecta RPi1:GPIO18/PWM0 (pin 12) a U1:ENA (pin 1) para el control de velocidad del Motor 1.
- Conecta RPi1:GPIO13/PWM1 (pin 33) a U1:ENB (pin 2) para el control de velocidad del Motor 2.
Conexión a Tierra:- Asegúrate de conectar todos los GND juntos. Esto incluye el GND del Raspberry Pi, del L298N y de la fuente de alimentación de los motores (si es diferente a la del Raspberry Pi).
- Conecta RPi1:GND (pin 6, por ejemplo) a U1:GND (pin 7).
Suministro de Energía:cristian2301
copilot
- The Raspberry Pi's GPIO pins will control the direction of the motors connected to the L298N.
- We are using one motor per channel on the L298N.
- PWM (Pulse Width Modulation) for controlling motor speed will be set on the ENA and ENB pins of the L298N. The Raspberry Pi has hardware PWM on certain GPIO pins which we will utilize.
- You have enabled GPIO and PWM functionality in your Raspberry Pi setup appropriately.
Required Connections: Power Supply- First, ensure the Raspberry Pi and L298N are powered adequately. Connect the Raspberry Pi 5V pin to L298N VS pin for motor supply voltage.
- Do not forget to connect the grounds together. Connect RPi1:GND to U1:GND.
Motor Control Connections- Motor A (M1) Control: GPIO pins control the IN1 and IN2 pins of the L298N to control the direction of Motor A.
- Connect RPi1:GPIO17 to U1:IN1.
- Connect RPi1:GPIO18 (PWM0) to U1:IN2.
- Connect RPi1:GPIO12 (PWM0) to U1:ENA for speed control using PWM.
- Motor B (M2) Control: Similar to Motor A, but using different GPIO pins for IN3 and IN4.
- Connect RPi1:GPIO27 to U1:IN3.
- Connect RPi1:GPIO22 to U1:IN4.
- Connect RPi1:GPIO13 (PWM1) to U1:ENB for speed control using PWM.
Summary of Connections: