Android Bluetooth joystick

for powerful night driving spotlight I will probably use some ready made bike light with its own batteries (put a transistor+relay to switch on)

With Total RC Commander, you may also use IR ligths combined with an IP camera. I use a Wanscam JW0004 with integrated IR leds.
The stealth robot will move in total darkness while delivering a clear picture to the android smarphone 8)

@kas I am having issues with my robot. It seems to work fine unless you hit the buttons for function controls. If you notice in this video you see button 1 is selected and the red led is on . Than it behaves erratically like it loses signal and than restarts ??? Ive tried everything that I could think of and came up no where so I figure I would consult the Oracle :slight_smile:

@kas I am having issues with my robot. It seems to work fine unless you hit the buttons for function controls. If you notice in this video you see button 1 is selected and the red led is on . Than it behaves erratically like it loses signal and than restarts

Hi fullspool :slight_smile:

  • possible EMF interference
  • processor brown out <<<

what is button #1 supposed to actuate ??

kas:
Hi fullspool :slight_smile:

  • possible EMF interference
  • processor brown out <<<

what is button #1 supposed to actuate ??

it operates a servo , however it is disconnect now as i thought it might be causing an issue so the led is in its place so you could easier see the issue I am having. Should I get a new uno or hc-05 ?

I am using latest app and samsung s7 .

I did some more testing on my smaller robot using a different uno board but same hc-05 and its performing the same way. I suppose my hc-05 has gone bad ?

fullspool:
I did some more testing on my smaller robot using a different uno board but same hc-05 and its performing the same way. I suppose my hc-05 has gone bad ?

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

kas:
You got it :smiling_imp: more:

  • mode switch for camera pan/tilt

Hello! Any chance on new "Tank control lessons", with that pan/tilt control, or something? :slight_smile:
No rush, I am just curious, and thanks for everything coded so far.

Hi juris3D

Did you already connect your IP camera to Total RC Commander ??

Any chance on new "Tank control lessons", with that pan/tilt control, or something? :slight_smile:

OK :wink:
How do you want your pan/tilt control cooked ? using one or two servo's ?

kas:
Did you already connect your IP camera to Total RC Commander ??
How do you want your pan/tilt control cooked ? using one or two servo's ?

I am fighting with camera right now... But I will win!! :smiley:
(EDIT: camera EDIMAX feed is working with native Android apk EdiView, and from PC web browser, but I am not sure how to feed cameras username and password for RC Total Commander for now. It is late night, will continue tomorrow.)
As for pan/tilt, it will be two servos config. Left/Right and Up/Down. Not assembled yet, but I can test with servos.

TankControl V0.8

Button #3 now toggles joystick between motor control and Pan/Tilt control, for camera or other devices
Vertical servo travel and offset are fully adjustable (MIN_Y, MAX_Y & ZERO_Y)

Don't forget to rename buttons according to their specific tasks (Options/Buttons properties/Buttons labels/...)

Enjoy :wink:

TankControl_V08.ino (10.3 KB)

Thank You for new version! Will try tonight or next days.
I am wondering, what would be best guess how to feed in commandline my camera's username and password? If I simply enter IP address in browser, it asks user/pssw, and then all is fine (see picture).
Link in browwser shows this:
http://10.0.0.45/live.asp?r=20130724
I had some experiments, looking at examples in Internet, how login and password is added to link, but did not succeed yet (Total RC Commander says "error 401: remove camera User Access Control".
I would appreciate some good suggestions here. Thanks!

I am wondering, what would be best guess how to feed in commandline my camera's username and password?

Did you try removing password (blank entry) within your IP camera ??

Also let me have the exact model and possibly a link to your IP camera

kas:
Did you try removing password (blank entry) within your IP camera ??

No I did not, I don't want to have camera without a password.
Model is this:
EDIMAX IC-3115W
www.tesco.com.tr/admin/pages/files/IC-3115W%20User%20Manual.pdf
http://www.edimax.com/edimax/merchandise/merchandise_detail/data/edimax/global/home_network_cameras_indoor_fixed/ic-3115w

by the way, I appologize in advance, if I missed something obvious, probably even written somewhere. I just haven't had much free time, so I asked in advance to more experienced Author who probably knows that without looking anywhere :slight_smile: :slight_smile:
UPDATE:
link that works in android VLC player is:
http://IPADDRESS/mjpg/video.mjpg
but the same string does not show picture in RC TC.

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