arduino programming and iot application …aphrdi/2016/12_d… · agenda • intro to iot • intro...

52
ARDUINO PROGRAMMING AND IOT APPLICATION DEVELOPMENT 1

Upload: vuthu

Post on 18-Jul-2018

236 views

Category:

Documents


0 download

TRANSCRIPT

ARDUINO PROGRAMMING AND IOT APPLICATION DEVELOPMENT

1

AGENDA

• Intro to IoT

• Intro to Arduino Platform

• Hands-on programming using Arduino Platform

• Some Applications

2

THREE PHASES - PARADIGM SHIFT

3

Internet of Things

Social

Mobile

What is IoT?• In 2010, the global average of connected devices per

person was 1.84 • Taking only those people who use the Internet (around 2

billion in 2010), that figure becomes 6 devices per person

• “50 billion devices connected by 2020” – CISCO

4

What is IoT?

• Devices that connect to one another and interact using the internet.

5

WHY ????

6

🤔

WHY “NO” !!!!

7

😳

8

IOT VS IOE

9

MOBILE IS GOD OF IOT

10

IoT Architecture

11

DESIGN CONSIDERATIONS

12

• Data – Data – Data – Data

• Hardware and Embedded S/W

• Software over the cloud

• Security

• User Interface Data is the new Oil

IoT implementation

13

INTRO TO ARDUINO PLATFORM

14

15

Arduino Uno Chipkit Max32 Intel Galileo

Gen 2 *Raspberry Pi

2 Raspberry Pi 3 Beagle Bone Black

Electric Imp

Processor ATmega328P Microchip PIC32MX795F512L

Intel Quark X1000

Broadcom BCM 2836

Broadcom BCM 2837

TI AM3358 -

CPU Core Atmel AVR, 8bit MIPS, 32 bit Intel Pentium,

32 bitArm Cortex-A7, 32 bit

Arm Cortex-A53, 64 bit

Arm Cortex-A8, 32 bit, TI Dual PRUs

Arm Cortex-M3

Clock Speed 16 MHz 80 MHz 400 MHz 900MHz Quad Core 1.2GHz Quad Core 1 GHz -

Flash Memory 32 KB 512 KB 512 KB - - 4GB -

RAM 2KB 128 KB 512 KB 1 GB 1 GB 512 MB -

SD Card Upto 32GB Upto 32GB Upto 32GB Upto 32GB -

Connectivity With shields with shields Ethernet Ethernet Ethernet, WiFi, BLE Ethernet Wifi

Platform Arduino Arduino Arduino, Linux Linux, Windows 10 IoT Core….

Linux, Windows 10 IoT Core…. Linux, Android…. Squirrel

Multimedia - - - HDMI, CSI, DSI, 3D Graphics core

HDMI, CSI, DSI, 3D Graphics core

Micro HDMI, 3D Graphics core -

CHIPKIT MAX32 – BOARD LAYOUT

16

INTEL GALILEO GEN2 – BOARD LAYOUT

17

BEAGLE BONE BLACK – BOARD LAYOUT

18

19

ELECTRIC IMP – BOARD LAYOUT

20

RASPBERRY PI 3 – BOARD LAYOUT

21

22

ARDUINO

• Founded by Massimo Banzi and David Cuartielles in 2005 • Based on “Wiring Platform”, 2003 • Open-source hardware platform • Open source development environment – Easy-to learn language and libraries – Integrated development environment – Available for Windows / Mac / Linux

23

TYPES OF ARDUINO

• Arduino Leonardo • Arduino LilyPad • Arduino Mega • Arduino Nano • Arduino Mini • Arduino Mini Pro • Arduino BT • Arduino Yun

24

ARDUINO UNO R3 – BOARD LAYOUT

25

26

ARDUINO MEGA 2560 – BOARD LAYOUT

27

MCU - FEATURES• Microcontroller ATmega2560

• Clock Speed 16 MHz

• Operating Voltage 5V

• 256 kb Flash Memory (of which 8 kb used by boot loader)

• 8 kb SRAM

• 4 kb EEPROM

• 54 Digital I/O Pins

• 16 Analog Input Pins

• DC Current per I/O Pin 20 mA

• DC Current for 3.3V Pin 50 mA

• Weight 37g

28

REQUIREMENTS

29

• Arduino UNO Board. • Bread Board. • Connecting Wires. • Resistors. • Transistors. • LED. • LDR. • Switch. • DC Motor. • LCD Display. • Buzzer.

ANATOMY OF SKETCH

30

• setup() • loop() • pinMode() • digitalWrite() • delay() • Libraries

TASK 1

31

Blink LED at 100ms Interval

32

TASK 2

33

Interfacing a Tactile Switch

34

35

TASK 3

36

Interface LDR

37

TASK 4

38

Interface a DC Motor to port

39

TASK 5

40

LCD Interfacing

41

TASK 6

42

Acquiring Temperature and Humidity values on Serial Monitor and on LCD Display

43

44

CONNECTIVITY TO CLOUD

45

• We can use either UBIDOTS or THINGSPEAK.

Cloud (UBIDOTS or THINGSPEAK)

Gateway(Wifi Module-ESP2866)

Device(Sensors, actuators)

TASK 7

46

Simple IoT Application

Ref: (https://ubidots.com/)

IOT - APPLICATION DEVELOPMENT

47

Analytics

Real time

Notifications

Web

Backend

SOME APPLICATIONS

48

• Smart Geyser • Smart Air Conditioner • EV Charging Network • Smart GreenHouse - IoT in Agriculture

• Air Temperature and Humidity Control - foggers, Temperature sensor, Peltier

Cooler Sensor. • Photosynthesis at Night Times - LED Lights, LDR sensor can be used. • End Market Connection - RFID Card Readers. • Bee Hive Boxes - for selling honey.

• Temperature Sensing with RFID’s

GOVT. RELATED

49

• Smart Garbage Collector • Overhead Tank Monitoring • Street Light Automation • Over Speed Monitoring System • Internet Controlled Irrigation System

IOT APPS (IOS/ANDROID)

50

• WICED Sense • Sensor Tag • openHAB • ArduinoCode • LightBlue • IF • ElectricImp • DOButton • Blink • BeanLoader • Wio • LosantGo

51

https://temboo.com/iot-applications

REFERENCES

52

• http://www.arduino.cc • http://www.instructables.com • http://www.kickstarter.com