Arduino UNO WiFi-Powered Robotic System with Dual Motor Control and Servo Integration
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino UNO R4 WiFi microcontroller, two hobby motors, an L298N DC motor driver, a 12V battery, and two Wokwi-compatible servos. The circuit is designed to control the motors and servos using the Arduino microcontroller.
Component List
Arduino UNO R4 WiFi
- Description: A microcontroller board based on the ATmega328P, featuring built-in WiFi capabilities.
- Pins: OFF, GND, VRTC, IIC0_SCL, IIC0_SDA, 3V3, GPIO 41, GPIO 0, GPIO 42, GPIO 43, GPIO 44, BOOT, IOREF, RESET, 5V, VIN, A0, A1, A2, A3, A4, A5, RSPCKA, CIPO, COPI, D0/RX, D1/TX, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, AREF, SDA, SCL
Motor amarillo motorreductor hobby
- Description: A small DC motor with a gearbox, commonly used in hobby projects.
- Pins: vcc, GND
L298N DC motor driver
- Description: A dual H-bridge motor driver that allows control of the speed and direction of two DC motors.
- Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
Battery 12V
- Description: A 12V battery used to power the motor driver and motors.
- Pins: +, -
Servo (Wokwi Compatible)
- Description: A servo motor compatible with Wokwi simulation, used for precise control of angular position.
- Pins: GND, V+, PWM
Wiring Details
Arduino UNO R4 WiFi
- 5V: Connected to V+ of both Servo motors.
- GND: Connected to GND of both Servo motors, GND of the L298N DC motor driver, and - of the 12V battery.
- VIN: Connected to 5V of the L298N DC motor driver.
- D9: Connected to PWM of the first Servo motor.
- D10: Connected to PWM of the second Servo motor.
Motor amarillo motorreductor hobby
- vcc: Connected to OUT1 of the L298N DC motor driver.
- GND: Connected to OUT2 of the L298N DC motor driver.
Motor amarillo motorreductor hobby
- vcc: Connected to OUT4 of the L298N DC motor driver.
- GND: Connected to OUT3 of the L298N DC motor driver.
L298N DC motor driver
- GND: Connected to GND of the Arduino UNO R4 WiFi and - of the 12V battery.
- 5V: Connected to VIN of the Arduino UNO R4 WiFi.
- OUT1: Connected to vcc of the first Motor.
- OUT2: Connected to GND of the first Motor.
- OUT3: Connected to GND of the second Motor.
- OUT4: Connected to vcc of the second Motor.
- 12V: Connected to + of the 12V battery.
Battery 12V
- +: Connected to 12V of the L298N DC motor driver.
- -: Connected to GND of the Arduino UNO R4 WiFi and GND of the L298N DC motor driver.
Servo (Wokwi Compatible)
- V+: Connected to 5V of the Arduino UNO R4 WiFi.
- GND: Connected to GND of the Arduino UNO R4 WiFi.
- PWM: Connected to D9 of the Arduino UNO R4 WiFi.
Servo (Wokwi Compatible)
- V+: Connected to 5V of the Arduino UNO R4 WiFi.
- GND: Connected to GND of the Arduino UNO R4 WiFi.
- PWM: Connected to D10 of the Arduino UNO R4 WiFi.
Documented Code
Arduino UNO R4 WiFi Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Documentation
// This file is intended for additional documentation purposes.
This documentation provides a comprehensive overview of the circuit, including a summary, component list, wiring details, and the code used in the Arduino UNO R4 WiFi microcontroller.