Android Bluetooth joystick

And never tell anyone in public what your specific plans are, just general stuff like "Well, maybe we'll head south, or maybe east, have to see how it goes", LOL. Talk about intrusiveness, this article may be of interest! Do a google search on "WSJ How Kid Apps Are Data Magnets". I find the direct link gets highjacked. "Big Data" knows more about you than your own govt. C'est la vie. Neuromancer in action.

I suggest to go back to the original subject of this thread Words Google, FaceBook, NSA have nothing to do with Bluetooth control, even if European and Gaia citizens have hard feelings about that :0 :0 :0

Hoops... I heard a strange click on my phone line :disappointed_relieved:

Best not to kick the tiger in the a*, when he's sleeping. But that's old news. The WSJ article is about ggle, yah, f*ceb*k, am*z*n, and eb*y, the new 4-letter word agencies that know 100X more about you than the g*vt will ever know. L*L.

On other matters, I've started reading a book on Android development. Install about 700-800 MB of dev tools (java sdk, eclipse, eclipse android plugin, android sdk, maybe some others), and learn how they work, and maybe 3 months later you'll have a nice 47KB .apk app. More L*L.

I've started reading a book on Android development. Install about 700-800 MB of dev tools (java sdk, eclipse, eclipse android plugin, android sdk, maybe some others), and learn how they work, and maybe 3 months later you'll have a nice 47KB .apk app

You choosed the hard way :fearful: :fearful: Bonne chance ;)

I'll look up your links too, but see you also mentioned Eclipse + Android SDK, which is where the book starts from too.

I posted a BlinkM (RGB LED) project based on Joystick Bluetooth Commander, in the LEDs and Multiplexing Section

Comment from Google Play:

Muy buena aplicacion Aplicacion sencilla y de fácil uso, el código facilitado para arduino es muy útil. Espero más versiones con más botones para seguir trabajando con ello.

Thanks for the nice comments

Regarding additional buttons, I have mixed feelings as my Xperia mini screen is allready cluttered On the other hand, a screen tablet is another story, with a lot of space (see reply #28) May be an option to place additional buttons according to the available real estate

Road map for the next versions: - remove Data range -10 to +10 (useless) - add Data range -100 to +100 for increased resolution - add Calibration screen for "Zero" position offset

My Google Play downloads are in the 100 - 500 category Please let me have additional feedback - Android device - Android version - suggested new features

TIA

I guess I've already mentioned it, but to me, having a couple more on/off buttons would really be nice. You'll notice a guy on another thread here wanting an Android app to "control relays".

One way to implement this with little additional screen real estate is fork the current on/off buttons into 2 separate on/off functions, and simply change the button color/etc to indicate last msg state. Actually, on your screen in post #0, I'd think you'd have room for at least 4-6 buttons without too much interference. Just a thought.

[I'm still looking at Android dev, but currently off trying to get my ethernet shield to do tweets and talk to xively, :-)].

OK, OK...

What's about this layout

Four toggle buttons with visual feedback Relays 2 and 3 are supposed to be energized

Hi! I have liked your application because I allow me to control motors through bluetooth. I use various dispositives to use program: mobile and tablet. The mobiles that we uses are Samsung Galaxy S2 (Ice Cream Sandwich) and S3 (Jelly Bean), and the tablets are Samsung Galaxy Note 10.1 (Jelly Bean) and Nexus 7 (Jelly Bean).

I like the idea of you to increase the range of -100 to +100 to allow better control. And it's okay to add more buttons to take further action with the robot.

If I have any ideas for your design and can be useful to me I write it on the forum.

A greeting! and sorry for my English is not very good =(

That's great, kas, exactly what I was thinking about, :-).

You might make it so, in the options menu, you can select momentary activation or toggle on the switches [ha - it never ends, people always want more, each solution breeds a new idea, LOL].

Hi Rafolas, welcome to the forum :)

Thanks for taking the time to register and to send your very first post in this thread Your feedback is (and will be) appreciated

@oric_dan

You might make it so, in the options menu, you can select momentary activation or toggle on the switches [ha - it never ends, people always want more, each solution breeds a new idea

;) ;) ;) In Android, Buttons and ToggleButtons are different beast... :roll_eyes: For the moment, I am creating the option menu for displaying zero, two or four buttons on the screen

I will post Joystick Bluetooth Commander V2.4 on Google play later today

Change log:

  • Display up to four toggle buttons with visual feedback
  • Button visibility option setting (0 - 2 - 4)
  • added Timeout count “every 1000 intervals” to support new low refresh intervals
  • default refresh interval set to 50ms
  • removed buttons data option setting (not relevant anymore)

New buttons protocol:
Button1_ON < STX ‘1’ ETX >
Button1_OFF < STX ‘2’ ETX >
Button2_ON < STX ‘3’ ETX >

Button8_OFF < STX ‘8’ ETX >

The original Arduino setLED() function should be modified:

void setLED(int LEDstatus)  {
  switch (LEDstatus) {
    case '1':
      Serial.println("Button_1: ON");
      // your code...      
      break;
    case '2':
      Serial.println("Button_1: OFF");
      // your code...      
      break;
    case '3':
      Serial.println("Button_2: ON");
      // your code...      
      break;
    case '4':
      Serial.println("Button_2: OFF");
      // your code...      
      break;
    case '5':
      Serial.println("Button_3: ON");
      // your code...      
      break;
    case '6':
      Serial.println("Button_3: OFF");
      // your code...      
      break;
    case '7':
      Serial.println("Button_4: ON");
      // your code...      
      break;
    case '8':
      Serial.println("Button_4: OFF");
      // your code...      
      break;
  }
}

Disclaimer:
See reply #36

@ oric_dan
Please let me have a tablet screenshot similar to reply #28

Enjoy

EDIT: Done!

Looks great! Will the source code of the joysticker commander be open at some point for use to learn from?

Looks great! Will the source code of the joysticker commander be open at some point for use to learn from?

I will definitely make the source code available Need some time to polish it a bit

Inspiration rarely comes from the Vacuum ;) Please refer to the "About" section of the Application menu

The code uses a mobile-anarchy widget combined with the classical BluetoothChat Android SDK example

Awesome. I have several times attempted to program in android system but the barrier is too high for me. I almost never program any GUI on any OS except for occasional Java popup and dialog type of simple GUIs. If at some point in the future I get your code, I can learn from it. Thanks for deciding to share the code.

You guys are funny. 2 little blue men, ;-).

There are more of us. Have you looked into the mirror today? ;)

Hi Liudr

If at some point in the future I get your code, I can learn from it.

A Bluetooth project is probably not the coolest way to start learning Android :roll_eyes: There is a lot of video tutorials on Youtube starting from "Hello Word" type applications and then, gradually, following the (rather steep) learning curve You will quickly find that Android and Arduino live well together

Please see reply #31 Eclipse IDE is definitly the best tool for serious development

By the way... nice blog http://liudr.wordpress.com/

Thanks kas! I have a stack of books on unix. It's never easy to learn to program on a new operating system but if I can hack your program to do a few things (or maybe just use your program), I think I will motivate myself to get a few books on android. At the moment raspberry pi is pulling me in so I may have to wait to learn the android.

...but if I can hack your program to do a few things (or maybe just use your program), I think I will motivate myself to get a few books on android

If you really can't wait, send me a PM with your email address ;)