Android Bluetooth joystick

My best guesses:

http://login:password@10.0.0.45/mjpg/video.mjpg
http://login:password@10.0.0.45/mjpg/1/video.mjpg

If you drop login and password from your camera setup
http://10.0.0.45/mjpg/video.mjpg
http://10.0.0.45/mjpg/1/video.mjpg

You may also try adding Port info
10.0.0.45:80

Let me know what you tried

kas:
What happens when you just test a plain UNO + HC-05 on a table with nothing attached ??

If I load a hc05 setup sketch I can send AT commands through the serial monitor.

I tried 2 different hc05 and 2 different uno and they are all behaving the same.

During testing it almost seems the buttons commands time out. So if b1 to light up an led , b2 for turbo , and b3 turns my motors on they all kick off after x amount of time but with no buttons selected the rover behaves normal.

During testing it almost seems the buttons commands time out. So if b1 to light up an led , b2 for turbo , and b3 turns my motors on they all kick off after x amount of time but with no buttons selected the rover behaves normal.

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

link that works in android VLC player is:
http://IPADDRESS/mjpg/video.mjpg
but the same string does not show picture in RC TC.

Does VLC ask for User/Password ??

kas:
Does VLC ask for User/Password ??

Hello! I got camera picture in "Total RC Commander" now :slight_smile:
For now, I allowed anonymous access to camera, and just in case reinstalled "Commander". Now I got picture, so, basically all is fine now. I will eventually experiment with user/passw for camera, now that I really know it is working at all.
Pan/Tilt servos cod not tested yet, need a bit more free time.

Hello! I got camera picture in "Total RC Commander" now :slight_smile:

So finally, which magic formula did you enter in Total RC Commander to access video stream ??

kas:
So finally, which magic formula did you enter in Total RC Commander to access video stream ??

I am entering the same as in VLC player:
http://IPADDRESS/mjpg/video.mjpg
Without password for now, will experiment with that another time.
But, the thing is, I am pretty sure I already tried that line many times before, and it did not work in "Commander". I uninstalled (with cleaning data) Commander, re-installed - now it is working.
Maybe the fact, that now I have VLC in my Android system somehow is doing the trick? I don't know.

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: