background image

The analog sensor port pin mapping on RoMeo v2 is
different from the version before. Be careful to wire your
sensor or other devices correctly or the wrong power
connection would destroy your device.
Please Turn OFF the Motor Power Switch when debugging
Romeo through USB cable. Or the external power
supply(>12V) will destroy your Romeo.

(/wiki/index.php/File:RomeoV2.png)

DFRduino RoMeo V2 (R3)

Romeo V2­All in one Controller (R3) (SKU:DFR0225)

Contents

1  Introduction
2  Specification
3  RoMeo V2 Pinout

3.1  Power solution design
3.2  Example use of Button S1­S5
3.3  Pin Allocation
3.4  PWM Control Mode
3.5  PLL Control Mode

4  Trouble shooting
5  More

Introduction

RoMeo V2[R3]is an All­in­One Arduino compatible microcontroller especially designed for robotics applications
from DFRobot. The Romeo benefits from the Arduino open source platform, it is supported by thousands of open
source codes, and can easily be expanded with Arduino Shields. The integrated 2 way DC motor driver and
Xbee socket allows you to start your project immediatly without the need for an additional motor driver or wirless
shield.

(/wiki/index.php/File:Warning_yellow.png)

NOTE:

Please select Leonardo board when uploading a sketch by Arduino IDE.
Serial port 0 or 1 Read more from Arduino.cc (https://www.arduino.cc/en/Reference/Serial): Please
use Serial1.***() instead of Serial.***() in code to communicate with devices connected to serial
interface, i.e. Pin 0/1. e.g. Bluetooth, WiFi module, Xbee etc. Serial.***() is for USB debugging on pc
serial monitor.
Analog 0: If you are going to use the Analog port 0, you have to pay attention to the switch(s1­s5),
turn it OFF please. There are five buttons connected to A0, if you turn ON the button switch,then the
A0 read value would be not the one you want.

Specification

Basic

Feature

Improvement compared with Romeo v1.1

(http://www.dfrobot.com/wiki/index.php/DFRduino_Romeo­

All_in_one_Controller_V1.1(SKU:DFR0004))

Summary of Contents for DFR0225

Page 1: ...ed by thousands of open source codes and can easily be expanded with Arduino Shields The integrated 2 way DC motor driver and Xbee socket allows you to start your project immediatly without the need f...

Page 2: ...sensing switching external power input Support Male and Female Pin Header Built in Xbee socket Integrated sockets for APC220 RF Module and DF Bluetooth Module Three I2C TWI Interface Pin Sets two 90...

Page 3: ...ng 6 12v servos with the voltage input higher than 5v it s not available to extend 5v sensor on all the digital sensor interface anymore The servo power terminal won t supply system working voltage Mo...

Page 4: ...y if keypress is detected delay 50 wait for debounce time adc_key_in analogRead 0 read the value from the sensor key get_key adc_key_in convert into key press if key oldkey oldkey key if key 0 Serial...

Page 5: ...ng Fig4 PWM Motor Control Pin Allocation The PWM DC motor control is implemented by manipulating two digital IO pins and two PWM pins As illustrated in the diagram above Figure 5 Pin 4 7 7 8 for old R...

Page 6: ...1 a digitalWrite M1 LOW analogWrite E2 b digitalWrite M2 LOW void turn_L char a char b Turn Left analogWrite E1 a digitalWrite M1 LOW analogWrite E2 b digitalWrite M2 HIGH void turn_R char a char b Tu...

Page 7: ...top PLL Control Mode The Romeo also supports PLLPhase locked loop wiki index php Phase_locked_loop control mode wiki index php File Romeov11xxx png Fig5 PLL Motor Control Pin Allocation Configuration...

Page 8: ...e E2 HIGH analogWrite M2 m2p void setup void int i for i 6 i 9 i pinMode i OUTPUT Serial begin 19200 Set Baud Rate void loop void if Serial available char val Serial read if val 1 switch val case w Mo...

Page 9: ...Controllers wiki index php Category Motor_Controllers MicroControllers wiki index php Category MicroControllers This page was last modified on 14 March 2016 at 04 15 Content is available under GNU Fr...

Reviews: