Luc Paquin
Published © CC BY-ND

Project #12: Robotics - L298N DC Motor Driver - Mk33

Project #12: Robotics - L298N DC Motor Driver - Mk33

BeginnerFull instructions provided1 hour25
Project #12: Robotics - L298N DC Motor Driver - Mk33

Things used in this project

Hardware components

ESP32-CAM
×1
ESP32-CAM-MB Adapter
×1
L298N DC Motor Driver Module
×1
Motor DC
×1
Power Switch
×1
18650 Battery Holder (11 Volts)
×1
18650 Battery
×3
DFRobot Micro USB Cable
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Fritzing

Code

DL2602Mk06p.ino

Arduino
/****** Don Luc Electronics © ******
Software Version Information
Project #12: Robotics - L298N DC Motor Driver - Mk33
12-33
DL2602Mk06p.ino
DL2602Mk06
1 x ESP32-CAM
1 x ESP32-CAM-MB Adapter
1 x L298N DC Motor Driver Module
1 x Motor DC
1 x Power Switch
1 x 18650 Battery Holder (11 Volts)
3 x 18650 Battery
1 x Micro USB Cable
*/

// Include the Library Code

// Motor DC 1 
int motor1pin1 = 14;

// Software Version Information
String sver = "12-33";

void loop() {
  
  // Motor DC 1 
  digitalWrite(motor1pin1,   HIGH);

  // Delay 3 Seconds
  delay(3000);

  // Motor DC 1 
  digitalWrite(motor1pin1,   LOW);

  // Delay 3 Seconds
  delay(3000);

}

setup.ino

Arduino
// Setup
void setup()
{
 
  // Motor DC 1
  pinMode(motor1pin1, OUTPUT);

}

Credits

Luc Paquin
70 projects • 5 followers
Teacher, Instructor, E-Mentor, R&D and Consulting -Programming Language -Microcontrollers -IoT -Robotics -Machine Learning -AI -Sensors

Comments