User Tools

Site Tools


ollobot_tutorial

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ollobot_tutorial [2016/12/21 16:13] acaterollobot_tutorial [2016/12/21 16:45] (current) acater
Line 1: Line 1:
-====== How To Control The Ollobot Via IFTTT And Sample Apps ======+====== How To Control The Ollobot Via IFTTT And Sample App ======
  
  
-**Author:** Alex Cater Email: [email protected] +**Author:** Alex Cater  
 +\\ 
 +**Email:** [email protected] 
 \\ \\
 **Date:** Last modified on 12/19/2016 **Date:** Last modified on 12/19/2016
Line 8: Line 10:
 **Keywords:** Ollobot Tutorial, IFTTT app, Ollobot Android sample app **Keywords:** Ollobot Tutorial, IFTTT app, Ollobot Android sample app
 \\ \\
-{{ :ollobot_front.png?200 |}}+{{ :ollobot_front.png?nolink&300 |}}
 \\ \\
 The photo above depicts the Ollobot as seen from the front.  The big picture problem is to learn how to control the Ollobot using the IFTTT app in conjunction with the Android sample app. Solving this partially or completely is important because it will bring the user a step closer to implementing their own actions and uses on the Ollobot. This tutorial shows you how to set up the Ollobot and the apps mentioned above and takes approximately one hour to complete.  The photo above depicts the Ollobot as seen from the front.  The big picture problem is to learn how to control the Ollobot using the IFTTT app in conjunction with the Android sample app. Solving this partially or completely is important because it will bring the user a step closer to implementing their own actions and uses on the Ollobot. This tutorial shows you how to set up the Ollobot and the apps mentioned above and takes approximately one hour to complete. 
Line 60: Line 62:
 \\ \\
 \\ \\
-{{:phone_stand.png?nolink&100 |}}{{ :battery_bluetooth_pack.png?nolink&100 |}}+{{:phone_stand.png?nolink |}}{{ :battery_bluetooth_pack.png?nolink|}}
 \\ \\
 First, there should be three main components given you.  There should be the battery pack and the Bluetooth adapter connected to each other as shown above in the second photo.  There should also be a phone stand as shown above in the first photo.  Lastly there should be the main device that these mount to. (a casing that contains the controller as well as the servos connected to each wheel)  It is very simple to connect these together as they just snap on. Snap the phone mount to the front (opposite of the power button) and snap the battery/Bluetooth to the back.  Make sure the Bluetooth device is on top. The Bluetooth device will connect directly to a port that is right next to the power button and the battery pack will have two connection cables that connect right behind the phone stand in the middle.  Refer to the pictures below. First, there should be three main components given you.  There should be the battery pack and the Bluetooth adapter connected to each other as shown above in the second photo.  There should also be a phone stand as shown above in the first photo.  Lastly there should be the main device that these mount to. (a casing that contains the controller as well as the servos connected to each wheel)  It is very simple to connect these together as they just snap on. Snap the phone mount to the front (opposite of the power button) and snap the battery/Bluetooth to the back.  Make sure the Bluetooth device is on top. The Bluetooth device will connect directly to a port that is right next to the power button and the battery pack will have two connection cables that connect right behind the phone stand in the middle.  Refer to the pictures below.
 \\ \\
 \\ \\
-{{:battery_bluetooth_mount.png?nolink&100|}}{{:battery_bluetooth_mount_side.png?nolink&100 |}} 
 \\ \\
 \\ \\
-{{:phone_stand_mount.png?nolink&100|}}+{{ :battery_bluetooth_mount.png?nolink&300 |}} 
 +\\ 
 +{{ :battery_bluetooth_mount_side.png?nolink&300 |}} 
 +\\ 
 +{{ :phone_stand_mount.png?nolink&300 |}}
 \\ \\
 **Step 2** **Step 2**
Line 86: Line 91:
 It will bring you to a google drive.  Double click on the file and select download. It will bring you to a google drive.  Double click on the file and select download.
 \\ \\
 +
 {{ :sampleapp.jpg?nolink&200 |}} {{ :sampleapp.jpg?nolink&200 |}}
 \\ \\
Line 101: Line 107:
 \\ \\
 Erase what is already in the notifications box and simply write in the commands above in order the commands are to be carried out. Separate each command with a comma. For my notification I wrote "OLLO, FW50,TR90,BW50,ST" which means the Ollobot will move forward 50 units, then turn right by 90 degrees, then move backwards 50 units and the go into standby mode. Click the 'create action' button and then click 'finish' to create your new applet.   Erase what is already in the notifications box and simply write in the commands above in order the commands are to be carried out. Separate each command with a comma. For my notification I wrote "OLLO, FW50,TR90,BW50,ST" which means the Ollobot will move forward 50 units, then turn right by 90 degrees, then move backwards 50 units and the go into standby mode. Click the 'create action' button and then click 'finish' to create your new applet.  
 +\\
 \\ \\
 Before we run our commands let's test it with the Sample app.  Using your computer search for "Maker" again on the IFTTT homepage and select it.  Click on settings for the Maker app. You should see a page like this: Before we run our commands let's test it with the Sample app.  Using your computer search for "Maker" again on the IFTTT homepage and select it.  Click on settings for the Maker app. You should see a page like this:
Line 106: Line 113:
 {{ :makersettings.png?nolink&300 |}} {{ :makersettings.png?nolink&300 |}}
 \\ \\
-==== Final Words ====+Copy and paste the URL given in another tab.  At the top is your key.  On the phone mounted to the Ollobot go into the Sample App.  At the top there will be a bluetooth icon. Press it and make sure you're connect to the Ollobot via bluetooth.  You can test your connection pressing the "LED on" and "LED off" buttons in the app.  The LED on the Ollobot should turn on or off accordingly if connected.  Then copy your key in the [IFTTT INFO>] section of the app right above the "test it" button.  Then right next to the "test it" button write the name of the applet you created and press the "test it" button.  If everything is done correctly a notification from the IFTTT app should pop up on your phone.  If not then test your connection again, make sure your key is typed in correctly or make your applet is turned on.   
 +\\ 
 +Now it is time to run the commands on the Ollobot.  Within the Sample App scroll down to the bottom and press "GO!!!". Then on your computer go to the tab that had your key posted.  This page will also be the page that you send the web request in and looks like the page in the picture below. Right under where it says "Make a POST or GET web request to:" type in the name of your applet event where it says "event". For me, I put "move" Then click "test it" If everything is done correctly the Ollobot should carry out each command in order.  Make sure your mounted phone is in "GO!!!" mode from the sample app before sending the web request.  
  
-This tutorial's objective was to <fill in the blank>. Complete <choose: construction details, source code and program descriptions> for <fill in the blank>. Once the concepts were conveyed the reader could <fill in the blank>. 
 \\ \\
 +{{ :keypage.png?nolink&300 |}}
 \\ \\
-Speculating future work derived from this tutorial, includes <fill in the blank>. In the big picture, the problem of <fill in the blank> can be solved with this tutorial.+==== Final Words ==== 
 + 
 +This is the barebones basics for sending commands to the Ollobot with the IFTTT and Sample app.  There are other applets within the IFTTT app that can be used with the Ollobot so feel free to explore and see what else can be used.
 \\ \\
 \\ \\
-For questions, clarifications, etc, Email: <paul.oh@unlv.edu+For questions, clarifications, etc, Email: cater@unlv.nevada.edu
ollobot_tutorial.txt · Last modified: 2016/12/21 16:45 by acater