- All products
- Development Boards
- Romeo V2- an Arduino Robot Board (Arduino Leonardo) with Motor Driver - DRF0225
- Development Boards
Features
- ATmega32U4 Microcontroller: Based on the 8-bit AVR microcontroller used in the Arduino Leonardo, operating at 16 MHz.
- Integrated Dual DC Motor Driver: Controls two DC motors without requiring an external motor driver board.
- Stepper Motor Support: Provides an onboard motor-control interface for compatible stepper motor configurations.
- XBee-Compatible Socket: Supports compatible XBee-form-factor wireless modules, subject to module voltage and interface compatibility.
- Wireless Module Connections: Includes dedicated connections for compatible APC220 RF and DFRobot Bluetooth modules.
- Arduino Compatibility: Programmable through the Arduino IDE using the DFRobot Leonardo board definition.
- Native USB: The ATmega32U4 handles USB communication directly, supporting programming, serial communication, and USB HID applications.
- Analog Sensor Connectors: Three-pin sensor interfaces use orange for signal, red for VCC, and black for GND.
- Servo Power Terminal: Separate external power input for compatible servos.
- Power Control Switch: Controls the connection between the external motor supply and the board's system power regulator.
- Additional I/O Connections: Provides extended digital connections identified as D14–D16.
- Micro-USB Connector: Used for programming and USB communication.
- Five Test Buttons: Onboard buttons for basic testing and input applications.
Principle of Operation
The Romeo V2 combines an ATmega32U4 microcontroller with integrated motor-control circuitry and expansion interfaces. The microcontroller executes the Arduino sketch and manages sensors, communication, and motor commands.

- Microcontroller: The ATmega32U4 processes the application program, reads sensor inputs, and generates the control signals required by connected motors and peripherals.
- DC Motor Driver: The onboard dual-channel driver controls the direction and speed of two DC motors. Direction is controlled through digital signals, while motor speed is adjusted using PWM signals.
- Stepper Motor Control: The board provides motor-control connections for compatible stepper motor applications. The required wiring and control method depend on the motor type and the board's driver configuration.
- Wireless Communication: Compatible wireless modules can be installed in the XBee-form-factor socket or dedicated module connections. The microcontroller communicates with supported modules through the available serial or other interface connections.
- USB Communication: The ATmega32U4 provides native USB functionality, allowing the board to be programmed and communicate with a computer without a separate USB-to-serial converter.
- Sensor Interfaces: Three-pin analog and digital sensor connectors simplify connections to compatible sensors and modules.
Pinout

Digital and Analog Pins
- Digital I/O pins are available through the board's Arduino-compatible headers.
- Analog inputs: A0–A5 and A6–A11.
- A6–A11 are mapped to digital pins D4, D6, D8, D9, D10, and D12 respectively.
- Analog inputs provide 10-bit resolution, with readings from 0 to 1023.
- Additional digital I/O connections are identified as D14, D15, and D16.
PWM Pins
- PWM-capable pins: D3, D5, D6, D9, D10, D11, and D13.
- 8-bit PWM output is available using the Arduino
analogWrite()function. - D5 and D6 are used by the onboard motor driver in the standard PWM motor-control configuration.
UART Serial Communication
- D0 (RX) and D1 (TX) provide the hardware UART connection.
- Use
Serial1for communication through the hardware RX/TX pins. - Use
Serialfor USB serial communication with a computer. - The ATmega32U4's native USB interface allows USB communication without a separate USB-to-serial converter.
External Interrupts
- External interrupt functionality is available on selected pins, including D2 and D3.
- Interrupts can be used for encoder signals, event detection, and other time-sensitive inputs.
SPI Interface
- SPI signals are available through the ICSP connector and the board's SPI connections.
- The additional connections are identified as D14, D15, and D16 in the supplied board documentation.
- Check the pinout diagram before connecting SPI peripherals, particularly when using the board's other onboard functions.
I2C / TWI Interface
- SDA and SCL provide the I2C communication interface.
- The Arduino
Wirelibrary can be used to communicate with compatible I2C sensors and peripherals. - The board provides additional I2C/TWI connector sets for convenient sensor connections.
Analog Sensor Connectors
- Orange: Signal
- Red: VCC
- Black: GND
Check the operating voltage of each sensor before connecting it. Do not assume that every sensor connected to these headers is compatible with every available supply voltage.
Servo Power Terminal
- Provides a separate external power input for servos.
- The specified input range is approximately 5–12V.
- DFRobot recommends using 5V when powering servos alongside sensors connected to the board's 5V sensor interfaces.
- The servo power terminal does not supply the board's main system operating voltage.
- When using a servo supply above 5V, ensure that the connected sensors and peripherals are not exposed to the higher voltage.
Motor Power Terminal and Power Switch
- The motor power terminal supplies the onboard motor driver and, when enabled by the power switch, the system power regulator.
- The supplied documentation specifies a 5–23V input range for this power connection.
- ON: Connects the external motor supply to the motor driver and system power regulator.
- OFF: Isolates the system power supply from the motor power input. The board must then receive system power separately through USB or a suitable regulated supply connection.
Motor Driver Pin Allocation

The Romeo V2 supports two motor-control configurations. The selected configuration determines how pins D4–D7 are assigned.
PWM Mode
| Pin | Function |
|---|---|
| D4 | Motor 1 direction control |
| D5 | Motor 1 PWM speed control |
| D6 | Motor 2 PWM speed control |
| D7 | Motor 2 direction control |
PLL Mode
| Pin | Function |
|---|---|
| D4 | Motor 1 enable control |
| D5 | Motor 1 direction control |
| D6 | Motor 2 direction control |
| D7 | Motor 2 enable control |
Use the appropriate motor-control mode and pin assignment for the board configuration. Pins D4–D7 are occupied by the onboard motor driver when it is being used, so they should not be treated as freely available GPIO pins at the same time.
Applications
- Mobile Robots: Control two DC motors for small robotic vehicles and platforms.
- Wireless Robots: Add compatible XBee, Bluetooth, or RF modules for wireless control.
- IoT Robotics: Develop connected robotic systems using compatible wireless communication modules.
- Motor-Control Projects: Control DC motors and compatible stepper motor configurations.
- Sensor-Based Robotics: Connect analog and digital sensors through the onboard sensor interfaces.
- Educational Robotics: Build and program Arduino-compatible robot projects.
- USB HID Projects: Develop USB keyboard, mouse, and other HID applications using the ATmega32U4.
Getting Started
- Install Arduino IDE: Download and install the Arduino IDE.
- Add the DFRobot Board Package: Open File > Preferences and add the following URL to Additional Boards Manager URLs:
https://download.dfrobot.top/boards/package_DFRobot_index.json - Install the Board Package: Open Tools > Board > Boards Manager, search for DFRobot AVR Boards, and install the package.
- Connect the Board: Connect the Romeo V2 to your computer using a Micro-USB data cable.
- Select the Board: Open Tools > Board and select DFRobot Leonardo from the DFRobot AVR Boards package.
- Select the Serial Port: Open Tools > Port and select the COM port assigned to the Romeo V2.
- Upload a Sketch: Open or write an Arduino sketch, verify it, and click Upload.
The DFRobot board package is required when using the DFRobot-specific board definition. The exact menu labels may differ between Arduino IDE versions.
Wiring and Motor Control Example
The following example uses the onboard dual DC motor driver in PWM mode. Connect two compatible DC motors to the board's motor output terminals and connect a suitable external motor power supply to the motor power terminal. Set the power switch appropriately before operation.

Ensure that the motor supply voltage is within the board's specified range and that the motors do not exceed the driver's current rating. The motor supply and logic circuitry must share a suitable common ground.
Code
This example controls two DC motors through the Romeo V2 motor driver using commands sent from the Arduino IDE Serial Monitor. It uses the PWM motor-control pin allocation shown above.
// Romeo V2 - Dual DC Motor Control
// PWM motor-control mode
const int E1 = 5; // Motor 1 speed
const int E2 = 6; // Motor 2 speed
const int M1 = 4; // Motor 1 direction
const int M2 = 7; // Motor 2 direction
void stopMotors() {
analogWrite(E1, 0);
analogWrite(E2, 0);
}
void moveForward(int speed1, int speed2) {
digitalWrite(M1, HIGH);
digitalWrite(M2, HIGH);
analogWrite(E1, speed1);
analogWrite(E2, speed2);
}
void moveBackward(int speed1, int speed2) {
digitalWrite(M1, LOW);
digitalWrite(M2, LOW);
analogWrite(E1, speed1);
analogWrite(E2, speed2);
}
void turnLeft(int speed) {
digitalWrite(M1, LOW);
digitalWrite(M2, HIGH);
analogWrite(E1, speed);
analogWrite(E2, speed);
}
void turnRight(int speed) {
digitalWrite(M1, HIGH);
digitalWrite(M2, LOW);
analogWrite(E1, speed);
analogWrite(E2, speed);
}
void setup() {
pinMode(E1, OUTPUT);
pinMode(E2, OUTPUT);
pinMode(M1, OUTPUT);
pinMode(M2, OUTPUT);
stopMotors();
Serial.begin(19200);
Serial.println("Romeo V2 motor control ready");
Serial.println("w: Forward, s: Backward");
Serial.println("a: Left, d: Right, x: Stop");
}
void loop() {
if (Serial.available() > 0) {
char command = Serial.read();
switch (command) {
case 'w':
moveForward(255, 255);
break;
case 's':
moveBackward(255, 255);
break;
case 'a':
turnLeft(100);
break;
case 'd':
turnRight(100);
break;
case 'x':
stopMotors();
break;
default:
break;
}
}
}
Open the Serial Monitor and set the baud rate to 19200. Select the appropriate line-ending option or send individual characters. Use the following commands:
- w: Move forward.
- s: Move backward.
- a: Turn left.
- d: Turn right.
- x: Stop both motors.
The example assumes the board is configured for PWM motor-control mode. Motor direction may differ depending on motor wiring. If a motor rotates in the opposite direction, reverse its motor connections or adjust the direction logic in the sketch.
Specifications
- Product: Romeo V2 All-in-One Robot Control Board
- DFRobot SKU: DFR0225
- Microcontroller: ATmega32U4
- Architecture: 8-bit AVR
- Clock Speed: 16 MHz
- Bootloader: Arduino Leonardo compatible
- Operating Logic Voltage: 5V
- Digital I/O: 20
- Analog Inputs: 12
- ADC Resolution: 10-bit
- PWM Outputs: 7
- PWM Resolution: 8-bit
- USB Interface: Native USB through ATmega32U4
- USB Connector: Micro-USB
- Motor Driver: Dual DC motor driver
- Motor Driver Output Current: Up to 2A, as specified by the manufacturer; check operating and thermal conditions before selecting motors
- Stepper Motor Support: Supported through the onboard motor-control circuitry
- Motor Power Input: 5–23V DC according to the board documentation
- Servo Power Input: Approximately 5–12V DC through the separate servo power terminal
- Wireless Expansion: XBee-compatible socket
- Additional Wireless Connections: Compatible APC220 RF and DFRobot Bluetooth modules
- Sensor Connections: Three-pin analog/digital sensor interfaces
- Additional Interfaces: UART, SPI, and I2C/TWI
- Onboard Controls: Five test buttons and power switch
- Dimensions: 89 × 84 × 14 mm
Note: The 2A motor-driver rating should not be interpreted as a guaranteed continuous current under all operating conditions. Actual usable current depends on the driver, cooling, supply voltage, and motor load. The board's motor supply and servo supply are separate power connections and should be wired according to the manufacturer's schematic.
Comparison: Romeo V1 vs. Romeo V2
The main difference between Romeo V1 and Romeo V2 is the microcontroller architecture. Romeo V2 uses the ATmega32U4, as found on the Arduino Leonardo, instead of the microcontroller used by the earlier version.
- ATmega32U4: Provides native USB functionality and supports USB HID applications.
- Serial Communication: Provides USB serial communication alongside the hardware UART on pins D0 and D1, making it suitable for projects using compatible serial wireless modules.
- Integrated Motor Driver: Both the motor-control circuitry and microcontroller are on the same board, reducing external wiring.
- Robotics Integration: Combines motor control, sensor connections, and wireless module expansion on one board.
Romeo V2 is useful for robotics projects that require an integrated motor driver and wireless expansion without assembling a separate Leonardo board and motor driver module.
Resources
- Arduino IDE Download
- DFRobot Microcontroller Selection Guide
- DFRobot Romeo V2 Wiki
- Romeo V2 Schematic
- Tips for Changing Sensor Cable Pin Mapping
- Romeo Stepper Motor Library
Features
- ATmega32U4 Microcontroller: Based on the 8-bit AVR microcontroller used in the Arduino Leonardo, operating at 16 MHz.
- Integrated Dual DC Motor Driver: Controls two DC motors without requiring an external motor driver board.
- Stepper Motor Support: Provides an onboard motor-control interface for compatible stepper motor configurations.
- XBee-Compatible Socket: Supports compatible XBee-form-factor wireless modules, subject to module voltage and interface compatibility.
- Wireless Module Connections: Includes dedicated connections for compatible APC220 RF and DFRobot Bluetooth modules.
- Arduino Compatibility: Programmable through the Arduino IDE using the DFRobot Leonardo board definition.
- Native USB: The ATmega32U4 handles USB communication directly, supporting programming, serial communication, and USB HID applications.
- Analog Sensor Connectors: Three-pin sensor interfaces use orange for signal, red for VCC, and black for GND.
- Servo Power Terminal: Separate external power input for compatible servos.
- Power Control Switch: Controls the connection between the external motor supply and the board's system power regulator.
- Additional I/O Connections: Provides extended digital connections identified as D14–D16.
- Micro-USB Connector: Used for programming and USB communication.
- Five Test Buttons: Onboard buttons for basic testing and input applications.
Principle of Operation
The Romeo V2 combines an ATmega32U4 microcontroller with integrated motor-control circuitry and expansion interfaces. The microcontroller executes the Arduino sketch and manages sensors, communication, and motor commands.

- Microcontroller: The ATmega32U4 processes the application program, reads sensor inputs, and generates the control signals required by connected motors and peripherals.
- DC Motor Driver: The onboard dual-channel driver controls the direction and speed of two DC motors. Direction is controlled through digital signals, while motor speed is adjusted using PWM signals.
- Stepper Motor Control: The board provides motor-control connections for compatible stepper motor applications. The required wiring and control method depend on the motor type and the board's driver configuration.
- Wireless Communication: Compatible wireless modules can be installed in the XBee-form-factor socket or dedicated module connections. The microcontroller communicates with supported modules through the available serial or other interface connections.
- USB Communication: The ATmega32U4 provides native USB functionality, allowing the board to be programmed and communicate with a computer without a separate USB-to-serial converter.
- Sensor Interfaces: Three-pin analog and digital sensor connectors simplify connections to compatible sensors and modules.
Pinout

Digital and Analog Pins
- Digital I/O pins are available through the board's Arduino-compatible headers.
- Analog inputs: A0–A5 and A6–A11.
- A6–A11 are mapped to digital pins D4, D6, D8, D9, D10, and D12 respectively.
- Analog inputs provide 10-bit resolution, with readings from 0 to 1023.
- Additional digital I/O connections are identified as D14, D15, and D16.
PWM Pins
- PWM-capable pins: D3, D5, D6, D9, D10, D11, and D13.
- 8-bit PWM output is available using the Arduino
analogWrite()function. - D5 and D6 are used by the onboard motor driver in the standard PWM motor-control configuration.
UART Serial Communication
- D0 (RX) and D1 (TX) provide the hardware UART connection.
- Use
Serial1for communication through the hardware RX/TX pins. - Use
Serialfor USB serial communication with a computer. - The ATmega32U4's native USB interface allows USB communication without a separate USB-to-serial converter.
External Interrupts
- External interrupt functionality is available on selected pins, including D2 and D3.
- Interrupts can be used for encoder signals, event detection, and other time-sensitive inputs.
SPI Interface
- SPI signals are available through the ICSP connector and the board's SPI connections.
- The additional connections are identified as D14, D15, and D16 in the supplied board documentation.
- Check the pinout diagram before connecting SPI peripherals, particularly when using the board's other onboard functions.
I2C / TWI Interface
- SDA and SCL provide the I2C communication interface.
- The Arduino
Wirelibrary can be used to communicate with compatible I2C sensors and peripherals. - The board provides additional I2C/TWI connector sets for convenient sensor connections.
Analog Sensor Connectors
- Orange: Signal
- Red: VCC
- Black: GND
Check the operating voltage of each sensor before connecting it. Do not assume that every sensor connected to these headers is compatible with every available supply voltage.
Servo Power Terminal
- Provides a separate external power input for servos.
- The specified input range is approximately 5–12V.
- DFRobot recommends using 5V when powering servos alongside sensors connected to the board's 5V sensor interfaces.
- The servo power terminal does not supply the board's main system operating voltage.
- When using a servo supply above 5V, ensure that the connected sensors and peripherals are not exposed to the higher voltage.
Motor Power Terminal and Power Switch
- The motor power terminal supplies the onboard motor driver and, when enabled by the power switch, the system power regulator.
- The supplied documentation specifies a 5–23V input range for this power connection.
- ON: Connects the external motor supply to the motor driver and system power regulator.
- OFF: Isolates the system power supply from the motor power input. The board must then receive system power separately through USB or a suitable regulated supply connection.
Motor Driver Pin Allocation

The Romeo V2 supports two motor-control configurations. The selected configuration determines how pins D4–D7 are assigned.
PWM Mode
| Pin | Function |
|---|---|
| D4 | Motor 1 direction control |
| D5 | Motor 1 PWM speed control |
| D6 | Motor 2 PWM speed control |
| D7 | Motor 2 direction control |
PLL Mode
| Pin | Function |
|---|---|
| D4 | Motor 1 enable control |
| D5 | Motor 1 direction control |
| D6 | Motor 2 direction control |
| D7 | Motor 2 enable control |
Use the appropriate motor-control mode and pin assignment for the board configuration. Pins D4–D7 are occupied by the onboard motor driver when it is being used, so they should not be treated as freely available GPIO pins at the same time.
Applications
- Mobile Robots: Control two DC motors for small robotic vehicles and platforms.
- Wireless Robots: Add compatible XBee, Bluetooth, or RF modules for wireless control.
- IoT Robotics: Develop connected robotic systems using compatible wireless communication modules.
- Motor-Control Projects: Control DC motors and compatible stepper motor configurations.
- Sensor-Based Robotics: Connect analog and digital sensors through the onboard sensor interfaces.
- Educational Robotics: Build and program Arduino-compatible robot projects.
- USB HID Projects: Develop USB keyboard, mouse, and other HID applications using the ATmega32U4.
Getting Started
- Install Arduino IDE: Download and install the Arduino IDE.
- Add the DFRobot Board Package: Open File > Preferences and add the following URL to Additional Boards Manager URLs:
https://download.dfrobot.top/boards/package_DFRobot_index.json - Install the Board Package: Open Tools > Board > Boards Manager, search for DFRobot AVR Boards, and install the package.
- Connect the Board: Connect the Romeo V2 to your computer using a Micro-USB data cable.
- Select the Board: Open Tools > Board and select DFRobot Leonardo from the DFRobot AVR Boards package.
- Select the Serial Port: Open Tools > Port and select the COM port assigned to the Romeo V2.
- Upload a Sketch: Open or write an Arduino sketch, verify it, and click Upload.
The DFRobot board package is required when using the DFRobot-specific board definition. The exact menu labels may differ between Arduino IDE versions.
Wiring and Motor Control Example
The following example uses the onboard dual DC motor driver in PWM mode. Connect two compatible DC motors to the board's motor output terminals and connect a suitable external motor power supply to the motor power terminal. Set the power switch appropriately before operation.

Ensure that the motor supply voltage is within the board's specified range and that the motors do not exceed the driver's current rating. The motor supply and logic circuitry must share a suitable common ground.
Code
This example controls two DC motors through the Romeo V2 motor driver using commands sent from the Arduino IDE Serial Monitor. It uses the PWM motor-control pin allocation shown above.
// Romeo V2 - Dual DC Motor Control
// PWM motor-control mode
const int E1 = 5; // Motor 1 speed
const int E2 = 6; // Motor 2 speed
const int M1 = 4; // Motor 1 direction
const int M2 = 7; // Motor 2 direction
void stopMotors() {
analogWrite(E1, 0);
analogWrite(E2, 0);
}
void moveForward(int speed1, int speed2) {
digitalWrite(M1, HIGH);
digitalWrite(M2, HIGH);
analogWrite(E1, speed1);
analogWrite(E2, speed2);
}
void moveBackward(int speed1, int speed2) {
digitalWrite(M1, LOW);
digitalWrite(M2, LOW);
analogWrite(E1, speed1);
analogWrite(E2, speed2);
}
void turnLeft(int speed) {
digitalWrite(M1, LOW);
digitalWrite(M2, HIGH);
analogWrite(E1, speed);
analogWrite(E2, speed);
}
void turnRight(int speed) {
digitalWrite(M1, HIGH);
digitalWrite(M2, LOW);
analogWrite(E1, speed);
analogWrite(E2, speed);
}
void setup() {
pinMode(E1, OUTPUT);
pinMode(E2, OUTPUT);
pinMode(M1, OUTPUT);
pinMode(M2, OUTPUT);
stopMotors();
Serial.begin(19200);
Serial.println("Romeo V2 motor control ready");
Serial.println("w: Forward, s: Backward");
Serial.println("a: Left, d: Right, x: Stop");
}
void loop() {
if (Serial.available() > 0) {
char command = Serial.read();
switch (command) {
case 'w':
moveForward(255, 255);
break;
case 's':
moveBackward(255, 255);
break;
case 'a':
turnLeft(100);
break;
case 'd':
turnRight(100);
break;
case 'x':
stopMotors();
break;
default:
break;
}
}
}Open the Serial Monitor and set the baud rate to 19200. Select the appropriate line-ending option or send individual characters. Use the following commands:
- w: Move forward.
- s: Move backward.
- a: Turn left.
- d: Turn right.
- x: Stop both motors.
The example assumes the board is configured for PWM motor-control mode. Motor direction may differ depending on motor wiring. If a motor rotates in the opposite direction, reverse its motor connections or adjust the direction logic in the sketch.
Specifications
- Product: Romeo V2 All-in-One Robot Control Board
- DFRobot SKU: DFR0225
- Microcontroller: ATmega32U4
- Architecture: 8-bit AVR
- Clock Speed: 16 MHz
- Bootloader: Arduino Leonardo compatible
- Operating Logic Voltage: 5V
- Digital I/O: 20
- Analog Inputs: 12
- ADC Resolution: 10-bit
- PWM Outputs: 7
- PWM Resolution: 8-bit
- USB Interface: Native USB through ATmega32U4
- USB Connector: Micro-USB
- Motor Driver: Dual DC motor driver
- Motor Driver Output Current: Up to 2A, as specified by the manufacturer; check operating and thermal conditions before selecting motors
- Stepper Motor Support: Supported through the onboard motor-control circuitry
- Motor Power Input: 5–23V DC according to the board documentation
- Servo Power Input: Approximately 5–12V DC through the separate servo power terminal
- Wireless Expansion: XBee-compatible socket
- Additional Wireless Connections: Compatible APC220 RF and DFRobot Bluetooth modules
- Sensor Connections: Three-pin analog/digital sensor interfaces
- Additional Interfaces: UART, SPI, and I2C/TWI
- Onboard Controls: Five test buttons and power switch
- Dimensions: 89 × 84 × 14 mm
Note: The 2A motor-driver rating should not be interpreted as a guaranteed continuous current under all operating conditions. Actual usable current depends on the driver, cooling, supply voltage, and motor load. The board's motor supply and servo supply are separate power connections and should be wired according to the manufacturer's schematic.
Comparison: Romeo V1 vs. Romeo V2
The main difference between Romeo V1 and Romeo V2 is the microcontroller architecture. Romeo V2 uses the ATmega32U4, as found on the Arduino Leonardo, instead of the microcontroller used by the earlier version.
- ATmega32U4: Provides native USB functionality and supports USB HID applications.
- Serial Communication: Provides USB serial communication alongside the hardware UART on pins D0 and D1, making it suitable for projects using compatible serial wireless modules.
- Integrated Motor Driver: Both the motor-control circuitry and microcontroller are on the same board, reducing external wiring.
- Robotics Integration: Combines motor control, sensor connections, and wireless module expansion on one board.
Romeo V2 is useful for robotics projects that require an integrated motor driver and wireless expansion without assembling a separate Leonardo board and motor driver module.



