Project #12: Robotics – 4WD Robot Car – Mk34

——

#DonLucElectronics #DonLuc #L298N #MotorDC #ESP32CAM #ESP32 #IoT #Project #Fritzing #Programming #Electronics #Microcontrollers #Consultant

——

4WD Robot Car

——

4WD Robot Car

——

4WD Robot Car

——

4WD Robot Car

4WD Robot Car uses SparkFun RedBoard Qwiic as the main control board and is combined with L298N motor drive board, forming a powerful intelligent mobile device. As for L298N motor drive board, since it provides stable power output and flexible steering control, it is responsible for driving wheels.

DL2602Mk08

1 x SparkFun RedBoard Qwiic
1 x L298N DC Motor Driver Module
4 x Motor DC
1 x Power Switch
1 x 18650 Battery Holder (11 Volts)
3 x 18650 Battery
1 x Micro USB Cable

DL2602Mk08p

DL2602Mk08p.ino

/****** Don Luc Electronics © ******
Software Version Information
Project #12: Robotics - 4WD Robot Car - Mk34
12-34
DL2602Mk08p.ino
DL2602Mk08
1 x SparkFun RedBoard Qwiic
1 x L298N DC Motor Driver Module
4 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 = 2;
int motor1pin2 = 3;

// Motor DC 2
int motor2pin1 = 4;
int motor2pin2 = 5;

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

void loop() {

  // is Motor
  isMotor();

}

getMotor.ino

// Motor
// is Motor
void isMotor(){

  // Moving Forward
  digitalWrite(motor1pin1, HIGH);
  digitalWrite(motor1pin2, LOW);
  digitalWrite(motor2pin1, HIGH); 
  digitalWrite(motor2pin2, LOW);
  delay(3000);

  // Stop
  digitalWrite(motor1pin1, LOW);
  digitalWrite(motor1pin2, LOW);
  digitalWrite(motor2pin1, LOW); 
  digitalWrite(motor2pin2, LOW);
  delay(3000);

  // Moving Backwards
  digitalWrite(motor1pin1, LOW);
  digitalWrite(motor1pin2, HIGH);
  digitalWrite(motor2pin1, LOW); 
  digitalWrite(motor2pin2, HIGH);
  delay(3000);

  // Stop
  digitalWrite(motor1pin1, LOW);
  digitalWrite(motor1pin2, LOW);
  digitalWrite(motor2pin1, LOW); 
  digitalWrite(motor2pin2, LOW);
  delay(3000);

  // Moving Right
  digitalWrite(motor1pin1, LOW);
  digitalWrite(motor1pin2, HIGH);
  digitalWrite(motor2pin1, LOW); 
  digitalWrite(motor2pin2, LOW);
  delay(3000);

  // Stop
  digitalWrite(motor1pin1, LOW);
  digitalWrite(motor1pin2, LOW);
  digitalWrite(motor2pin1, LOW); 
  digitalWrite(motor2pin2, LOW);
  delay(3000);

  // Moving Left
  digitalWrite(motor1pin1, LOW);
  digitalWrite(motor1pin2, LOW);
  digitalWrite(motor2pin1, LOW); 
  digitalWrite(motor2pin2, HIGH);
  delay(3000);

  // Stop
  digitalWrite(motor1pin1, LOW);
  digitalWrite(motor1pin2, LOW);
  digitalWrite(motor2pin1, LOW); 
  digitalWrite(motor2pin2, LOW);
  delay(3000);

}

setup.ino

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

  // Motor DC 2
  pinMode(motor2pin1, OUTPUT);
  pinMode(motor2pin2, OUTPUT);

}

——

People can contact us: https://www.donluc.com/?page_id=1927

Consultant, R&D, Electronics, IoT, Teacher and Instructor

  • Programming Language
  • Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi, Arm, Silicon Labs, Espressif, Etc…)
  • IoT
  • Wireless (Radio Frequency, Bluetooth, WiFi, Etc…)
  • Robotics
  • Automation
  • Camera and Video Capture Receiver Stationary, Wheel/Tank , Underwater and UAV Vehicle
  • Unmanned Vehicles Terrestrial, Marine and UAV
  • Machine Learning
  • Artificial Intelligence (AI)
  • RTOS
  • Sensors, eHealth Sensors, Biosensor, and Biometric
  • Research & Development (R & D)
  • Consulting

Follow Us

Luc Paquin – Curriculum Vitae – 2026
https://www.donluc.com/luc/LucPaquinCVEng2026Mk01.pdf
https://www.donluc.com/luc/

Web: https://www.donluc.com/
Web: https://www.jlpconsultants.com/
Facebook: https://www.facebook.com/neosteam.labs.9/
YouTube: https://www.youtube.com/@thesass2063
DFRobot: https://learn.dfrobot.com/user-10186.html
Elecrow: https://www.elecrow.com/share/sharepj/center/no/760816d385ebb1edc0732fd873bfbf13
TikTok: https://www.tiktok.com/@luc.paquin8
Hackster: https://www.hackster.io/luc-paquin
LinkedIn: https://www.linkedin.com/in/jlucpaquin/

Don Luc

Leave a Comment