IoT Application Development

Please download to get full document.

View again

of 22
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Similar Documents
Information Report
Category:

Technology

Published:

Views: 0 | Pages: 22

Extension: PDF | Download: 0

Share
Description
1. Training on From zero to building your first IoT device By Vignesh Govindraj, Phanini Academy At EFY CONFERENCES IoTshow 28 Feb 2019 2. IoT and its design components…
Transcript
  • 1. Training on From zero to building your first IoT device By Vignesh Govindraj, Phanini Academy At EFY CONFERENCES IoTshow 28 Feb 2019
  • 2. IoT and its design components What? Things connected to the internet… Why? To control and monitor How?
  • 3. Simple breakdown of IoT components Application or webpage Software and Networking(Cloud) Hardware(Node)
  • 4. BUILDING A HOME AUTOMATION SYSTEMDEVELOPINGAN APP FORTHE SYSTEM
  • 5. The setup code goes here i.e. information regarding the i/o pins The code that has to be executed repeatedly goes here Arduino IDE
  • 6. Some basic functions : pinMode(pin_number,[INPUT/OUTPUT]) Sets pin_number as input/output Ex: pinMode(1,INPUT); sets gpio pin 1 as input Serial.begin(baud_rate) Opens the serial port, sets the data rate to the specified baud rate Ex: Serial.begin(9600); Opens the serial port and sets the data rate to 9600 bits per second Serial.println(message) Prints data to the serial port as human- readable ASCII text followed by a carriage return character (ASCII 13, or 'r') and a newline character (ASCII 10, or 'n') Ex: Serial.println(“Hello world”); Prints Hello world on the serial monitor delay(time_in_milliseconds) Waits for time_in_milliseconds until the next instruction is performed Ex: delay(1000); Waits for 1000ms(=1s) until the next instruction is performed
  • 7. Some basic functions : (Contd/-) digitalWrite(pin,value) Writes a HIGH or LOW value to a digital pin Ex: digitalWrite(1.HIGH); Writes a HIGH value to a digital pin 1 i.e. its voltage would be set to 5V analogWrite(pin,value) Writes an analog value(0-255) to a pwm enabled gpio pin Ex: analogWrite(3,255); Writes an analog value 255 to the gpio pin digitalRead(pin) Reads the value from the specified pin, either HIGH or LOW Ex: digitalRead(1); Reads the value from the gpio pin 1, and returns either HIGH(1) or LOW(0) based on the voltage given to the pin analogRead(pin) Reads the value from the specified analog pin and returns a value(0- 1023) Ex: analogRead(A0); Reads the value from the analog pin A0 and returns a value(0-1023) based on the voltage given to the pin
  • 8. Client Server Architecture
  • 9. Server Access Point Internet Client Client
  • 10. Developing android apps with app inventor
  • 11. App Inventor for Android is an open-source web application originally provided by Google, and now maintained by the Massachusetts Institute of Technology (MIT). visual programming environment that allows you to build fully functional apps for smartphones and tablets Or in other words “developing apps without coding”
  • 12. Stages in App development Identify the requirements Sketch out a basic design for the app Identify the Components from the design Identify the Events associated with each component Develop the App Testing the App
  • 13. Goal: Build an app to control a light,and monitor a parameter(temperature) via your android phone
  • 14. View the graph of the sensor readings A place to store the ip address A way to switch on/off a light Get the last updated data from the sensor Requirements App Design Enter ip address ON / OFF Get Data Last data value Data Time
  • 15. Enter ip address ON / OFF Get Data Last data value Data Time Label Button Button Label Web Viewer TextView Identify the Components
  • 16. Enter ip address ON / OFF Get Data Last data value Data Time Get ip address go to http://’ipaddress’/gpio/1 or 0 Get the last updated value Set value to the last updated value Show the graph Identify the Events associated with each component
  • 17. Enter ip address ON / OFF Get Data Last data value Data Time
  • 18. Develop the App Let’s get to work!!!
  • We Need Your Support
    Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

    Thanks to everyone for your continued support.

    No, Thanks
    SAVE OUR EARTH

    We need your sign to support Project to invent "SMART AND CONTROLLABLE REFLECTIVE BALLOONS" to cover the Sun and Save Our Earth.

    More details...

    Sign Now!

    We are very appreciated for your Prompt Action!

    x