L298N Motor Driver: Control 2 DC Motors with Arduino

Опубликовано: 23 Июль 2026
на канале: Rachel De Barros
12,407
755

In this beginner-friendly Arduino tutorial, you'll learn how to use the L298N Motor Driver to control two DC motors with an Arduino. The L298N is one of the most popular motor driver modules for robot cars, mobile robots, animatronics, props, and DIY electronics projects.

We'll cover:
• What the L298N motor driver does
• Pin-by-pin wiring explained
• How to connect two DC motors to Arduino
• Move forward, reverse, turn left and turn right
• Power supply tips to avoid damaging your Arduino
• Beginner-friendly Arduino code examples

If you've ever wanted to build an Arduino robot car, motorized prop, or autonomous vehicle, this is the perfect place to start.

Because sooner or later, every maker discovers that blinking LEDs are just the beginning... and the real magic starts when your creations begin to move.

----------------------------------------------------
🔗 Full Tutorial, Wiring Diagrams & Code: https://racheldebarros.com/arduino-pr...

----------------------------------------------------
🤖 WANT MORE Arduino projects with wiring diagrams and code? NEED GUIDANCE with your project? ▶︎ JOIN my Community
▶︎▶︎ https://racheldebarros.com/join
• Live Workshops (via Zoom)
• Arduino Project Build & Code-alongs
• Small Group Office Hours
• Personalized Project Support

----------------------------------------------------
🛒 BUILD Your Own Robot Car Arduino Project

Arduino Uno: https://amzn.to/4eaaIAt
L298N Motor Driver: https://amzn.to/4otKyw2
3-6V DC Motors & Wheel Kit: https://amzn.to/3Qge4c0
2x 18650 Rechargeable Batteries: https://amzn.to/3SGxirR
2-Slot 18650 Battery Holder: https://amzn.to/49VDGl1
Jumper Wires: https://amzn.to/4gpTMXU
Mini Breadboard: https://amzn.to/3QqZjD0

----------------------------------------------------
🎬 VIDEO CHAPTERS: Control 2 DC Motors with Arduino

0:00 Welcome
0:25 Why you need a motor driver
1:25 L298N pin-by-pin breakdown
1:45 How to wire DC motors to the L298N
3:02 How many DC motors can the L298N control?
3:56 How to power the DC motors and Arduino
7:04 How to wire the L298N to an Arduino
10:50 How to power your robot car for prototyping
11:56 Code Example 1: Spin both DC motors forward
19:33 How to fix wrong motor direction (wiring & Arduino code)?
21:18 Finding your motors' PWM (speed) starting threshold
23:00 Accounting for L298N voltage drop
26:01 Code Example 2: Spin both DC motors in reverse
26:38 Code Example 3: Accelerate & decelerate the DC motors
33:22 Code Example 4: Turn robot car to the right
34:55 Code Example 5: Turn robot car to the left
35:42 How to power your robot car with batteries
40:08 Join my Mentorship Community!

----------------------------------------------------
💬 Have any questions or want to share your own experiences, tips and advice about how to use an L298N motor driver to control DC motors with Arduino? Drop a comment below – I love hearing from you!

🔔 If you find this video helpful, please hit that like button 👍 and consider subscribing to my channel for more Arduino/props/robot tutorials, tips, and tricks. Your support helps me create more content like this!

----------------------------------------------------
Some links here (Amazon) might earn me enough nuts and bolts (aka commission) to keep the LEDs blinking and servos turning. No extra cost to you, just a lil' fuel for my caffeine-powered nights of DIY-ing and passing on what I learn to all of you. I only feature stuff that's survived my "Did-it-Explode?" test. Build on, and thanks for the recharge!


#arduinotutorial #arduinorobot #arduino #arduinoproject #robotcar #arduinorobot #dcmotor #l298n #arduinocode