Introduction
The RoMeo BLE - Arduino Robot Control Board possesses all the functions of RoMeo controller, but adds one significant feature: Bluetooth 4.0 wireless communication, which allows the BLE controller to receive commands via Bluetooth. This offers the BLE a dazzling degree of customization in addition to new capabilities: users can now use their smartphone, tablet, or computer to interact with the BLE. This grants users exciting new possibilities, such as being able to fully control their mobile platforms straight from their smartphone.
Paired with Arduino, the BLE offers a dynamic range of possibilities compared to previous Arduino controllers. The RoMeo BLE is a control board specially designed for robot applications. Owing to Arduino's open-source platform and publicly available open-sourced codes, the BLE is easily integrated with Arduino modules.
The RoMeo BLE also includes two integrated two-channel DC motor drivers and wireless sockets, which provides a simpler and more convenient way for users to get their projects started.
Specifications
Basic | Features |
---|---|
Microcontroller: ATmega328P | |
Bootloader: Arduino UNO | |
On-board BLE chip: TI CC2540 | |
14 Digital I/O ports | |
6 PWM Outputs (Pin11, Pin10, Pin9, Pin6, Pin5, Pin3) | |
8 10-bit analog input ports | |
3 I2Cs | |
5 Buttons | |
Power Supply Port: USB or DC2.1 | |
External Power Supply Range: 5-23V | |
DC output: 5V/3.3V | |
Size: 94mm x 80mm | |
Auto sensing/switching external power input | |
Transmission range: 70m in free space | |
Support bluetooth remote update the Arduino program | |
Support Bluetooth HID | |
Support iBeacons | |
Support AT command to config the BLE | |
Support Transparent communication through Serial | |
Support the master-salve machine switch | |
Support usb update BLE chip program | |
Support Male and Female Pin Header | |
Two way H-bridgedMotor Driver with 2A maximum current | |
Integrated sockets for APC220 RF Module |
Pin Description
More detail:
- Motor Control Terminal Jumpers: Enable motor control if connected
- Button S1 to S5 Switch: Enable button functions if switched "ON"(in this case, all buttons are connected to A7).
- Motor Power Switch: Enable motor power if switched "ON"
Cautions: Please turn OFF the Motor Power Switch, when you debug the motor with USB port. |
Before you start
Applying Power
This is one of the most important steps in getting the RoMeo up and communicating with your host controller. You MUST make sure that you apply power to the Power Terminal using the correct polarity. Reverse polarity will damage the RoMeo.
Power from USB: Plug in the USB cable to the RoMeo controller from a power source (i.e. wall jack or computer). Your RoMeo should turn on -- if it does, you should notice the LED light up. Please note that the USB can only supply 500 mA current, which is enough to light up the LED but insufficient in powering DC motors or servos.
Power from External Power Input: Connect the ground wire (usually the black wire) from your supply to the screw terminal labeled “GND”, and then connect the positive wire from your supply to the screw terminal labeled “VIN".
Cautions: Maximum supply voltage cannot exceed the voltage mentioned in Specifications. |
Software
RoMeo can be programmed by Arduino IDE 0022 and above version. It can be downloaded at https://www.arduino.cc/en/software, Please select “Arduino UNO” as the hardware.
Romeo Configuration
Servo Power Select Jumper
Since most servos draw more power than a USB power source can supply, a separate power source is needed to individually power the servo. That separate power source is usually packaged together with the servo When you connect the external power to the servo power supply, it will automatically select the power source: either internal 5V power supply or external power source.
Motor Control Pin Jumper
Applying the Motor Control Pin Jumpers will allocate Pin 5,6,7,8 for motor control.
Removing the jumpers will release the above Pins.
Tutorial
New function
Romeo BLE - Arduino Robot Control Board is an upgrade of RoMeo, based on which a new element - Bluetooth 4.0 is added. It makes RoMeo BLE continue to obtain Bluetooth 4.0 wireless communication ability after inheriting RoMeo's powerful motor drive ability. RoMeo BLE has stronger voltage and current capacity with voltage input range widened to 5-23V and current output capacity increased to 2A. Thus it can meet to more demands. Sheild interfaces are increased for I2C, IOREF and AREF, so as to compatible with more Sheild module. The buttons are replaced with comfortable and stable ones, and the jumper of buttons are also replaced with switch, making it easy to use.
Experiment
Following is small experiment that a BLE-Link communicates with RoMeo BLE through bluetooth, through which we can learn how to handle its new features - Bluetooth 4.0 wireless transmission.
1. Experimental results preview: PC sends bluetooth wireless data command through the BLE-Link to RoMeo BLE. RoMeo BLE after receiving the command switches on or off the light L according to the command.
2. Hardware preparation: a BLE-Link, a RoMeo BLE, a PC and a micro USB line.
3. Software preparation: serial debugging assistant, Arduino compiler.
4. The operation:
Step 1: Set two bluetooth devices as a master and a slave (bluetooth communication should be established between a master and a slave machine). Here we set BLE-Link as the master, while RoMeo BLE as the slave. Specifically, we first connect the BLE-Link to the PC via a USB cable and the BLE-Link would be identified as a serial port equipment. Then open the serial debugging assistant (take the V1.8 version of BLE-Link firmware to for example), send the "+++" to BLE-Link, proving that you have entered the AT command Mode when receiving "Enter into the AT command Mode". Send the BLE-Link "AT + SETTING = DEFCENTRAL" (remember to select a new line to send), meaning that the BLE-Link has been set as the master when receiving "OK". Accordingly we set the RoMeo BLE as the slave by connecting it to the PC, open the serial debugging assistant and send "+++" and "AT + SETTING = DEFPERIPHERAL".
Step 2: Arduino program on RoMeo BLE, which is used to parse the data commands to open or close the light L.
The code is as follows:
Step 3: Connect the BLE-Link to the PC, and meanwhile open the RoMeo BLE. Wait a few seconds the two bluetooth devices will automatically connect. The LINK light will be on showing connection, indicating that the two devices are ready for wireless communication. Then open the serial debugging assistant and send "ON" under the mode of New line. This command is sent from the serial port, passing through the BLE-Link to RoMeo BLE. RoMeo BLE after receiving the command will parse the Arduino program, and then open the light L. When sending OFF under the mode of New line, RoMeo BLE turns OFF the light L.
Buttons
RoMeo BLE integrated 5 buttons, S1 to S5, which are controlled by Anolog Port 7. Switch it on as shown in the following figure when using analog buttons.
Demo Code 1:
Program function: Press buttons of S1 to S2, different frequencies of the LED flashing will be seen. This is because different resistances are built in, leading to different voltage dispatched to the analog ports. So do the data acquired by AD.
Demo Code 2:
Program function: See what happens in the serial window when pressing buttons, S1 to S5.
Example use of Button S1-S5:
Speed regulation of the two-armature DC motor
RoMeo BLE used 2 motor drivers so as to save time for robot fans spent on making hardware and to focus on software development. Using L298 motor drive circuit, the peak current can be up to 2A. When using the motor drive, the problem of power supply will be up. As shown in the figure below, M_VIN is connected to the anode, and GND is connected to the cathode. Also remember to switch to "ON".
PWM control mode
Pin | Function |
Digital 4 | Motor 1 Direction control |
Digital 5 | Motor 1 PWM control |
Digital 6 | Motor 2 PWM control |
Digital 7 | Motor 2 Direction control |
The motor driver circuit control terminal uses a short-jumper to set on or off. Set on when connected and off when disconnected.
Sample Code:
PLL Control Mode
The Romeo also supports PLLPhase locked loop control mode.
Pin | Function |
Digital 4 | Motor 1 Enable control |
Digital 5 | Motor 1 Direction control |
Digital 6 | Motor 2 Direction control |
Digital 7 | Motor 2 Enable control |
Sample Code:
Program function: Input "w", "x" and "s" and the motor will act accordingly.
The serial port using
RoMeo BLE uses the same serial ports as RoMeo other than adding a serial for Bluetooth 4.0 transparent communication. Related commands can be refered to the functions, Serial.begin(), Serial.read(), Serial.print() and Serial.println(),provided by Arduino.
Sample for RoMeo BLE connecting to smart phones
Please refer to Sample for Bluno connecting to smart phones
Step by Step Basic Demo tutorial.
Wireless programming via BLE
Please refer to Wireless programming via BLE of Bluno
How to Wireless Programming through BLE.
Configurate the BLE part using AT commands
Please refer to BLE configuration using AT commands of Bluno
BLE firmware update of Bluno mega2560 ("AT + VERSION" to check the version)
Please refer to BLE firmware update of Bluno
How to update the BLE firmware.
FAQ
For any questions, advice or cool ideas to share, please visit the DFRobot Forum.
More Documentation
Old Version:Romeo V2-All in one Controller
3D module (Share by Jared Peters) Clink Here