Show Posts
Pages: 1 ... 7 8 [9] 10 11 ... 20
121  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: July 07, 2013, 12:12:28 am
Let me have your email address via PM
122  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: July 05, 2013, 06:45:29 am
Quote
Have you already successfully used this board for other projects ??
 JY_MCU_Config configuration sketch won't work with this board as initialization strings are different

The datasheet for your board is here
Please have a look at page 5
Default Baud rate is 115200
Modify AndroLED V5 sketch setup() accordingly, should be OK
123  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: July 04, 2013, 11:34:24 pm
this is the Baud rate testing setup, please check:



This is a screenshot of the expected info:



Quote
Searching ............
ERROR: Bluetooth Module not responding!
Make sure there are no active bluetooth connection and try again

For checking/setting Baud rate, the BT card should _not_ be connected (Bluetooth connected) to the tablet/Android device,
To enter AT command mode, the BT card LED should _blink_

Just in case, try inverting D2 and D3 cables


Have you already successfully used this board for other projects ??
Please let me have a link to the specific BT board you purchased
124  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: July 04, 2013, 11:40:41 am
The Arduino sketch is attached to the previous message
You may not have access to it if you browse this forum using a tablet
Please download using a PC, alternatively I can include the sketch code within a new post
125  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: July 02, 2013, 12:06:20 am
Here it is
This sketch will scan the BT board and display actual Baud rate and firware rev level
The menu also allows to change Baud value
I suggest to set the board @57600

Connection:
 TX BT board pin to Arduino D2
 RX BT board pin to Arduino D3
 5V BT board pin to Arduino 5V
 GND BT board pin to Arduino GND

Finally, for joystick operations:
adjust Serial.begin(XXX) in AndroLED V5  
reload sketch
move D2 cable to DO
remove D3 cable
and you should be all set  smiley-cool

Tested with  JY-MCU rev1.05
Should work with any board
EDIT: doesn't work with Bluetooth Mate Silver board

Please confirm actual BT board Baud rate and firmware rev level
126  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: July 01, 2013, 03:32:08 pm
OK

Please check those 3 points:

1) Arduino sketch
Add
Code:
Serial.println("***");
as the last line of setup()
Please confirm the stars are displayed on the serial monitor

D0 should be disconnected to allow sketch upload
(and reconnected afterward  smiley-wink)
   

2) Hardware connection
please refer to message #4
Only 3 wires
5V to 5V
GND to GND
TX board to D0 (Arduino RX)


3)BT board Baud rate
Some BT boards default to 19200BPS
Please adjust "Serial.begin(9600)" and Serial Monitor Baud rate accordingly
Should you require it, I will upload an Arduino sketch for checking BT board Baud rate and/or setting a new value. This sketch also insure that the BT board is OK
127  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: July 01, 2013, 04:06:56 am
OK

Just install Version 2.3, and let me know the outcome.
You should now have a Menu button available for establishing connection.


Next step is to get your BT board connected. With a JY-MCU type, the on board LED should change from blinking to solid red
128  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: June 30, 2013, 04:52:51 am
I now realize that beginning with Android 3.0 (API level 11), Android-powered devices are no longer required to provide a dedicated Menu button  smiley-sad-blue

Joystick Bluetooth Commander Version 2.3 now adds full compatibility with Android 3.X  and 4.X
The menu that allows BT connection can be accessed though the added 'action overflow button' (red square)
some other devices have a different icon at bottom left

thanks for bringing this point to my attention, sorry for being GingerBread centric

The application has been tested and is fully operative on my son's 7" Samsung Galaxy tablet (jelly beans)
Thanks to Julian for his contribution  smiley-wink
129  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: June 29, 2013, 02:09:37 pm
Is it your model?


What happens when you launch Joystick Bluetooth Commander and press the button on the left ?

EDIT
Not sure this is the right one   smiley-slim
The option button is this one (red circle)

Can somebody jump in and explain how to access applications menu or options on the Galaxy Tab tablet ??
130  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: June 29, 2013, 11:32:48 am
Quote
The X and Y values on the tablet screen don't display the position of the joystick
Can you move the joystick ??
Are the data now displayed on the tablet screen ??


Quote
The menu is displayed when pressing the hardware menu button at the bottom of your tablet
Can you access it ??

You need to enter this menu to establish a Bluetooth communication

Please let me have more detailed information

I will post a new version including a "reset configuration" option
The initial configuration should work right out of the box with the above Arduino sketch
131  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: June 26, 2013, 05:02:14 am
@jeffmorris
I beleave you are facing two non related problems

 - Communication with your BT card (your task)
check pairing, Baud rate, connection to Arduino (Menu/Connect)
I use a JY-MCU rev1.05 board
Onboard LED should be flashing when powered and gets solid red when connected
Connect TX board to RX (D0) Arduino


Above Arduino sketch has been updated to V5 (removed SoftwareSerial)
For sketch upload, don't forget to disconnect board TX from Arduino D0


 - UI display on tablets (my task)
I will publish today on Google Play a new version insuring compatibility with tablets

Edit: Joystick Bluetooth Commander V2.2 is now available
Please make sure that application is configured as follow:
 - Data Range  -50 to +50
 - Data display   Joystick position
 - Data format STX and ETX
 - Refresh interval   100ms
 - Button1 data to send    '1'
 - Button2 data to send    '2'

132  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: June 24, 2013, 01:15:42 pm
Bluetooth applications are difficult to debug in Eclipse IDE, as Virtual Devices do not emulate Bluetooth activity
Actual debugging has to be made on a specific real device (Sony Xperia Mini)

Quote
I have Samsung Galaxy Tab 7" tablet
what is your tablet API level and display resolution ??

Quote
The X and Y values on the tablet screen don't display the position of the joystick

Make sure that options are as follow:
Data Range:   -50 to +50
Data display:    Joystick position
Data format:   STX and ETX

Are the buttons and the "not connected" string displayed on the tablet screen ??
Does the Joystick actually move when touched??
does it produce haptic feedback when this option is selected ??

Quote
nothing is displayed on the serial monitor
Your Bluetooth serial board may be still configured @9600BPS
please adjust  mySerial.begin(57600) to your specific Baud rate
Also make sure that your Bluetooth serial board is already paired with your tablet

finally uncomment
Code:
//        Serial.print(i);  Serial.print(": ");  Serial.println(cmd[i]);
   
and let me know the outcome

@all
My specific configuration is working flawlessly
Should you have installed this application on a different device, please post feedback
133  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: June 24, 2013, 03:39:56 am
I posted a pan/tilt project based on Joystick Bluetooth Commander, in the Robotic Section

134  Topics / Robotics / Bluetooth robotic dancer on: June 22, 2013, 02:43:38 pm
This basic pan & tilt robot is controlled via an Android smartphone, using a virtual joystick



The code on the Arduino side is rather straighforward
Tip: the SoftwareSerial and the servo libraries don't collaborate happily, I learnt it the hard way  smiley-confuse

More info re Joystick Bluetooth Commander application here

Enjoy
135  Using Arduino / Motors, Mechanics, and Power / Re: How to decrease the motor Speed without losing the maximum Torque on: June 22, 2013, 01:01:40 am
You need a PID loop for RPM control
Look here http://forum.arduino.cc/index.php?topic=8652.msg70286#msg70286

Quote
When mechanicaly loaded, the system will increase PWM in an attempt to maintain "actual speed" at "target speed" level.
This is the only way to run at low speed (20 RPM) while maintaining a high torque
Pages: 1 ... 7 8 [9] 10 11 ... 20