Go Down

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

woodygb

#345
Sep 14, 2014, 08:07 pm Last Edit: Sep 15, 2014, 09:13 am by woodygb Reason: 1
janzluc14

This is your thesis not mine.

However...

You seem intent on checking  for two states  ... you only need to check for one ......if it isn't high then by default it must be the other state low.

if  pin is  high  ...find route ....else ....mow.


What function do you want to call at the end of the motorwiper()  ...  and why.

Define the why and then call the function because the condition has been met.

So you could go ...if pin high ....find route... else if  ( Define the why )  do this function..... else mow .


Write down what you'd like the mower to do .... and define some logic questions that will allow you to point to various functions depending on the answers.

E.G.  If button pressed ( ON ) ... then Manual mode ("joystick" only )  just  find the logic question/answer order that it is best to implement them in your motorwiper and other routines.


You are now completely on your own to do YOUR Thesis..

Regards Woody


EDIT.
I see that you've now deleted all your posts.

janzluc14

#346
Sep 15, 2014, 05:27 am Last Edit: Sep 15, 2014, 05:33 am by janzluc14 Reason: 1
im just consulting sir....
yes sir kas...the program is all working...tnx...:)

janzluc14

yes sir i deleted it...:)...thanks for your help..

woodygb

#348
Sep 21, 2014, 08:52 pm Last Edit: Sep 21, 2014, 09:14 pm by woodygb Reason: 1


@woodygb

Did you use BT Commander for a specific project ??
Let us have more info and photos



http://forum.arduino.cc/index.php?topic=173246.msg1870945#msg1870945


Hi Kas,

Here is a video of the interface being tested... not by me ... but by a wheelchair user.

http://www.youtube.com/watch?v=QLoXDDKCfC0


Cheers  Woody

kas

Hi Woody

Thanks for this video, I really appreciate your feedback  :)
Again, should you need any modification, just let me know


kas

#350
Oct 08, 2014, 08:02 am Last Edit: Oct 08, 2014, 08:06 am by kas Reason: 1
Quote
Postby Alexlebrit » 29 Sep 2014, 22:11  from wheelchairdriver.com

Out of interest does the app allow for control via tilting/rotating the handset, or
is it joystick control only?



Woody,

This option is relatively easy to include in Joystick BT Commander, for you to try
Let me kwow


kas

For my new project, I am testing a robotic claw using Joystick BT Commander



testato

Is it Open Source ?
Is it on Github ?

Thanks
- [Guida] IDE - http://goo.gl/ln6glr
- [Lib] ST7032i LCD I2C - http://goo.gl/GNojT6
- [Lib] PCF8574+HD44780 LCD I2C - http://goo.gl/r7CstH

kas

No (not yet)
For the BT engine, a good starting point is "Bluetooth chat"
The BluetoothChat sample can be found in your SDK directory (SDK 17 or lower)

cdb0ewm

This app is just what I'm looking for....but any chance of an IOS version

Thanks

woodygb

Quote
Postby Alexlebrit » 29 Sep 2014, 22:11  from wheelchairdriver.com

Out of interest does the app allow for control via tilting/rotating the handset, or
 is it joystick control only?
Woody,

This option is relatively easy to include in Joystick BT Commander, for you to try
Let me kwow


I'll repost this over on the Wheelchairdriver forum.


kas

#356
Oct 27, 2014, 10:56 pm Last Edit: Oct 28, 2014, 07:06 am by kas
Quote
This app is just what I'm looking for....but any chance of an IOS version
Sorry, I know nothing about IOS   :-[
Best solution is to replace your phone    ;)

kas

#357
Oct 28, 2014, 08:57 am Last Edit: Oct 28, 2014, 09:10 am by kas
Quote
Options for advanced users
Auto connect at start up ticked
Refresh interval
25 milliseconds
Timeout count
Continually
Woody,
With this setting, you are sending a LOT of data in the air for no obvious reasons
Do you really need to resend same data 40 times per seconds if joystick has not changed position ??
Try 50ms/every 10 intervals, this will save resources on both phone and Arduino sides



woodygb

Woody,
With this setting, you are sending a LOT of data in the air for no obvious reasons
Do you really need to resend same data 40 times per seconds if joystick has not changed position ??
Try 50ms/every 10 intervals, this will save resources on both phone and Arduino sides



I really do not know if I need to ... it just seemed... at the time... to be sensible to have as much data flow as possible .... do you believe that 25ms will have any adverse effect?

kas

Quote
do you believe that 25ms will have any adverse effect?
Yes
- sluggish reaction with old powerless smartphone
- transmission errors @9600bps (possible buffer overflow)
- >> smartphone battery drain <<

BTW how is the Arduino powered ??
You definitly can use the wheelchair battery (12V max)

Go Up