Environmental Monitoring Rover - Powered by Intel Edison
by CJA3D in Circuits > Arduino
11648 Views, 239 Favorites, 0 Comments
Environmental Monitoring Rover - Powered by Intel Edison
![IMG_8999 copy 2.JPG](/proxy/?url=https://content.instructables.com/FXX/A7LT/IFWRN90C/FXXA7LTIFWRN90C.jpg&filename=IMG_8999 copy 2.JPG)
![Environmental Monitoring Rover - powered by the Intel Edison](/proxy/?url=https://content.instructables.com/FAE/5K4O/IFWRN74E/FAE5K4OIFWRN74E.jpg&filename=Environmental Monitoring Rover - powered by the Intel Edison)
![Screen Shot 2015-10-18 at 5.47.42 PM copy.png](/proxy/?url=https://content.instructables.com/FMP/TWCM/IFWRMF57/FMPTWCMIFWRMF57.png&filename=Screen Shot 2015-10-18 at 5.47.42 PM copy.png)
![56244a2315be4d3a9000090f.jpeg](/proxy/?url=https://content.instructables.com/FXV/WFER/IFWRMNG8/FXVWFERIFWRMNG8.jpg&filename=56244a2315be4d3a9000090f.jpeg)
![56244d4f45bceb47000008b6.jpeg](/proxy/?url=https://content.instructables.com/F6I/QX0N/IFWRMP93/F6IQX0NIFWRMP93.jpg&filename=56244d4f45bceb47000008b6.jpeg)
This is a instructable inspired by the Mars Curiosity Rover , I don't expect this rover to make it to Mars !! but you mimic it and implement some cool features using the Intel Edison. Having said that ,on mother Earth you can find industrial applications for this, to monitor hazardous condition.
Here are some features implemented using
- A modified toy truck, which will act as the rovers chassis
- Using a python-flask web app running on Intel Edison to control the Motors on the rover
- Using a web cam to stream video to the web app to check the rovers line of sight
- Add sensors to monitor the environment variable (click the Sensor button for real time sensor values)
- Temparature
- Gas sensor
- UV sensor
- Upload Sensor data to the Intel cloud analytics for future reference, by clicking the PostIoT button in the web app
Collecting Components Parts You'll Need
![IMG_8797.JPG](/proxy/?url=https://content.instructables.com/F2S/L0A8/IFO75MTR/F2SL0A8IFO75MTR.jpg&filename=IMG_8797.JPG)
Here are the components you'll need
Electronic components
- 9V battery (i am using a recharge-able 9v from banggood.com)
- 9V battery snaps
- UVC webcam(Logitech HD Webcam C270)
- Grove starter kit plus- basically from this kit I am using Base Shield v2 × 1
- and Grove – Temperature × 1 sensor
- In addition you will need Grove gas sensor MQ5
- and Grove - UV Sensor
- Jumper wire male-female and male to male
- Mini Solderless PCB Circuit Test Breadboard
- Rover kit , in my case I have modified a monster truck toy from Walmart which retails for about 20$
Tools and other material
- Zip ties
- Multimeter
- Wall mount DC12V ~1.5A to connect to the Edison during setup
- Mini USB cable to connect to the Edison
- 3D printer and Filament(this is optional but I would suggest at-least to print the Motor Driver STL file for easy mounting and wiring )
- machine screws(about 10 ) if you plan on printing the STL files attached in the steps below.
Selecting a Chasis for the Rover
![561d2f6c45bceb4c7100022a.jpeg](/proxy/?url=https://content.instructables.com/F5T/83UK/IFO75N4Z/F5T83UKIFO75N4Z.jpg&filename=561d2f6c45bceb4c7100022a.jpeg)
In my case, I am using the same toy monster truck as a chassis which I used on an older project.(the truck, retails for about 20$ at a superstores like Walmart etc). Here you can use any robotic chasis that would hold the Edison Arduino break out.
Remove the screws from the Monster truck and gently dis-assemble the parts.
Be careful and patient ! while getting the circuit board and the battery holder out to prevent it from damaging the battery holder.
Test the Motors and Solder Wire to the Battery Pack(Optional)
![561eec1e50e1b6395b00045b.jpeg](/proxy/?url=https://content.instructables.com/FWN/U9G3/IFR65V3L/FWNU9G3IFR65V3L.jpg&filename=561eec1e50e1b6395b00045b.jpeg)
![IMG_8380 copy.JPG](/proxy/?url=https://content.instructables.com/FLJ/Y1GI/IEX4VTC1/FLJY1GIIEX4VTC1.jpg&filename=IMG_8380 copy.JPG)
![IMG_8386.JPG](/proxy/?url=https://content.instructables.com/FOY/GBRO/IEX4VTE1/FOYGBROIEX4VTE1.jpg&filename=IMG_8386.JPG)
![5604b4b050e1b65fcd000178.jpeg](/proxy/?url=https://content.instructables.com/FUS/Z98L/IEX4VVHJ/FUSZ98LIEX4VVHJ.jpg&filename=5604b4b050e1b65fcd000178.jpeg)
Before you get to interesting bits below test to check if the DC motor are still functional , in my case I used a 4 AA battery holder to test both the motors as shown in the picture above.
Now desolder the circuit board using a soldering iron from the battery holder.
Once done add batteries to holder and do a quick voltage test using a multimeter as shown in the picture above, in my case the battery holder uses 5 AA batteries , which means a output voltage of about 8-8.5 Volts.
Solder some breadboarding wire to the two ends of the battery holder as shown in the picture above.
Note: This is an optional step, if you are using a rover kit of some kind,just ensure that the Intel Edison Arduino break out is mountable on the rover.
3D Print the STL to Hold Motor Driver to the Grove Shield (Optional)
![IMG_8820.JPG](/proxy/?url=https://content.instructables.com/FXY/5HUZ/IFO75R5M/FXY5HUZIFO75R5M.jpg&filename=IMG_8820.JPG)
![Screen Shot 2015-10-13 at 1.26.11 PM.png](/proxy/?url=https://content.instructables.com/F4H/ZD8K/IFOBJYKY/F4HZD8KIFOBJYKY.png&filename=Screen Shot 2015-10-13 at 1.26.11 PM.png)
![IMG_8806.JPG](/proxy/?url=https://content.instructables.com/FN3/J13T/IFO75RBA/FN3J13TIFO75RBA.jpg&filename=IMG_8806.JPG)
![IMG_8809.JPG](/proxy/?url=https://content.instructables.com/FP5/AJN6/IFO75R65/FP5AJN6IFO75R65.jpg&filename=IMG_8809.JPG)
Download the STL file attach and 3D print. It should take about 5-10 mins .This part attaches to the Grove Base Shield which is mounted on the Edison.
First using a zip tie, secure the Sparkfun motor driver to the 3D printed part.
Now connect the Grove Shield on the Intel Edison Arduino Base board.
Then screw the 3D printed part to the base shield as shown in the picture above with 4X40 machine screws.
Downloads
Preparing the Intel Edison - Flashing Yacto Linux Using Flash Tool Lite
![Screen Shot 2015-10-09 at 1.44.19 AM copy.png](/proxy/?url=https://content.instructables.com/FU6/M999/IFOBJZ6R/FU6M999IFOBJZ6R.png&filename=Screen Shot 2015-10-09 at 1.44.19 AM copy.png)
Now to prepare you Edison download the latest version of the Yacto linux image from the Intel website at
https://software.intel.com/en-us/iot/hardware/edis...
While writing this instructable, the Yacto release version is - edison-image-ww25.5-15.
As part of this install as shown in the picture above we are going to use Flash Tool Lite tool instead of the old command line method which include the command (reboot ota) was used in one of my older instructable(Getting Started with Intel Edison - Python Programming)
You can find the manual to use the Phone Flash lite tool at
https://software.intel.com/en-us/articles/flash-to...
Tip : We are using the Phone Flash lite to flash Yatco so that we can make use of the ~900MB of space in the root partition , this will be handy as we will be installing a lot of packages and can use the space to store picture taken by the webcam.
Configuring Intel Edison -WiFi and Password for SSH
![IMG_3763 copy.JPG](/proxy/?url=https://content.instructables.com/FJ1/D02Z/I5Z7MIX6/FJ1D02ZI5Z7MIX6.jpg&filename=IMG_3763 copy.JPG)
![Screen Shot 2015-10-09 at 1.54.15 AM.png](/proxy/?url=https://content.instructables.com/FO3/2NTR/IFOBJZI3/FO32NTRIFOBJZI3.png&filename=Screen Shot 2015-10-09 at 1.54.15 AM.png)
![Screen Shot 2015-10-09 at 1.54.52 AM.png](/proxy/?url=https://content.instructables.com/FCF/IOD6/IFOBJZOB/FCFIOD6IFOBJZOB.png&filename=Screen Shot 2015-10-09 at 1.54.52 AM.png)
![Screen Shot 2015-10-09 at 1.56.00 AM.png](/proxy/?url=https://content.instructables.com/FX8/I0HM/IFOBJZNP/FX8I0HMIFOBJZNP.png&filename=Screen Shot 2015-10-09 at 1.56.00 AM.png)
Connect the Edison Arduino breakout as shown in the picture
- basically connect the lower most USB port to the cable that will be connected to your computer. This is the Serial over USB port.
- And connect another micro USB cable to the port which is closer to the switch. In this scenario this port will be used to power up the Intel Edison and the expansion board.
Now on your Mac, open the Terminal App
To get into the Edison via the Serial port use the following command screen/dev/tty.usbserial-A
and then hit the Tab key, this will populate the complete device name then type 115200 –L(in my case screen /dev/tty.usbserial-A402IDIL 115200 –L)
The Intel Edison has an Wifi chip on-board,so take advantage of it! if you have have a WiFi router at home..
To configure the Wifi on the Edison, type in the following command
configure_edison --wifi
and hit the enter key It takes about 10 seconds for the Edison to scan for Wifi networks and list them as shown in the screen shot above. Type the number which matches with you WiFi router name , in my case "androidpod" is my network name which corresponds to 40 in the list
Type in your password, and once done make a note IP address and web url which in my case is http://edisonhub.local/. Bookmark the URL above as you will need this to know your IP address to SSH in.
To set a password for the Edison use
configure_edison --password
Once done using another terminal window, check if you are able to SSH in using
ssh root@ip-address-of-Edison
Now if you choose you can use ssh terminal or the screen terminal to setup the urls for the official packages repository for the Edison.
echo "src intel-iotdk http://iotdk.intel.com/repos/1.1/intelgalactic" > /etc/opkg/intel-iotdk.conf
opkg update
opkg upgrade
Now to complete the build you will also need the unofficial packages repository ,for this update the /etc/opkg/base-feeds.conf file, followed by the update command
vi /etc/opkg/base-feeds.conf
Then add the following line and !wq to save the file in vi editor
src/gz all http://repo.opkg.net/edison/repo/all src/gz edison http://repo.opkg.net/edison/repo/edison src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32
the run an update
opkg update
Note: Do not run "opkg upgrade" for the unofficial repo, this will unnecessarily eat up space in your root partition.
For more info refer to AlexT's blog at http://alextgalileo.altervista.org/edison-package-...
Wiring Up the Intel Edison to the Sparkfun Motor Driver
![IMG_8814.JPG](/proxy/?url=https://content.instructables.com/F8N/BI8L/IFOBJYR2/F8NBI8LIFOBJYR2.jpg&filename=IMG_8814.JPG)
![IMG_8816.JPG](/proxy/?url=https://content.instructables.com/FTZ/DC1R/IFOBJYSZ/FTZDC1RIFOBJYSZ.jpg&filename=IMG_8816.JPG)
![IMG_8818.JPG](/proxy/?url=https://content.instructables.com/FDZ/UEWJ/IFOBJYR0/FDZUEWJIFOBJYR0.jpg&filename=IMG_8818.JPG)
![IMG_8835.JPG](/proxy/?url=https://content.instructables.com/F34/8G2T/IFU6YY7Y/F348G2TIFU6YY7Y.jpg&filename=IMG_8835.JPG)
Now for the wiring first connect the signal half of Sparkfun motor driver(TB6612FNG break out which is dual H-Bridge) to the base shield as shown in the first picture , here are the connections
- STBY to pin 10 on the base shield which act as the Standby
To control back motor of the truck
- PWMA to pin 3 - this is a PWM pin to control the speed of the motor
- AIN1 to pin 9
- AIN2 to pin 8 - both these pins decide the direction the back wheels will spin.
To control the front motor which provides direction to the truck
- PWMB to pin 5
- BIN1 to pin11
- BIN2 to pin 12
Now insert/mount the board on your rover and complete the other side of the connections, that is
- A01 to one terminal of the back motor as shown in the second picture above
- A02 to the other terminal
- B01 to one terminal of the front motor
- B02 to the other terminal
Then to Power up the motor
- Connect VCC to the battery +ve
- and GND which to the GND of the battery back , here is where I use the Mini bread board to make a common ground connection to the Grove base shield
Tip: This is a pretty expensive piece of hardware so a suggestion here would be to use, zip ties to secure the board to the base. And also use electrical tape where ever necessary to prevent short circuits..
Testing Motors a Basic Test With the Python Code
![Testing Motors using Python on the Intel Edison and Sparkfun Motor Driver](/proxy/?url=https://content.instructables.com/FYJ/3LQB/IFWRMD7E/FYJ3LQBIFWRMD7E.jpg&filename=Testing Motors using Python on the Intel Edison and Sparkfun Motor Driver)
Now it time to test you rover/tuck motor and decide the direction the wheels are spinning.
Place you rover up side down and power it up using the 9V battery.
Download the code attached and upload the code to the Edison using a FTP tools like FileZilla/Winscp
And then run the following
Downloads
Installing Packages for the Flask Web App
![Screen Shot 2015-10-08 at 7.55.45 PM.png](/proxy/?url=https://content.instructables.com/F53/2673/IFPQQEK2/F532673IFPQQEK2.png&filename=Screen Shot 2015-10-08 at 7.55.45 PM.png)
To install flask for the web app we will use pip to install it, which means that we will have to install the python pip package first, use the following command once you have ssh'ed into the edison.
opkg install python-pip
Now that pip is successful installed as shown in the screenshot above install flask
pip install flask
Tip: I prefer using vi editor, but if you new to Linux or like prefer the nano editor over Vi, which will make it easier to edit file, if you have to, using the following command to install nano
opkg install nano
Testing the Flask Install
![Screen Shot 2015-10-09 at 2.01.42 AM.png](/proxy/?url=https://content.instructables.com/FEP/IFBQ/IFPQQFIZ/FEPIFBQIFPQQFIZ.png&filename=Screen Shot 2015-10-09 at 2.01.42 AM.png)
![Screen Shot 2015-10-09 at 2.04.22 AM.png](/proxy/?url=https://content.instructables.com/F89/7K4A/IFPQQITA/F897K4AIFPQQITA.png&filename=Screen Shot 2015-10-09 at 2.04.22 AM.png)
Using an editor(vi/nano) of your choice create a file and add the python code for a simple flask app, this will test if our flask installation was successful.
nano helloflask.py
Add the following lines of code
from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello Intel Edison!" if __name__ == "__main__": app.run(host='0.0.0.0', port=800, debug=True)
Save the file using ctrl+X
and then at run the python file
python helloflask.py
Now test the app using you browser ,using the ipaddress of the Edison, as shown in the second picture above.
http://ip-address-of-Edison:800
Note: if you have forgotten/not made note of your ip address use the following command
ifconfig
Testing the Rover Using Flask Web App
![Screen Shot 2015-10-16 at 4.59.38 PM.png](/proxy/?url=https://content.instructables.com/FS8/9ZXH/IFVC6U3O/FS89ZXHIFVC6U3O.png&filename=Screen Shot 2015-10-16 at 4.59.38 PM.png)
![Testing Python-flask controller App on the Intel Edison](/proxy/?url=https://content.instructables.com/F6H/JWDE/IFWRMECO/F6HJWDEIFWRMECO.jpg&filename=Testing Python-flask controller App on the Intel Edison)
![Screenshot_2015-10-18-22-11-11.png](/proxy/?url=https://content.instructables.com/FG3/IWSS/IFWRMSK8/FG3IWSSIFWRMSK8.png&filename=Screenshot_2015-10-18-22-11-11.png)
![IMG_8829.JPG](/proxy/?url=https://content.instructables.com/FMU/WLEJ/IFU6YY7W/FMUWLEJIFU6YY7W.jpg&filename=IMG_8829.JPG)
![Screen Shot 2015-10-16 at 4.40.06 PM.png](/proxy/?url=https://content.instructables.com/FJI/EPAB/IFVC6U3P/FJIEPABIFVC6U3P.png&filename=Screen Shot 2015-10-16 at 4.40.06 PM.png)
At this point shutdown the intel Edison using and get it off the wall adapter and power it up using 9v battery.
shutdown -h now
Download the zip file attached and upload it to the Intel Edison using an FTP tool like filezilla.
SSH into the Edison and navigate to the basicflaskController folder and then run the command
cd basicflaskController
python flaskController.py
Now use your smartphone/table to bring up the app using your Edison IP address followed by the port :800, which in my case is
http://192.168.0.24:800
Congratulations !! on getting this far, you can now use the web app to control the Truck/rover as shown in the Video above
Downloads
3D Print the Part to Hold the Webcam and Mount It Using Zip Ties(Optional)
![56219a494fbadec043000f9e.jpeg](/proxy/?url=https://content.instructables.com/FHT/7MRK/IFU6YZAO/FHT7MRKIFU6YZAO.jpg&filename=56219a494fbadec043000f9e.jpeg)
![IMG_8840.JPG](/proxy/?url=https://content.instructables.com/FK0/FIFX/IFU6YY65/FK0FIFXIFU6YY65.jpg&filename=IMG_8840.JPG)
![IMG_8843.JPG](/proxy/?url=https://content.instructables.com/F0C/KPZG/IFU6YY64/F0CKPZGIFU6YY64.jpg&filename=IMG_8843.JPG)
![IMG_8845.JPG](/proxy/?url=https://content.instructables.com/FYD/1TPZ/IFU6YY4D/FYD1TPZIFU6YY4D.jpg&filename=IMG_8845.JPG)
Now to add a line to sight to the rover we are going to add a UVC webcam to the USB port of your Edison.
3D printing the parts is optional here, if you can find other alternatives to secure the webcam to the rover.
If you plan to 3D print and have the same web camera, that is the Logitech HD Webcam C270, download the STL file and slice it and 3D print it. Based on your setting 3D printing should take about 15-20 mins.
Now snap the 3D printed part on the camera and using Zip ties secure it to the top of the rover.
Finally add the USB to the USB port of the Edison as show in the picture above.
Downloads
Installing Packages You Need to Run the Webcam
![5622e50445bceb470000018f.jpeg](/proxy/?url=https://content.instructables.com/F7X/H4GB/IFVC70SZ/F7XH4GBIFVC70SZ.jpg&filename=5622e50445bceb470000018f.jpeg)
![Screen Shot 2015-10-08 at 9.46.49 PM.png](/proxy/?url=https://content.instructables.com/FLJ/SV0N/IFPQQFGD/FLJSV0NIFPQQFGD.png&filename=Screen Shot 2015-10-08 at 9.46.49 PM.png)
![Screen Shot 2015-10-09 at 2.10.43 AM.png](/proxy/?url=https://content.instructables.com/FMN/H518/IFPQQFQ1/FMNH518IFPQQFQ1.png&filename=Screen Shot 2015-10-09 at 2.10.43 AM.png)
![Screen Shot 2015-10-09 at 2.23.13 AM.png](/proxy/?url=https://content.instructables.com/FGL/H8N5/IFPQQJ66/FGLH8N5IFPQQJ66.png&filename=Screen Shot 2015-10-09 at 2.23.13 AM.png)
Now to use the webcam connected to the USB port, you will need the following modules/packages to be installed on the Edison.
Before you install the kernel modules, you will need to backup , increase and restore the boot partition, or you will run into the error as shown in first screen shot above.
Use the following command to back-increase and restore the boot partition, as shown in the second screen shot
mkdir /home/root/boot-backup cp -rp /boot/* /home/root/boot-backup/ umount /boot mkfs.vfat -v -nboot -F16 /dev/mmcblk0p7 mount /boot cp -rp /home/root/boot-backup/* /boot rm -r /home/root/boot-backup
Now you good to go and install kernel modules , which will extend the kernel for USB devices
opkg install kernel-modules
Now type the following command to validate if your web cam is detected,
lsusb
in my case it shows up as "Logitech Inc, webcam C270 "
Note: Here see that you flip the switch near the USB connector toward the power input if your camera does not show up.
Testing the Streaming From the Web Cam
![Screen Shot 2015-10-18 at 12.24.32 PM.png](/proxy/?url=https://content.instructables.com/FQ1/APOB/IFVC9TLX/FQ1APOBIFVC9TLX.png&filename=Screen Shot 2015-10-18 at 12.24.32 PM.png)
Now to the fun part, streaming from the Intel Edison WebCam!!
For this you will need to install the mjpg_streamer package
opkg install mjpg-streamer
And then use the following command to test the stream
mjpg_streamer -i "input_uvc.so -y -n -f 30 -r 640x480" -o "output_http.so -p 8080 -n -w /www”
And then got to you browser on your laptop and type the following, and use should be able to see yourself on in the browser as shown in the picture above.
http://IPAddress-of-Edison:8080
which in my case is http://192.168.0.24:8080/?action=stream, if you just want to see the live stream.
Tip: If you plan on taking picture/selfies with the Edison using your web cam, install fswebcam
opkg install fswebcam
And then to take picture use
fswebcam testPicture.png
Selecting the Grove Sensors to Add
![IMG_8851.JPG](/proxy/?url=https://content.instructables.com/FWV/CA09/IFVC7ATV/FWVCA09IFVC7ATV.jpg&filename=IMG_8851.JPG)
Now to get to the environmental monitoring part, choose your sensors, here I choose the following sensors
Grove – Temperature × 1 sensor
Since I am using python-flask , I have converted the Arduino Library into the equivalent python library, which you can find in the next step.
3D Print the Holder to Mount the Grove Sensor
![IMG_8853.JPG](/proxy/?url=https://content.instructables.com/F2I/WAAV/IFVC7AXJ/F2IWAAVIFVC7AXJ.jpg&filename=IMG_8853.JPG)
![IMG_8855.JPG](/proxy/?url=https://content.instructables.com/FAD/H3MU/IFVC7B0K/FADH3MUIFVC7B0K.jpg&filename=IMG_8855.JPG)
![IMG_8856.JPG](/proxy/?url=https://content.instructables.com/FKO/ZQWN/IFVC7B2K/FKOZQWNIFVC7B2K.jpg&filename=IMG_8856.JPG)
![IMG_8869.JPG](/proxy/?url=https://content.instructables.com/F93/U323/IFVC7PSQ/F93U323IFVC7PSQ.jpg&filename=IMG_8869.JPG)
3D print the STL file attached. Here I have attached 2 STL files which should take about 10-15 mins to print base on the one you select
#1 - Sensor Holder V2- this is ideal if you are planing on select in the same set of sensor, and already has mounting holes
#2 - Basic Sensor Holder - this is a simpler version so that you can drill holes after 3D printing and mount the sensors of your choice.
Screw the sensor to the 3D printed base and using zip ties attach them to your rover.
Testing the Grove Sensors
![5622fbaa4936d45f900002dc.jpeg](/proxy/?url=https://content.instructables.com/FC1/6I4B/IFVC7PQG/FC16I4BIFVC7PQG.jpg&filename=5622fbaa4936d45f900002dc.jpeg)
Connect the sensors to the base shield
- Gas sensor MQ5 to A0
- Temperature to A1
- and UV Sensor to A2
If you prefer to test each of the sensor individually download the zip file attached and upload it to your Edison to test each sensor.
For example to get the temperature printed to the terminal use
python TemperatureSensorValues.py
Downloads
Using Intel IoT Cloud Analytics to Send Sensor Data
![Screen Shot 2015-10-17 at 11.12.11 PM.png](/proxy/?url=https://content.instructables.com/FPE/RSKX/IFVC7UOC/FPERSKXIFVC7UOC.png&filename=Screen Shot 2015-10-17 at 11.12.11 PM.png)
![5623fc702e7fb6d7df000031.jpeg](/proxy/?url=https://content.instructables.com/FBP/E6LK/IFWRLUIP/FBPE6LKIFWRLUIP.jpg&filename=5623fc702e7fb6d7df000031.jpeg)
![Screen Shot 2015-10-18 at 5.47.42 PM copy.png](/proxy/?url=https://content.instructables.com/FVE/LZOZ/IFWRMA4G/FVELZOZIFWRMA4G.png&filename=Screen Shot 2015-10-18 at 5.47.42 PM copy.png)
![Screen Shot 2015-10-17 at 11.42.10 PM.png](/proxy/?url=https://content.instructables.com/F2H/0J9H/IFVC7ZTQ/F2H0J9HIFVC7ZTQ.png&filename=Screen Shot 2015-10-17 at 11.42.10 PM.png)
![Screen Shot 2015-10-14 at 7.58.59 PM.png](/proxy/?url=https://content.instructables.com/FXY/4SE7/IFR65UHR/FXY4SE7IFR65UHR.png&filename=Screen Shot 2015-10-14 at 7.58.59 PM.png)
To take advantage for the Intel IoT Cloud Analytics, follow the steps to setup and test uploading sensor data to the cloud.
Follow the link below for a overview and setup steps
https://software.intel.com/en-us/intel-iot-platfor...
In our scenario, we need to setup two new sensor instance for the UV index sensor and Gas Sensor once you have setup your login at
https://dashboard.us.enableiot.com/ui/auth#/login
Basically the temperature is setup by default at My Account -> Catalog at the web site above.
Got to My Account -> Catalog and click on Add Catalog Item button, and add the following values, as shown in the first screen shot above
Add the following catalog item
- Component name = UVIndex
- Type = Sensor
- Data Type = Number
- Unit of Measure = mV
- Format = Float
- Display = Time Series
And on the same line add values from Gas Sensor
- Component name = GasDensity
- Type = Sensor Data
- Type = Number
- Unit of Measure = mV
- Format = Float
- Display = Time Series
And then SSH into your Edison and follow the link above to check date,testing network connectivity,changeing the device Id and activating the Intel Edison.
Now register the UV index and Gas Sensor
iotkit-admin register uvindex uvindex.v1.0
iotkit-admin register gasdensity gasdensity.v1.0
And to list the catalog item use the following command as shown in the screenshot above
iotkit-admin catalog
Now to test posting values to the Intel Cloud use
iotkit-admin observation uvindex 60
iotkit-admin observation temp 21
And once you post a couple of values you should be able to setup a graph in the My Charts section on the intel IoT website as shown in the 3rd screen shot above.
3D Print the Fake Solar Panels (optional)
![IMG_8874.JPG](/proxy/?url=https://content.instructables.com/FE7/8PQ6/IFWRLRQN/FE78PQ6IFWRLRQN.jpg&filename=IMG_8874.JPG)
![IMG_8877.JPG](/proxy/?url=https://content.instructables.com/F4S/W607/IFWRLRRA/F4SW607IFWRLRRA.jpg&filename=IMG_8877.JPG)
![IMG_8882.JPG](/proxy/?url=https://content.instructables.com/F84/RND2/IFWRLRRV/F84RND2IFWRLRRV.jpg&filename=IMG_8882.JPG)
Now to add looks! to your rover,3D print the fake solar panels STL file attached.3D the STL file should take about 10-15 mins based on your printer setting.
Then use a white paint pen to mark the groves in the 3D printed parts.
And then zip tie the 3D printed parts to the rover.
Downloads
Download the Code for the Monitoring App
![IMG_9033.JPG](/proxy/?url=https://content.instructables.com/FIB/U3RH/IFWRM572/FIBU3RHIFWRM572.jpg&filename=IMG_9033.JPG)
![Screen Shot 2015-10-18 at 6.55.59 PM.png](/proxy/?url=https://content.instructables.com/FBX/DRX4/IFWRM7XZ/FBXDRX4IFWRM7XZ.png&filename=Screen Shot 2015-10-18 at 6.55.59 PM.png)
![IMG_8953.JPG](/proxy/?url=https://content.instructables.com/FQK/TR1E/IFWRM0JG/FQKTR1EIFWRM0JG.jpg&filename=IMG_8953.JPG)
![56244db745bcebf1d90002f5.jpeg](/proxy/?url=https://content.instructables.com/FPY/7OLK/IFWRMPNY/FPY7OLKIFWRMPNY.jpg&filename=56244db745bcebf1d90002f5.jpeg)
Download the flask web app attached and upload it to the Edison using a FTP tool like filezilla.
SSH into the Edison and run the flaskcontroller.py file
python flaskController.py
This will start the flask web app, you are now ready to open the web app on your tablet/mobile web browser
http://IPAddressfEdison:800
Congratulation !! you are done and now ready to drive your rover around using the controller web app and take temperature,Gas density and UV index readings at real time by clicking the Sensor button, and also post the values to Intel's IoT Analytic cloud, for a graphical view as shown in the screen shot above ..
Github link for the latest revisions to the code.
Downloads
Rovers Future Enhancement
![562449594936d45f90000961.jpeg](/proxy/?url=https://content.instructables.com/FG8/COJL/IFWRMNUP/FG8COJLIFWRMNUP.jpg&filename=562449594936d45f90000961.jpeg)
Here are some planned few future enhancements for the rover
- Reduce the form factor using Intel Edison blocks from Sparkfun
- Add some more interesting sensors like the Air Quality sensor
- Add GPS to track the routes taken by the rover
- And improve on the code, use openCV for spot detection(~something similar to face detection) as part of the flask app instead of mjpg-streams.
- Power up the rover and Intel Edison with real solar panels , suggested by instructable members @GuthrieM1 and @VIVEK PRAKASHT
Please leave a comment below if you come up with some interesting suggestion..