Chat with robot through phone
This lecture will show you how you can chat with your robot, control it using simple commands, using your phone. You can choose from a variety of options to control the robot different kinds of parts, with a large command set.
Requirements
- An Android phone with version 5.0 (Lollipop) or above
- Integrated Bluetooth chip in your phone
- Lego Mindstorms EV3 Brick
- Ozeki 10 installed on your phone: Installing Ozeki 10 on your Android device
- EV3 Brick paired with your phone using Bluetooth: Bluetooth pairing on Android phones
- EV3 Brick connected to your phone: Connect the Lego robot to phone
Start Control Panel on your phone's browser
You can get the connection info after you start the service on your phone. You can click on the link then sign in with the given username and password. You can get more information about this process in Connect the Lego robot to phone lecture at Task #1. After you have succesfully signed in, choose the 'Control Panel' icon to access the different types of Lego connections.
Figure 1 - Choosing Control Panel
Click on the LED connection
On this list you can see your EV3 robot's different connections, you need to filter the connections, in order to see only the Lego connections, you can read more about that in Connect the Lego robot to phone lecture at Task #5. After you have done that, choose the LED connection from the list, as shown at Figure 2, there you will be able to access LED options.
Figure 2 - Selecting LED_1 to control LED
Send command to control the LED through Ozeki chat
In the LED details, if you scroll down a bit, there is a tab called chat, there you will be able to chat with your robot, send commands to it. You can write your message to the 'Type your message here' field then you need to click on the blue 'Send' button to send it, the process can be seen at Figure 3. You can query the full command set with a 'help' command, this will list all the available commands, also describing what they are used for. For example if you send an 'orange' command your robot's LED will change to orange, or you can change it to other colors too.
Figure 3 - Sending commands
The Brick Status Light command set
With the listed text commands you can control the LEGO LED effectively from Ozeki 10. The first 'Description' table contain all the commands to control the LED, the 'Command table' control all the basic commands that is gonna help you using this chat funcionality. These messages can be sent from e-mail, SMS or Snap codes, so you can choose from different options.
Command examples | Description |
---|---|
off | turn off the LED |
green | set LED color to green |
red | set LED color to red |
orange | set LED color to orange |
greenflash | set color to green and flash LED |
redflash | set color to red and flash LED |
orangeflash | set color to orange and flash LED |
greenpulse | set color to green and pulse LED |
redpulse | set color to red and pulse LED |
orangepulse | set color to orange and pulse LED |
Commands Table - These commands can controll the LED
Basic commands | Description |
---|---|
help | request the command set |
subscribe | subscribe to device messages |
unsubscribe | unsubscribe from device messages |
subscribers | shows the list of subscribers |
Basic commands Table - General commands for all devices
More information
- كيفية صنع تطبيق
- كيفية صنع GPC
- كيفية صنع ملف دائم
- كيفية إنشاء وعرض صورة رمز الاستجابة السريعة
- تثبيت Ozeki 10 على جهاز Android الخاص بك
- التحكم في الروبوت باستخدام الرسائل القصيرة SMS
- تنبيه خطأ الروبوت في الرسائل القصيرة SMS
- بناء GPC مخصص لتحسين واجهة المستخدم الرسومية (GUI)
- استكشاف الأخطاء وإصلاحها
- تعلم استخدام مستشعرات المتصفح
- نشر تطبيقك وكسب المال
- إقران Bluetooth
- استكشاف أخطاء Bluetooth لـ Lego Mindstorms EV3 وإصلاحها
- فتح Ozeki Snap بسهولة من خلال واجهة المستخدم الرسومية
- فتح الذراع عندما يكون الجسم قريبًا
- إقران Bluetooth على هواتف Android
- ربط روبوت Lego بالهاتف
- الدردشة مع الروبوت عبر الهاتف
- الدردشة مع الروبوت باستخدام الهاتف والكمبيوتر
- كيفية إنشاء تعليمات بناء روبوت Lego
- التخطيط والملاحة