e-puck2 mobile phone development: Difference between revisions

From GCtronic wiki
Jump to navigation Jump to search
Line 10: Line 10:


=Connecting to the BLE=
=Connecting to the BLE=
A minimal Android application was implemented as a starting point for further development.<br/> The built application can be downloaded from . This application lets you connect to the robot and once connected the phone receives the proximity sensors data and you can move the robot from the application.<br/>
A minimal Android application was implemented as a starting point for further development. The built application can be downloaded from .<br/>
This application lets you connect to the robot and once connected the phone receives the proximity sensors data and you can move the robot from the application.<br/>
Follow these steps to  
Follow these steps to  
Turn on the robot, it will start advertising as <code>E-PUCK2_BLESPP</code>.
Turn on the robot, it will start advertising as <code>E-PUCK2_BLESPP</code>.

Revision as of 12:04, 6 September 2018

e-puck2 main wiki

Robot configuration

For working with Bluetooth Low Energy, the main microcontroller and radio module must be programmed with dedicated firmwares (not the factory ones). Notice that the main microcontroller firmware is the same used with WiFi:

Put the selector in position 15.

Section Connecting to the BLE gives step by step instructions on how to accomplish your first BLE connection with the robot.

Connecting to the BLE

A minimal Android application was implemented as a starting point for further development. The built application can be downloaded from .
This application lets you connect to the robot and once connected the phone receives the proximity sensors data and you can move the robot from the application.
Follow these steps to Turn on the robot, it will start advertising as E-PUCK2_BLESPP.


Get the source code

The main microcontroller wifi firmware source code can be downloaded with the command:
git clone --recursive -b wifi https://github.com/e-puck2/e-puck2_main-processor.git

The radio module ble firmware source code can be downloaded with the command:
git clone --recursive -b ble_spp https://github.com/e-puck2/esp-idf.git esp-idf_ble

The Android application source code can be downloaded from the following link e-puck2_ble_monitor.zip. It's an Android Studio project.