Very happy to announce the GoBLE app which is fully compatible with Romeo-BLE. Download Link:https://itunes.apple.com/cn...
JaneYu 2015-01-22 13:07:11 37 Views30 Replies Very happy to announce the GoBLE app which is fully compatible with Romeo-BLE. Download Link:https://itunes.apple.com/cn...
Hi, the bluetooth connection is based on the App so it doesn't need password.
JaneYu Is there any way for wireless sketch uploading in romeo ble without using the ble link?
JaneYu Hi, the firmware is same to our Bluno, you can check here for the firmware update. http://www.dfrobot.com/wiki...
JaneYu HI, there are two 2x3 pins headers on the board, the one close to the motor driver is Atmega 328P ICSP pins. But I am not sure whether it will work with yun shield, since there is only one serial port for UNO. But you can take a look this Romeo V2, based on Leonardo: http://www.dfrobot.com/inde...
JaneYu To get the UNO to work with the Dragino Yun Shield the mega16u2 must be set in reset mode by shorting out the two pins closest to the USB port on the 2x3 pinout. Is this 2x3 pin header the the same thing? If so which is the reset mode.
Does anyone have STL or 3D files for this board? I would like to be able to 3D print an enclosure for it.
JaneYu Can you tell me what type of Lipo (volts/amps) I can safely use in the Pirate 4WD/RoMeo model?
Thanks.
JaneYu I have the ultrasonic scanning unit attached to this. I am using the devastator tank kit. I am using the 6 xAA battery holder. When I am using the USB drive power, everything works fine, but when I am just using the battery power, everything goes crazy. Is there anything else I should do so it can run autonomously using the scanning kit and the devastator tank?
JaneYu Hi Rodrigues, I guess the 6xAA battery can't afford these devices power consumption simultaneously.(Romeo BLE + Motors + Servo + sensor). Do you have a lipo battery? Or maybe dual power will be a good idea. Using external power to power MCU board.
Uhm~ I am 4xAA battery is not enough, it is only 6V, Even it could satisfied the motor, the microcontroller and wireless will also consume a lot of current.
JaneYu I have another issue where the motors keep spinning even when they should be stopped. I noticed somebody else had this issue 20 days ago. Has it been resolved? Thanks,
JaneYu Cain, The tip you gave worked perfectly for lowering the speed. Now the only problem that I am having is the steering. It seems that I can turn left and right. I can move forward and back, but I can not steer left and right while moving forward or back. Other BLE solutions I have used with robotics have this function within the code. Is this not possible in the code provided or is there some other small adjustment to be made in the code provided by DF Robot for this board?
JaneYu I can't seem to get my Android phone to connect to the Romeo BLE. When using the demo app, I try to press connect and it never connects, It's just stuck on "connecting". I have the Romeo connected to my computer with the sample code uploaded to the board. Could I have some detailed help please?
JaneYu I see. So there is something in the newest version 1.6 that causes it to malfunction in this configuration. I know at this point, the following code is working for me:
/*********************************************************************
* DFMobile GoBLE_APP
*********************************************************************
* This example is aimed to control DFMobile basic motion by APP GoBle
* Created 2015-3-12
* By Gavin
*
* Button ID:
* SWITCH_UP -- 1
* SWITCH_RIGHT -- 2
* SWITCH_DOWN -- 3
* SWITCH_LEFT -- 4
* SWITCH_SELECT -- 5
* SWITCH_START -- 6
********************************************************************/
#include "DFMobile.h"
DFMobile Robot (4,5,7,6);
#include "Metro.h"
// Speed is modified by mapping vlaue of GamePad Stick
int LeftWheelSpeed;
int RightWheelSpeed;
//GoBle configuration library, help user to identify control button and stick on Gamepad
#include "GoBLE.h"
int joystickX, joystickY;
int buttonState[6];
int ledPin = 13;
void setup (){
Robot.Direction (LOW,HIGH);// (left direction,right direction);
pinMode(ledPin,OUTPUT);
Goble.begin();
Serial.begin(115200);
}
void loop (){
if(Goble.available()){
joystickX = Goble.readJoystickX();
joystickY = Goble.readJoystickY();
// Serial.print("joystickX: ");
// Serial.print(joystickX);
// Serial.print("joystickY: ");
// Serial.println(joystickX);
buttonState[SWITCH_UP] = Goble.readSwitchUp();
buttonState[SWITCH_LEFT] = Goble.readSwitchLeft();
buttonState[SWITCH_RIGHT] = Goble.readSwitchRight();
buttonState[SWITCH_DOWN] = Goble.readSwitchDown();
//enable to map the value from (1~255) to (-255~255)
int SpeedX=2*joystickX-256;
int SpeedY=2*joystickY-256;
Serial.print("Speed: ");
Serial.print(SpeedX);
Serial.print(" ");
Serial.println(SpeedY);
if (SpeedX>100 || SpeedX<-100){ //when joystick X is pushed up
LeftWheelSpeed=SpeedX;
RightWheelSpeed=SpeedX;
Robot.Speed (LeftWheelSpeed,RightWheelSpeed);
}
else if (SpeedY>100 || SpeedY<-100){
LeftWheelSpeed=SpeedY; //when joystick Y is pushed up
RightWheelSpeed=-SpeedY;
Robot.Speed(LeftWheelSpeed,RightWheelSpeed);
}
else if (SpeedX==0 && SpeedY==0){
Robot.Speed(0,0);
}
if (buttonState[1] == PRESSED){
digitalWrite(ledPin,HIGH);
}
if (buttonState[1] == RELEASED){
digitalWrite(ledPin,LOW);
}
}
}
The car is driving just like I imagined now. The turning is a little rough, but Im sure I can correct that by simply copying and modifying pieces of the code used to drive the robot. I will play around with this some tomorrow and see what I can come up with. I was thinking about incorporating the buttons into play to be able to steer and drive at the same time. Also, I think it would be helpful if I add a stop button. Ill post my results soon along with the materials I used. Thanks for the help.
If anyone else has this issue with 1.6.5 IDE, this code can be a work around for now I believe. Its driving perfectly.
JaneYu Actually, you can just buy a Romeo BLE instead of uno and 1,2,3 in "Still needed".,It's cheaper even with the same function.
And the app download link in this page http://www.dfrobot.com/wiki...
JaneYu Try this .Delete the code" buttonState[SWITCH_SELECT] = Goble.readSwitchSelect();
buttonState[SWITCH_START] = Goble.readSwitchStart(); "and test again.
JaneYu So far, so good. I am now able to see a changing value for the y position as well as the x. I am not able to get the
motor to respond when running the goble_app now, but I am charging my RC battery overnight to make sure its not a power issue. I understand that the motor output requires more power than the communication to the board from the app so Im hoping thats the only issue at this point. I will try it tommorow and see if I am able to control the motor output succesfully at this point. Im excited about what I see so far and Im hoping this fixed the issue. Ill let you know tomorrow thanks for the quick response also. You guys rock!
Can you download GoBLE_Test code to the board and open Serial Monitor to check the app command right or not follow the Wiki page. https://www.dfrobot.com/wik...
JaneYu I am sorry ,GoBLE doesn't have the Android version now.You can check our Bluno basic demo: http://www.dfrobot.com/wiki... ,it can easily control the RomeoBLE too with the correct command you defined in the code.
JaneYu The Bluetooth Controller on this shield should have no issue
communicating to an android device app such as Arduino Bluetooth RC Car https://play.google.com/sto...
JaneYu I am sorry, it doesn't support other bluetooth app now. You can check our Bluno basic demo: http://www.dfrobot.com/wiki... And there is an iOS App named Goble, maybe you can take a look
How can I use this to control a 4wd? It seems to only have 2 motor controllers.
JaneYu Yeah, but some time 2 motor drivers have been OK. It could using differential velocity rotation. Please check our cherokey wiki page. https://www.dfrobot.com/wik...


