Android Bluetooth joystick

kas:
Humm... something is wrong ::slight_smile:
Please post a copy of your current rover Arduino sketch

Here you go, I don't understand whats going on. Tried new HC05 and different UNO but still acts up.

AndroTest_Servo_fullspool_V1.9.ino (9.8 KB)

I have mine setup with shorter intervals than yours ...might be worth giving them a whirl.

long sendInterval = 250;
long deadManInterval = 110;

@fullspool
I uploaded AndroTest_Servo_fullspool_V1.9.ino on an Arduino/HC-05 combo board, and all is OK
Button are activated/deactivated on my Moto-G without a glitch

You definitally have a hardware problem

  • ground not connected
  • loose wire connections
  • processor brownout
  • EMF interferences (relay & motors)

@woodygb
Woody, I am a software guy ::slight_smile: , will you please take the lead and keep on sorting this situation ??

I can try.

I will rewire the circuit again and test it. Its frustrated me to a point I had to take a break from it. It all seems to work fine but when I use rapid stick movement in turbo mode it seems to freak out and reset itself. Maybe I am over amping the board ???

I have a VD , amp sensor , 2 signal wires to my motor, 1 to LED, and 1 to a servo .

hey, i tried using the code Andro_Pan&Tilt V3.1 (See my attachment) and i'm using the latest version of your app (i guess it is version 5.2). Well, I can't seem to make it work.
I connected BT Tx to Arduino D0
Servos to pin 9 & 10

Is there something wrong with that?

BluetoothRoboticDancer.ino (3.03 KB)

I'd suggest modifying this sketch.
http://forum.arduino.cc/index.php?topic=173246.msg1766646#msg1766646

Have you also reprogrammed your blue tooth modules baud rate?

Im using MEGA 2560 clone with the MEGA sensor shield V2.0 clone.
Bluetooth HC-06 Clone.

Im very new to writing code, could you point me to the correct downloads to get this app working with servos? I'd also like to connect the bluetooth to the (RX,0 and TX,1) on the sensor shield, so I can save my other pins for servos, can this be done?

hey @kas, i was wondering if you can send me the .ino code for your project Arduino robot controlled via Android smartphone Arduino robot controlled via Android smartphone - YouTube.
And also can you teach me how to wire the parts altogether?

kas:
I posted a pan/tilt project based on Joystick Bluetooth Commander, in the Robotic Section

hey @kas, for this to work, do i need to change my bt baud rate to 57600?

Hi geeameal,

A bit busy for the moment :-\

This is Andro_Pan_TiltV36.ino
You may adjust Serial.begin(57600) to the actual speed of your board
For reliable results, I suggest you change your BT board to 57600 bps

Servo's are connected to pin #9 & #10
Use a separate power supply and connect grounds

Good luck

Andro_Pan_TiltV36.ino (2.56 KB)

I am not sure what happened to my uno but I replaced it with a new one and all appears to be working well now . Will do further testing tomorrow.

Dont pay attention to the wiring mess :slight_smile:

Kas is there a way to peogram a dead mans cut if it sees over 100 amps and if it gets below 20 volts it will sound off a buzzer?

thanks for the help guys!

Nice job, impressive :fearful: :fearful: :fearful:

Try to figure what happened to your UNO, to avoid getting another fried one shortly :wink:

Shadowbuddy518:
Im using MEGA 2560 clone with the MEGA sensor shield V2.0 clone.
Bluetooth HC-06 Clone.
could you point me to the correct downloads to get this app working with servos?

Hi Shadowbuddy518
Sorry for the late response
You can use Andro_Pan_TiltV36.ino (see above post #811)
With a Mega 2560, I suspect you have more than enough I/O's

You can test communication using AndroTest V2.0 (post #256)
Don't forget to adjust sketch/BT card baud rate
Let us know how it works

kas:
I posted a pan/tilt project based on Joystick Bluetooth Commander, in the Robotic Section

hey mate, what software did you use for this android app? I want to recreate this app, but i want to remove the buttons, leaving the joystick only. Is it possible to do it with app inventor?

kas:
Easy to do... let's see...
Android programming is a fascinating universe
Three very different approches are available on the market, with increasing learning curves
App Inventor
A full graphic cloud based application, just fitting together puzzle pieces
still in development, very intuitive but a bit limited for the moment

Basic4android
using a syntax MS Visual Basic syntax, creates native Android applications

Eclipse + Android SDK
for full blown applications, a bit frustrating at startup :astonished: :astonished: :astonished:
A first experience with Java will definitly help
Tons of help and snippets, at XDA developpers
lots of tuto's on Youtube

I tried App Inventor and finally choosed the hard way... 8)
Thanks for this excellent feedback :slight_smile:

Out of curiosity, where is the Land of sun+snow ??

can i recreate this app using app inventor?

Is your App up and running now ??

I want to recreate this app, but i want to remove the buttons, leaving the joystick only

In you can reduce button numbers and remove data fields

can i recreate this app using app inventor?

Probably :wink:

Hi, I have just downloaded your app and have a question.
I'm just trying to understand how to interpret the data I receive from the app in the Serial Monitor.
I have attached a screenshot of the Serial Monitor below, and I'm wanting to understand what these values here mean:

2
50
48
48
50
48
48
3

And how they correspond to the XY coordinate displayed in the app.

kas:
Is your App up and running now ??

In you can reduce button numbers and remove data fields

Probably :wink:

as of now, i can move the joystick freely, but it's not yet able to send any data to control the servos. by the way, did you use eclipse for this apk ?

kas:
Is your App up and running now ??

In you can reduce button numbers and remove data fields

Probably :wink:

hey kas, do you mind taking a look at my apk progress? see if there's anything i should add or change?