Android Bluetooth joystick

Hi Ruldi
Thanks for the feedback 8)
Let us have the video when ready

Good new, classic Bluetooth feature is now available for ESP32
Get the Arduino IDE library here

I have ported the basic Arduino demo sketch (AndroTest_V20_POSTED.ino) to this super platform
No wiring, no software setup, nothing !!
just upload to ESP32 and enjoy

All in one small board for 5 bucks shipped that's insane :smiling_imp: :smiling_imp:

EDIT
Sketch updated to V1.1

AndroTest_ESP32_V1.1.ino (7.23 KB)

Hi Kas,

I am working with your app and sample code and ran into a snag last night. I am using the adafruit ez-link, nothing seemed to show up over the serial link. I believe the issue is the baud rate for ez-link is not selectable in the rc commander app so I am unsure of what baud it is actually connecting at. I will try with an hc-06 where the baud is set by the module. Bluefruit EZ-Link - Bluetooth Serial Link & Arduino Programmer [v1.3] : ID 1588 : $22.50 : Adafruit Industries, Unique & fun DIY electronics and kits

Is there a version of the app floating around that may have selectable baud?

Thanks!!

Is there a version of the app floating around that may have selectable baud?

Hi cshunt

No ::slight_smile: ::slight_smile:

There is no such thing as "baud rate" for Bluetooth radio transmission between two devices
Baud rate only apply to the wired serial connection between BT card and Arduino

Try to adjust baud rate in AndroTest.ino demo sketch

BTW Bluefruit EZ-Link had major flaws and is now discontinued, just use a plain HC-05/HC-06 board

Hi, Kas

I made this video so you can see the chair working perfectly

Kas
is it possible to turn the bluetooth comander design a bit?
When I put the 2 motors forward, I have to by the bluetooth comander diagonally

I would like to go up and go forward.
and back the same thing

the diagonal control is confusing me a little lol

but if you can not do this well

Hi Ruldi,

Thanks for the video, you are now a super driver :wink:

is it possible to turn the bluetooth commander design a bit?
When I put the 2 motors forward, I have to by the bluetooth commander diagonally
I would like to go up and go forward.
but if you can not do this well

Let me see what I can do

Hi Rudi,
This is version E, with differential steering

** Cuidado **
I still can't test the code, some joystick positions may produce unexpected moves
Test carefully and let me have your comments

Hi, Kas

It really did look strange.
the engines with this code behaved differently
did not work nor the speed control
and so connect the bluetooth comander the motors go out spinning and do not stop
and when I put it forward they slow down

the image I posted shows the position of the joystick diagonally with the 2 front motors

the other image with the joystick up, the chair turns sideways

I do not know if I could explain it well, but that's it.
Thank you for always being considerate.

(upload://6I6PuuEmauXO02up6hgyYXrei26.jpeg)]

(upload://6I6PuuEmauXO02up6hgyYXrei26.jpeg)]

Sorry for that
I need to setup some equipment to really test the code

A bit busy for the moment, may take a while :frowning:
please go back to revision D for the moment

kas:
Sorry for that
I need to setup some equipment to really test the code

A bit busy for the moment, may take a while :frowning:
please go back to revision D for the moment

Okay Kas, I'll be waiting.
meanwhile I'm going to redo all electrical installation
and set some details
God bless you

I think I got it ::slight_smile:

This is version E1 , please test it and let me know
Take great care

Andro_four_PWM_E1.ino (9.08 KB)

I know this is a really old thread, but is it still possible to get a copy of total RC commander?
Thank you for your time.
-Erik

Thanks for your interest
Check your mail

End of technical support

I have been supporting this project for nearly four years, this was an exciting experience
I have since moved to other projects and it's now time for me to retire

All possible questions have been answered in this thread, just read it :wink:
Feel free to use this thread on a peer to peer basis to share your experience
Please no more PM's

Thanks again for your interest and good luck for your projects

One last contribution

Demo sketch for ESP32 V1.1

Enjoy :wink:

Hi, thanks for sharing the Android app!

Is the source code of the Android app available?

Cheers,
David

Im working with the arduino mega 2560
and its not working

/ For Mega 2560:
// remove #include "SoftwareSerial.h", SoftwareSerial mySerial(2,3);
// search/replace mySerial >> Serial1
// pin#18 to RX bluetooth module, pin#19 to TX bluetooth module

This comment is confusing to me
What i did was remove the #include "SoftwareSerial.h", SoftwareSerial mySerial(2,3);" that was at the top of the code and the i did ctrl-F to find and replace all "mySerial" with Serial1 then i moved the pins from 2 and 3 to 18 and 19.

is this correct? i just found this app and am trying to get it to display some info or anything really!!

Okay so it turns out that I was doing the right thing with the mega, but my hc-05 bluetooth module had a different default baud rate(9600) than the joystick sketch baud rate(57600). I changed the baud rate on my bluetooth module with AT commands but if that isn't an option, you can also change the sketch's baud rate to your modules and it still works.

Sorry for the obvious questions XD

I made a robot for the Rubik's Cube.
On Python works.
ON THE ANDROID no
I read both forums completely.
The problem in the phone and arduino connection.
The phone passes the test - AndroTest_V20_POSTED_DEBUG,AndroTest_V20_POSTED- OK.
BUT - CubeMover13_posted NO, Will help?

https://forum.arduino.cc/index.php?topic=271827.0
https://forum.arduino.cc/index.php?topic=173246.0