Go Down

Topic: Android Bluetooth joystick (Read 373029 times) previous topic - next topic

fullspool

#795
Oct 01, 2016, 01:40 am Last Edit: Oct 01, 2016, 01:44 am by fullspool
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.

kas

#796
Oct 01, 2016, 07:48 am Last Edit: Oct 01, 2016, 08:05 am by kas
Quote
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   ::)
Please post a copy of your current rover Arduino sketch


kas

Quote
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 ??


Juris3D

Does VLC ask for User/Password ??
Hello! I got camera picture in "Total RC Commander" now :)
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.

kas

Quote
Hello! I got camera picture in "Total RC Commander" now :)
So finally, which magic formula did you enter in Total RC Commander to access video stream ??


Juris3D

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.

fullspool

Humm... something is wrong   ::)
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.


woodygb

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


long sendInterval = 250;                               
long deadManInterval = 110;

kas

@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  ::) , will you please take the lead and keep on sorting this situation ??


woodygb


fullspool

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 .

geeameal

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?
 

woodygb

#807
Nov 18, 2016, 02:19 pm Last Edit: Nov 18, 2016, 02:28 pm by woodygb
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?







Shadowbuddy518

#808
Nov 18, 2016, 09:48 pm Last Edit: Nov 18, 2016, 09:58 pm by Shadowbuddy518
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?

geeameal

hey @kas, i was wondering if you can send me the .ino code for your project Arduino robot controlled via Android smartphone https://www.youtube.com/watch?v=-jaszg2t2TY.
And also can you teach me how to wire the parts altogether?

Go Up