Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

IoT Getting Started with Intel® IoT Devkit

5,018 views

Published on

Intel®Edison
Intel® IoTDeveloper Kit Overview
HW components
Arduino* andLinux native programming
Intel® IoTCloud Analytics

Published in: Technology
  • How can I improve my memory and concentration? How can I improve my memory for studying? https://bit.ly/2GEWG9T
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD FULL BOOKS, INTO AVAILABLE FORMAT ......................................................................................................................... ......................................................................................................................... ,DOWNLOAD FULL. PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ,DOWNLOAD FULL. EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ,DOWNLOAD FULL. doc Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ,DOWNLOAD FULL. PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ,DOWNLOAD FULL. EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ,DOWNLOAD FULL. doc Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

IoT Getting Started with Intel® IoT Devkit

  1. 1. Getting Started with Intel® IoT Devkit Dr. Matthias Hahn Moscow Hackathon November 22-23 2014
  2. 2. Agenda Intel®Edison Intel® IoTDeveloper Kit Overview HW components Arduino* andLinux native programming Intel® IoTCloud Analytics * Other names and brands may be claimed as the property of others.
  3. 3. Intel® IoT Developer Kit Overview
  4. 4. ImportantIngredients Development •IDEs Target Images •libmraa: IO abstraction •UPM: sensorrepo •iotkit-agent Cloud •Intel® IoTAnalytics Hardware •Intel® Galileo orIntel® Edison •Grove Sensor Kit
  5. 5. Arduino* Visual Programming Node.JS C / C++ Target Audience Maker Beginner Intermediate Advanced IDE Arduino* IDE Intel® XDK Eclipse* IDE Supporting you Win/ Mac/ Linux Wyliodrin* Win/ Mac/ Linux Win/ Mac / Linux Browser platform
  6. 6. Intel® Galileo Gen 1 & 2 Board Intel® Edison Arduino Development Board Yocto* based Linux OS image API Bindings C/C++, Node JS, Python UPM (Sensor/Actuator library repository) LibMraa NodeJSsupport C/C++ Tool Chains Wyliodrin* agent Hard Ware Target SW Intel® XDK IoTEdition Eclipse* IDE Wyliodrin* (Visual Programming) IDE Arduino* IDE IoTDeveloping Sensors / Actuators * Other names and brands may be claimed as the property of others.
  7. 7. Boards
  8. 8. Intel® Galileo Development Board –Gen 2 Board I/O: Mechanically compatible with Arduino* Uno* 20 digital input/output pins including 6 pins as PWM outputs 6 analog inputs 2 UART (RX/TX) 1 I2C 1 ICSP 6-pin header (SPI) USB device connector (Host) Micro USB device connector (client) SD Card connector DC power jack (7V –15V DC input) * Other names and brands may be claimed as the property of others.
  9. 9. Intel® Edison -Mechanical Layout Top Side Bottom Side 4 GBeMMC Intel® SoC/ 1GB LPDDR3 WiFi/ BT PMIC USBULPI 70 pin connector antenna Extern Coax 35.5 mm 25mm
  10. 10. Intel® Edison Board •2 Intel® Atom™ cores @ 500 MHz •1 Intel® Quark™ MCU @ 100 MHz •35.5 ×25.0 ×3.9 mm •1 GB RAM (LPDDR3, 2ch @ 800 MT/s) •4 GB eMMC •WiFi(a/b/g/n) +BT 4.0 + antenna •40 GPIOs: UART, I2C, SPI, I2S, PWM, USB 2.0, SD card, clock out, GPIO Software •Default OS: Yocto* 1.6 Linux* •Rightnow3.10.17 kernel •OTA upgradable •libmraa: GPIO abstractionlayer •UPM repository: sensorlibraries * Other names and brands may be claimed as the property of others.
  11. 11. Caveats–Intel® Edison •Not latestlibmraa/ UPM? •Rootfs •Partition toosmall? •Partition empty? •Wireless •interfacesnot available? •xyznot supported? •LE not supported?
  12. 12. Expansion Boards Partner Expansion Boards Intel Expansion Boards Built to Order Expansion Boards
  13. 13. Extension Boards Intel® Edison •70 pinconnector •HiroseDF40 Series •Easy tobuildyourownboard Intel currentlyoffers2 boards •BreakoutBoard •Arduino* expansionboard * Other names and brands may be claimed as the property of others.
  14. 14. Intel® Edison –Arduino* Expansion Board •Arduino* Uno compatibility (except 4 rather 6 PWM) •20 digital GPIO (incl4 PWM) •6 analog inputs •1 UART (RX/TX) •1 I2C •1 ICSP 6-pin header (SPI) •switchable: Micro USB device | USB host •Micro USB device (UART) •Mini SD Card connector •DC power jack (7V –15V DC input) * Other names and brands may be claimed as the property of others.
  15. 15. Intel® Edison BreakoutBoard •I/O: array of through-hole solder points •USB OTG with USB Micro (AB) •Battery charger •USB micro (B) [UART] •DC power supply jack (7 to 15 VDC)
  16. 16. Partner Expansion BoardsExpl: Sparkfun* Boards * Other names and brands may be claimed as the property of others.
  17. 17. Grove* Starter Kit Intel® IoT version
  18. 18. Grove* Starter Kit Plus -Intel® IoTVersion 1 Base Shield v2 2 Grove -Buzzer V1.1 3 Grove –Button 4 Grove-LED v1.3 5 Grove -Sound Sensor_V1.2 6 Grove -Rotary Angle Sensor 7 Grove-Touch Sensor 8 Grove -Smart Relay 9 Grove-Light Sensor 10 Grove -Temperature Sensor_V1.1 11 26AWG Grove Cable 12 Mini Servo 13 9V to Barrel Jack Adapter -126mm 14 DIP LED Blue-Blue 15 DIP LED Green-Green 16 DIP LED Red-Red 11 Grove -LCD RGB Backlight USB, serial and Ethernet cables
  19. 19. Setting up the developer environment
  20. 20. Now connect your environment Intel® Galileo / Intel® Edison ForWindows*: firstinstalldriverfromUSB stick Ref.: https://communities.intel.com/docs/DOC-23147 Serial 115200 Serial 9600
  21. 21. Connect board via serial –discover port (Windows*) Ref.: https://software.intel.com/en-us/iot-c-eclipse
  22. 22. Connect via serial e.g. using PuTTy*, goSerial* or minicom* resp User: root, no password * Other names and brands may be claimed as the property of others.
  23. 23. Connecting Intel(R) Galileo Wifi connmanctl, rfkill, wpa_cli, hostapd_cli Bluetooth connmanctl, rfkill, bluetoothctl, hciconfig, hcidump, btmon serial
  24. 24. Connecting Intel(R) Edison On Windows* -first install driver from USB stick “configure_edison --setup” •One central way to set hostname, password and configure wifi Wifi connmanctl, rfkill, wpa_cli, hostapd_cli Bluetooth connmanctl, rfkill, bluetoothctl, hciconfig, hcidump, btmon Eth over USB serial * Other names and brands may be claimed as the property of others.
  25. 25. Find your Galileo/Edison IP address and write it down: command `ip a` Ping between board and your laptop to check connectivity Ref.: https://software.intel.com/en-us/iot-c-eclipse
  26. 26. Programming
  27. 27. Arduino* IDE forIntel® Edison * Other names and brands may be claimed as the property of others.
  28. 28. Arduino* IDE Sketch  /sketch/sketch.elf •Cross compiler •clloaderlisteningon /dev/ttyGS0 •Upload via serial •Renamingexistingsketch.elf * Other names and brands may be claimed as the property of others.
  29. 29. Go to IDZ IoT page, find your sensor
  30. 30. Under References, follow Grove Wiki
  31. 31. Recap –navigating IDZ IoT -https://software.intel.com/iot
  32. 32. libmraa & UPM
  33. 33. libmraa -https://github.com/intel-iot-devkit/mraa IO abstraction layer (C, C++, Python, Node.JS) Used by •UPM •Intel(R) XDK for IoT •Wyliodrin* API documentation http://iotdk.intel.com/docs/master/ mraa/ * Other names and brands may be claimed as the property of others.
  34. 34. Libmraa-C APIExpl: switch on GPIO #8 mraa_gpio_contextgpio; // Pointer to GPIO context gpio= mraa_gpio_init(8); // Create GPIO context for pin 8 mraa_gpio_dir(gpio, MRAA_GPIO_OUT); // GPIO direction: out mraa_gpio_write(gpio, 1); // Write to GPIO mraa_gpio_close(gpio); // Close GPIO
  35. 35. Libmraa-C++ Expl: read analogue value on A0 mraa::Aio* a0; a0 = new mraa::Aio(0); // Create AIO object for pin 0 std::cout<< a0->read() << std::endl;
  36. 36. Libmraa–Object API (Python) Expl: interrupt triggered on IO #6 from mraaimport * # Import mraalibrary # define a callback function defmy_isr(): print("Button pressed") x = Gpio(6) # Create a GPIO object for pin 6 x.dir(DIR_IN) # Set GPIO direction to input x.isr(EDGE_BOTH, my_isr) # Set callback on BOTH
  37. 37. Libmraa–Object API (Node.js) Expl: did we have this? –switch on IO #8 varm = require("mraa") # Import mraamodule varx = new m.Gpio(8) # Create a GPIO object for pin 8 x.dir(m.DIR_OUT) # Set GPIO direction to output x.write(1) # Write to GPIO
  38. 38. UPM repository -https://github.com/intel-iot-devkit/upm List of supported sensors in C++ API documentation -http://iotdk.intel.com/docs/master/upm/ Examples directory C++ example: // Copyright (c) 2014 Intel Corporation. MIT license upm::GroveTemp* s = new upm::GroveTemp(0); std::cout<< s->name() << std::endl; for (inti=0; i < 10; i++) { std::cout<< s->value() << std::endl; sleep(1); }
  39. 39. UPM API documentation –which library to use?
  40. 40. Updatinglibmraa/ UPM cat> /etc/opkg/mraa-upm.conf<<EOF srcmraa-upmhttp://iotdk.intel.com/repos/1.1/intelgalactic EOF opkgupdate opkgupgrade * Other names and brands may be claimed as the property of others.
  41. 41. Eclipse* IDE * Other names and brands may be claimed as the property of others.
  42. 42. Eclipse(C/C++)–setting up Copy to your computer Extract the file you copied previously (iotdk-ide-${yourOS}.7z) with 7z Treats long paths better, needed for this file. If you need to download: http://www.7-zip.org/ Note: Better to extract the file to C:on Windows Execute devkit-launcher.bat Ref.: https://software.intel.com/en-us/iot-c-eclipse
  43. 43. Ref.: https://software.intel.com/en-us/iot-c-eclipse
  44. 44. Click on Remote System Explorer Ref.: https://software.intel.com/en-us/iot-c-eclipse
  45. 45. Fill the IP address on (3) Ref.: https://software.intel.com/en-us/iot-c-eclipse
  46. 46. Intel(r) XDK for IoT
  47. 47. Login/create your account
  48. 48. Start with a Sample (under IoT Projects) –click on “Use this Template”
  49. 49. Should look like this
  50. 50. Select Galileo/Edison board Youmighthavetorestartxdk- daemon(systemctlrestartxdk- daemon)
  51. 51. Toggle the console
  52. 52. sync host / target time if needed
  53. 53. Install / build
  54. 54. Upload to target
  55. 55. run on target
  56. 56. Wyliodrin* * Other names and brands may be claimed as the property of others.
  57. 57. Ex: programmingvia cloudwithwww.wyliodrin.com
  58. 58. Please name your board and select Intel Galileo and press Next
  59. 59. Cable (Ethernet) WiFi
  60. 60. Your SD Card is already with the Galileo Image, so all you need to do is to download (1) wyliodrin.json and (2) write it on the root of the SD Card. Make sure the name is exactly wyliodrin.json 1 2
  61. 61. Install the updates and the extra libraries. This make take some time to run
  62. 62. Intel® IoT Analytics www.enableiot.com
  63. 63. Intel® IoTAnalytics -www.enableiot.com RESTfulAPI iotkit-agent (UDP / TCP) #! /usr/bin/envpythonimport socketimport sys UDP_PORT = 41234 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.sendto('{"n":"' + component + ‘","v":"' + value + '"}', ('localhost', UDP_PORT))
  64. 64. Login to IoTAnalytics Login in to Intel® IoTAnalytics Cloud https://dashboard.us.enableiot.com Variousloginoptions
  65. 65. Next steps?

×