Robo-CIRCLE3S_BluetoothApp_E

Page 1

Robo-CIRCLE3S with Bluetooth control by Android smartphone  1

Robo-CIRCLE3S with Bluetooth control by Android smartphone

1. Part list 1.1 The Robo-CIRLCE3S robot built ready 1.2 BlueStick module 1.3 UCON-200 cable 1.4 Android smartphone that supports bluetooth features 1.5 4 of IDC-1FF wires (for setting the bluetooth pairing) The component item 1.1 to 1.3 and 1.5 are included in the Robo-CIRCLE3S Bluetooth kit. Only item 1.2 and 1.5 are included in the BlueStick Extension kit.


2  Robo-CIRCLE3S with Bluetooth control by Android smartphone

2. BlueStick installtion for Robo-CIRCLE3S Usually before using the BlueStick module, its configuration should be set and the device name for supporting the Bluetooth pairing with Android phone is a lot easier. This procedure will be explained later. For users who purchase the Robo-CIRCLE3S Bluetooth kit and the BlueStick Extension kit; manufacturers have already set the default configuration. User can use it immediately. Implemented the BlueStick with a Robo-CIRCLE3S robot is very easy, just plug the module into the Bluetooth socket on the i-BOX3S controller board of the Robo-CIRCLE3S robot.

BlueStick module technical brief It is a Bluetooth Serial Port Profile (SPP) device for wireless serial data communications via the bluetooth radio system. It is a low cost, compact and easy to use module. features 

Sensitivity -80dBm. Maximum power transmission +4dBm

Compatible with Bluetooth V2.0. Data transfer rate is 3Mbit per sesond

Operating frequency 2.4GHz. Opearted in SPP device class and slave mode only

Range 10 metres.

Baudrate programmable; 1200 to 382400 bps. Default is 9600

4-digit Programmable paring code. Default code is 1234.

Operating supply voltage +3.3 to +5.5V with on-board regulator

Includes UART device and Built-in antenna

Size 1.5cm. x 4.0cm.

These are 4 pins connection as follows : +Vcc : Power supply +3.3V to +5.5V GND : Ground TxD : UART data output RxD : UART data input


Robo-CIRCLE3S with Bluetooth control by Android smartphone  3

3. Example code for Robo-CIRCLE3S (3.1) Open the LogoBlocks software. Create the block code following the figure 1. (3.2) Download the example code from the figure 1 to the Robo-CIRCLE3S by using the UCON-200 cable. Then turn-off the robot and unplug the UCON-200 cable.

Code description The program will prompt to be sent from the smartphone via the wireless Bluetooth serial port. In this example uses the Android mobile phone applications. The program will get data to compare with the condition. The condition data consist of 56, 50, 52 and 54 (in decimal). They are ASCII value of the key number 8, 2, 4 and 6. They are compliant with the arrow keys. Includes Up arrow (number 8), Down arrow (number 2), Left arrow (number 4) and the Right arrow (number 6). User can control the Robo-CIRCLE3S’s movement with wireless control via bluetooth. The robot moves forward, backward, turn left and turn right following the controlling from Androidphone. Finally, the robot will stop if the condition is not true. It means the received data is not equal the condition data.

Figure 1 : The example block code of Robo-CIRCLE3S bluetooth control application


4ď€ ď Ź Robo-CIRCLE3S with Bluetooth control by Android smartphone

4. Install the BlueStickControl App for the Android device The example Android application of this application is called BlueStickControl. Download the installation file ; BlueStickControl120214.apk from www.inex.co.th or get from the CD-ROM that bundled with the Robo-CIRCLE3S Bluetooth kit or the BlueStick Extension kit. The installation step are : (4.1) Select the Settings icon. (user interface of each appliation or command of the Android phone in each model or brand may differ from the model to model)

(4.2) Click on the Applications to set operation parameters.


Robo-CIRCLE3S with Bluetooth control by Android smartphone  5

(4.3) Click to choose the Unknow Sources Allow installation of non-Market application for allow any application that not from Android market or Google plus could be install into this device

(4.4) Install the BlueStick Control.apk file into the Android device. See the application installation guide of each Android phone. (4.5) After the installation is completed; the icon of BlueStick Control is appeared following the mobile screen below. Click on this application icon to run it.


6ď€ ď Ź Robo-CIRCLE3S with Bluetooth control by Android smartphone

5. How to use the BlueStick control application (5.1)Turn-on power of the Robo-CIRCLE3S that plug the BlueStick module already. LED status of the BlueStick module is blinked. (5.2) At the Androidphone side, enter to the setting menu to turn on the Bluetooth communication. (5.3) Run the BlueStick Control application. Touch at the start button at the bottom right corner.

Touch this button

(5.4) The Pairing device menu will be appear. Touch on the Scan button to find the bluetooth device in range. For the BlueStick at the Robo-CIRCLE3E name is RoboCircle3S. Choose this device for pairing. Put the pairing code : 1234.


Robo-CIRCLE3S with Bluetooth control by Android smartphone  7

(5.5) After the pairing success, at the Androidphone shows the message ; Connected to RoboCircle3S.

(5.6) LED status at BlueStick module is on no blink. It means the pairing successful. (5.7) Press the RUN switch on the Robo-CIRCLE3S. The “RUN” green LED of the RoboCIRCLE3S controller board is on. Now the robot ready for bluetooth control from the Androidphone. (5.8) Set the orientation to vertical. All 4 arrows present the robot moving direction. Up arrow : Drive the robot forward. Down arrow : Drive the robot backward. Left arrow : Spin left the robot Right arrow : Spin right the robot.. You can use all arrow buttons to control the robot movement.


8  Robo-CIRCLE3S with Bluetooth control by Android smartphone

6. Tilt control mode It is known that the modern Android device equipped with the accelerometer sensor. It can detect the tilt of an Android device. The BlueStick Control application can also used this feature to control the robot movement. User only tilt the Android device with suitable direction. The robot will move following their control. With this mode does not require the touch screen control. Mode setlection is very easy. Touch the wordings “BUTTON MODE”. The current is Button mode will be changed to Tilt Mode.

Set the Android device orientation to horizontal. It is opposite orientation of the Button mode. Tilt the device down. The Up arrow is appeared : The robot moves forward Tilt the device up (tilt to user’s body). The Down arrow is appeared : The robot moves backward. Tilt left the device. The Left arrow is appeared : The robot spin left. Tilt right the device. The Right arrow is appeared : The robot spin right.


Robo-CIRCLE3S with Bluetooth control by Android smartphone  9

7. How to set the BlueStick configuration by using the i-BOX3S Typically, the BlueStick module that comes with the Robo-CIRCLE3S BlueStick Extension kit or Bluetooth kit is set to work already. User can use immediately. If user would like to use many BlueStick and Robo-CIRCLE3S. They must change the name of BlueStick module to separate the pairing. The steps are as follows. (7.1) Copy file ; BlueStickConfigure_Mini.exe to your hard disk. It is the configuration software for BlueStick module. (7.2) Connect the BlueStick module with the i-BOX3S controller board by using the IDC-1FF cable 4 wires. Ensure the connection following the picture below.

(7.3) Connect the UCON-200 cable to interface the i-BOX3S with USB port of the computer. (7.4) Turn on power. Observe the LED status on the BlueStick module. It is blinked.


10  Robo-CIRCLE3S with Bluetooth control by Android smartphone

(7.5) Run the BlueStick Configure (mini) software by double click at the BlueStick Configure_Mini.exe file.

(7.6) Click on the Auto Search button to search the BlueStick module. If found, the background color is green and shows message Found Hardware on COMx (x is number of COM port that connected with BlueStick module) and the Received box shows the OK message.


Robo-CIRCLE3S with Bluetooth control by Android smartphone  11

(7.7) Check the version of BlueStick module. Press and hold the RESET switch on the i-BOX3S. Click on the Check Version button of the software. The background color is changed to grey in a moment. After that, change to green color in finally and shows message Found BlueStick on COMx . At the Received box; shows name and version number of this BlueStick module.

(7.8) Change the BlueStick name. Type the new name into Set Name box. Only English letter and 16 characters maximum. Then, press and holed the RESET switch of the iBOX3S. Click on the Set Name button. The background color is changed to grey in a moment. After that, change to green color in finally and shows message OK and setname command.


12ď€ ď Ź Robo-CIRCLE3S with Bluetooth control by Android smartphone

(7.9) Set the new pairing code. It is only 4 digit number. Set the new code into the Set PIN Code box. Suggest to use 0000 or 1234 for easy remember. Then, press and holed the RESET switch of the i-BOX3S. Click on the Set PIN Code button. The background color is changed to grey in a moment. After that, change to green color in finally and shows message OK and setPIN command.

(7.10) Turn-off power the i-BOX3S controller board, remove all IDC-1FF cables and unplug the UCON-200 cable from the controller board. (7.11) Plug the BlueStick module into the Bluetooth socket on the i-BOX3S controller board. Now the BlueStick module ready to work with the i-BOX3S controller board and the Robo-CIRCLE3S robot.

INNOVATIVE EXPERIMENT


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.