SlideShare ist ein Scribd-Unternehmen logo
1 von 56
BUILDING INTERNET OF THINGSNWITH THE ARDUINO 
AND ATMEL AVR MICROCONTROLLER 
Anthony Faustine Sambaiga (AL, UDOM) 
Bsc. ECS (UDSM), Msc. TE (UDOM) 
Research Interest: WSAN, M2M, Smart grid Communications and ICT4D. 1
Training Introduction 
 The evolution of communication technologies bring 
Internet connection to devices at lower cost, less power 
consumption and smaller sizes. 
• As the results devices are able to be parts of the so 
called Internet of Things (IoT). 
 Arduino: flexible micro-controller and development 
environment. 
• Used to control devices, and to read data from all kinds 
of sensors. 
Arduino is the best way to be introduced to the IoT 
Anthony Faustine 2
Aim 
• Introduction to IoT and Cloud Computing. 
• Introduction to the world of Arduino. 
• See how to develop IoT application using Atmel AVR 
microcontroller with Arduino boot loader. 
• See how to connect Arduino to the Cloud. 
Anthony Faustine 3
Coverage 
• Introduction to the Internet of Things (IoT) 
• Arduino Microcontroller Platform 
• Arduino Development Environment 
• Digital & Analog Inputs / Output 
• Reading Data From Sensors 
• Introduction to Atmel Atmega328 
• Connecting Arduino to the Internet 
• Cloud Computing and IoT 
• Where to buy equipment 
• Taking your prototype to commercial Product 
• Project works 
Anthony Faustine 4
Internet of Things 
 Imagine having small device connected that can sense 
temperature, smoke, humidity, and light condition of your 
room and report them to a web services: 
Anthony Faustine 5
Internet of Things 
 The Internet of Things, also called The Internet of Objects: 
• A global network of smart devices that can sense and 
interact with their environment using internet for their 
communication and interaction. 
• A network of Physical Objects that can interact with each 
other to share information and take Action. 
Anthony Faustine 6
Internet of Things Concept 
Anthony Faustine 7
IoT Device 
 Requirements common to all of IoT Device include 
• Sensing and data collection capability (sensing nodes) 
• Layers of local embedded processing capability (local 
embedded processing nodes) 
• Wired and/or wireless communication capability 
(connectivity nodes) 
• Software to automate tasks and enable new classes of 
services 
• Remote network/cloud-based embedded processing 
capability (remote embedded processing nodes) 
• Full security across the signal path 
Anthony Faustine 8
Functional View of IoT Technologies 
Anthony Faustine 9
Feature of IoT device 
Anthony Faustine 10
Interaction with The Internet 
 The ability to communicate directly or indirectly with the 
internet make IoT device different from other devices. 
• Why need to communicate with internet?? 
Sensors generate lot of data that need to be 
managed. 
Embedded memory is limited 
Internet provide web application for data storage 
which can be accessed anywhere or anytime. 
Provide data exchanges between other applications. 
• The IoT is an interaction between the internet, things… 
and data 
Anthony Faustine 11
Interaction with The Internet 
Anthony Faustine 12
Building Blocks of the IoT 
• Control Units 
• Sensors 
• Communication Modules 
• Power sources 
Anthony Faustine 13
Control Units 
 IoT device utilize microcontroller as the main control unit 
• A microcontroller: Is a small computer in a single 
integrated circuit. 
It contain a processor core, a memory, and 
programmable I/O peripheral. 
• MCU 
The ‘brain’ controls everything 
Reads input from sensors 
Drives outputs 
LED, Switch, Motor,… 
Communicates! 
Anthony Faustine 14
Sensors 
 Device that can sense the physical quantities and convert 
into signal which can be interpreted by the MCU. 
• Fall into two types 
 Analog and Digital Sensor 
Anthony Faustine 15
Communication Modules 
 Provide connectivity to the IoT devices and the Internet 
 Communication between IoT and the Internet can be 
performed in two ways. 
• There is an interned enabled intermediate node called 
gateway 
• The IoT device has direct connection to the Internet 
Anthony Faustine 16
Communication Modules 
Anthony Faustine 17
Power Sources 
 This can power 
• Battery 
• Energy harvesting 
Anthony Faustine 18
IoT Examples 
http://postscapes.com/internet-of-things-examples/ 
Anthony Faustine 19
Arduino Microcontroller 
Platform 
 Microcontroller: 
• A small computer in a single integrated circuit 
• Consist of processor core, memory and programmable 
I/O peripherals. 
• Very common component in modern electronics systems 
Anthony Faustine 20
Arduino Microcontroller 
Platform 
 The main components of MCU 
• CPU 
Main processing unit 
• Memory 
Include the program that is being executed and is 
also available for storing. 
• I/O peripheral 
Pins that collect and generate digital signals to other 
circuit 
• Serial line (TX/RX) 
Allow serial data to be transmitted to or from the MCU 
Anthony Faustine 21
Arduino Microcontroller 
Platform 
 Most MCU also includes 
• A/D converters 
To allow MCU receive analog data for processing 
• Timers 
To allow MCU to perform task for certain time period. 
Anthony Faustine 22
Arduino Microcontroller 
Platform 
 PIC 
• This is the classic micro from Microchip. 
• Very simple, very proven, 
• It lacks many of the features that other mfg’s are building 
into their chips. 
 AVR 
• This is basically a direct competitor of PICs. 
• They do everything a PIC does, 
• It is better, faster, cheaper, and simpler. 
Anthony Faustine 23
Arduino Microcontroller 
Platform 
 MSP 
• These are very good micros by Texas Instruments (TI), 
• Excel at low-power applications. 
 ARM 
• Very powerful, very low-cost 
• It is complex 
 8051 
• Developed by Intel in the 1980s, 
• seems to be the instruction set they love to teach you in 
college. 
• Very old tech 
Anthony Faustine 24
Programming MCU 
 The main function of the MCU is to control things through 
I/O interfaces. 
• To instruct MCU what and how to control you need to 
program it. 
• MCU was ordinary programmed only in assembly 
languages. 
• But nowadays MCU can be programmed in high-level 
programming language like C. 
Anthony Faustine 25
Programming MCU 
 To programme MCU you need a particular hardware 
knows MCU programmer. 
• Challenge of using programmer 
The need for special hardware that is somehow 
costly 
It is difficult to program 
• These challenges can be addressed by a Bootloader 
 Bootloader: A small program that has been loaded onto 
the MCU. 
• This program is programmed just once in the program memory of 
the MCU using programmer. 
• After this the MCU can be programmed without a programmer 
Anthony Faustine 26
Arduino Platform 
 What is Arduino? 
• An open-source physical computing platform based on 
A simple microcontroller board and 
A development environment for writing software for 
the board. 
• Used to develop stand-alone interactive objects 
• It can be connected to a computer to retrieve or send 
data to the Arduino. 
The board can be assembled by hand or purchased 
preassembled. 
Anthony Faustine 27
Arduino Platform 
 Arduino platform offer main three things which made 
programming of the MCU easy. 
• An open source Bootloader 
• Open Schematic boards 
• A development environment 
Anthony Faustine 28
Arduino Platform 
 Why Arduino used mostly 
• It is inexpensive 
• cross-platform (the Arduino software runs on Windows, 
Mac OS X, and Linux), and 
• easy to program. 
• Both Arduino hardware and software are open source 
and extensible. 
Anthony Faustine 29
Arduino Hardware 
 Uses Atmel Microcontroller (AVR Atmega8 and 
Atmega168 microcontroller chip) 
• designed to be used with C language 
Anthony Faustine 30
Arduino Board 
 Arduino exist in several different board variants. 
Anthony Faustine 31
Arduino Hardware 
Anthony Faustine 32
Arduino Hardware
Prototyping Circuits 
 Solderless Breadboard: The most useful tools in an 
engineer or 
Anthony Faustine 34
Prototyping Circuits 
Anthony Faustine 35
Anatomy of a Breadboard 
oDip support 
oTerminal strips 
oPower rails
Anatomy of a Breadboard 
Terminal strips 
• Conductive metal rows that allow current to flow from 
any point in that strip. 
• Each side of a given row is disconnected from the other
Anatomy of a Breadboard 
Power Rails 
• Metal strips that are identical to the ones that run 
horizontally, except they are, typically*, all connected 
• labeled with a ‘+’ and a ‘- 
• Power rails on either side are not connected
Anatomy of a Breadboard 
DIP Support 
• This is the ravine that isolates the two sides of a 
breadboard 
• Useful for connecting integrated circuits (ICs)
Hello World for a Circuit 
Anthony Faustine 40
Arduino IDE 
 A graphical cross platform application written in Java. 
• Derived from the IDE for the processing programming 
language and the wiring project. 
• Very simple to use 
• Run in Windows, Mac and Linux 
 It connects to the Arduino hardware to upload programs 
and communicate with them.
Arduino IDE 
 Installation
Arduino IDE
Arduino IDE 
 To use Arduino IDE 
• Write your sketch 
• Press Verify button (to check for errors) 
• Press Upload button to program Arduino board with 
your sketch
Writing Arduino program 
 Software written using Arduino are called sketches. 
• Language is standard C (but made easy) with lots of 
useful functions. 
• These sketches are written in the text editor (IDE) and 
saved with the file extension .ino 
 A typical sketch consists of two parts or routines: 
The initialization function called setup and 
The loop function 
setup() – run once at beginning, set pins 
loop() – run repeatedly, after setup()
Sketch structure 
o The setup function: 
• Identified in the sketch as 
• It is the main initiation function 
• It run once 
Example
Sketch structure 
 The loop function: 
• Identified in the sketch as 
• It is automatically executed. 
• Anything contained in this function will executed 
repeatedly. 
Example
Writing Arduino program
“hello world” of Arduino 
Activity 2: Setup the Circuit as Shown Below, Open Arduino IDE 
and Write the sketch below. Observe what happens
“hello world” of Arduino 
 Open Arduino IDE and write the following code 
 Connect the Arduino board to the IDE
“hello world” of Arduino 
Connect the Arduino board to the IDE by selecting the 
appropriate serial port.
“hello world” of Arduino 
Next, double-check that the proper board is selected under 
the Tools => Board menu.
“hello world” of Arduino 
Upload your code and observe what will happen 
• Now open your code and Add 
digitalWrite(ledPin, LOW); 
delay(1000); 
• Upload your code and observe what happen
“hello world” of Arduino 
Upload your code and observe what will happen 
• Now open your code and Add 
digitalWrite(ledPin, LOW); 
delay(1000); 
• Upload your code and observe what happen
Lab Session 
 Try adding other LEDs 
• Can you brink two, three or four LED (Each LED will 
need its own Resistor) 
• Generate your own LED flashing 
• You may try 
Police light 
Disco light 
Traffic light 
etcc
sambaiga@gmail.com 
Anthony Faustine 56

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to ArduinoOmer Kilic
 
Introduction to ESP32 Programming [Road to RIoT 2017]
Introduction to ESP32 Programming [Road to RIoT 2017]Introduction to ESP32 Programming [Road to RIoT 2017]
Introduction to ESP32 Programming [Road to RIoT 2017]Alwin Arrasyid
 
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauriArduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauriGaurav Pandey
 
Esp8266 NodeMCU
Esp8266 NodeMCUEsp8266 NodeMCU
Esp8266 NodeMCUroadster43
 
ESP32 WiFi & Bluetooth Module - Getting Started Guide
ESP32 WiFi & Bluetooth Module - Getting Started GuideESP32 WiFi & Bluetooth Module - Getting Started Guide
ESP32 WiFi & Bluetooth Module - Getting Started Guidehandson28
 
Arduino Interfacing with different sensors and motor
Arduino Interfacing with different sensors and motorArduino Interfacing with different sensors and motor
Arduino Interfacing with different sensors and motorAmarjeetsingh Thakur
 
Internet of things using Raspberry Pi
Internet of things using Raspberry PiInternet of things using Raspberry Pi
Internet of things using Raspberry PiYash Gajera
 
Basics of arduino uno
Basics of arduino unoBasics of arduino uno
Basics of arduino unoRahat Sood
 
Introduction to arduino ppt main
Introduction to  arduino ppt mainIntroduction to  arduino ppt main
Introduction to arduino ppt maineddy royappa
 
Introduction to Arduino Programming
Introduction to Arduino ProgrammingIntroduction to Arduino Programming
Introduction to Arduino ProgrammingJames Lewis
 
Esp32 cam arduino-123
Esp32 cam arduino-123Esp32 cam arduino-123
Esp32 cam arduino-123Victor Sue
 
Patient Health Monitoring System Using Arduino & ESP8266
Patient Health Monitoring System Using Arduino & ESP8266Patient Health Monitoring System Using Arduino & ESP8266
Patient Health Monitoring System Using Arduino & ESP8266Rishav Pandey
 

Was ist angesagt? (20)

Embedded Systems and IoT
Embedded Systems and IoTEmbedded Systems and IoT
Embedded Systems and IoT
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Arduino presentation
Arduino presentationArduino presentation
Arduino presentation
 
Introduction to ESP32 Programming [Road to RIoT 2017]
Introduction to ESP32 Programming [Road to RIoT 2017]Introduction to ESP32 Programming [Road to RIoT 2017]
Introduction to ESP32 Programming [Road to RIoT 2017]
 
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauriArduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
 
Esp8266 NodeMCU
Esp8266 NodeMCUEsp8266 NodeMCU
Esp8266 NodeMCU
 
Arduino
ArduinoArduino
Arduino
 
ESP32 WiFi & Bluetooth Module - Getting Started Guide
ESP32 WiFi & Bluetooth Module - Getting Started GuideESP32 WiFi & Bluetooth Module - Getting Started Guide
ESP32 WiFi & Bluetooth Module - Getting Started Guide
 
Arduino Interfacing with different sensors and motor
Arduino Interfacing with different sensors and motorArduino Interfacing with different sensors and motor
Arduino Interfacing with different sensors and motor
 
Internet of things using Raspberry Pi
Internet of things using Raspberry PiInternet of things using Raspberry Pi
Internet of things using Raspberry Pi
 
Basics of arduino uno
Basics of arduino unoBasics of arduino uno
Basics of arduino uno
 
Arduino
ArduinoArduino
Arduino
 
Home automation with arduino
Home automation with arduinoHome automation with arduino
Home automation with arduino
 
Introduction to arduino ppt main
Introduction to  arduino ppt mainIntroduction to  arduino ppt main
Introduction to arduino ppt main
 
PIC Microcontrollers
PIC MicrocontrollersPIC Microcontrollers
PIC Microcontrollers
 
PPT ON Arduino
PPT ON Arduino PPT ON Arduino
PPT ON Arduino
 
Introduction to Arduino Programming
Introduction to Arduino ProgrammingIntroduction to Arduino Programming
Introduction to Arduino Programming
 
Iot based home automation
Iot based home automationIot based home automation
Iot based home automation
 
Esp32 cam arduino-123
Esp32 cam arduino-123Esp32 cam arduino-123
Esp32 cam arduino-123
 
Patient Health Monitoring System Using Arduino & ESP8266
Patient Health Monitoring System Using Arduino & ESP8266Patient Health Monitoring System Using Arduino & ESP8266
Patient Health Monitoring System Using Arduino & ESP8266
 

Andere mochten auch

The State of Arduino and IoT
The State of Arduino and IoTThe State of Arduino and IoT
The State of Arduino and IoTJustin Grammens
 
Android Control Hardware and Arduino IoT ( 22 Aug 15 )
Android Control Hardware and Arduino IoT ( 22 Aug 15 )Android Control Hardware and Arduino IoT ( 22 Aug 15 )
Android Control Hardware and Arduino IoT ( 22 Aug 15 )Adun Nanthakaew
 
Introduction to iot and arduino uno r3
Introduction to iot and arduino uno r3Introduction to iot and arduino uno r3
Introduction to iot and arduino uno r3Saurav Chaudhary
 
THE INTERNET OF THINGS
THE INTERNET OF THINGSTHE INTERNET OF THINGS
THE INTERNET OF THINGSRamana Reddy
 
Internet of Things and its applications
Internet of Things and its applicationsInternet of Things and its applications
Internet of Things and its applicationsPasquale Puzio
 
IoT Devices And Arduino
IoT Devices And ArduinoIoT Devices And Arduino
IoT Devices And Arduino영욱 김
 
Introduction to Internet of Things Hardware
Introduction to Internet of Things HardwareIntroduction to Internet of Things Hardware
Introduction to Internet of Things HardwareDaniel Eichhorn
 
IoT BASED SMART HOME USING ARDUINO
IoT BASED SMART HOME USING ARDUINOIoT BASED SMART HOME USING ARDUINO
IoT BASED SMART HOME USING ARDUINOAYSHA S KABEER
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduinoavikdhupar
 
What is the Internet of Things?
What is the Internet of Things?What is the Internet of Things?
What is the Internet of Things?Felix Grovit
 
Arduino Lecture 1 - Introducing the Arduino
Arduino Lecture 1 - Introducing the ArduinoArduino Lecture 1 - Introducing the Arduino
Arduino Lecture 1 - Introducing the ArduinoEoin Brazil
 
Internet-of-things- (IOT) - a-seminar - ppt - by- mohan-kumar-g
Internet-of-things- (IOT) - a-seminar - ppt - by- mohan-kumar-gInternet-of-things- (IOT) - a-seminar - ppt - by- mohan-kumar-g
Internet-of-things- (IOT) - a-seminar - ppt - by- mohan-kumar-gMohan Kumar G
 
IoT - IT 423 ppt
IoT - IT 423 pptIoT - IT 423 ppt
IoT - IT 423 pptMhae Lyn
 
Internet of Things
Internet of ThingsInternet of Things
Internet of ThingsVala Afshar
 
How to use hard disk fre...virtual ram tech birdy
How to use hard disk fre...virtual ram   tech birdyHow to use hard disk fre...virtual ram   tech birdy
How to use hard disk fre...virtual ram tech birdyArvind Singh
 
Android Meets A BeagleBone In The IoT World
Android Meets A BeagleBone In The IoT WorldAndroid Meets A BeagleBone In The IoT World
Android Meets A BeagleBone In The IoT WorldLars Gregori
 
Boards for the IoT-Prototyping
Boards for the IoT-PrototypingBoards for the IoT-Prototyping
Boards for the IoT-PrototypingLars Gregori
 

Andere mochten auch (20)

The State of Arduino and IoT
The State of Arduino and IoTThe State of Arduino and IoT
The State of Arduino and IoT
 
Android Control Hardware and Arduino IoT ( 22 Aug 15 )
Android Control Hardware and Arduino IoT ( 22 Aug 15 )Android Control Hardware and Arduino IoT ( 22 Aug 15 )
Android Control Hardware and Arduino IoT ( 22 Aug 15 )
 
Introduction to iot and arduino uno r3
Introduction to iot and arduino uno r3Introduction to iot and arduino uno r3
Introduction to iot and arduino uno r3
 
THE INTERNET OF THINGS
THE INTERNET OF THINGSTHE INTERNET OF THINGS
THE INTERNET OF THINGS
 
Internet of Things and its applications
Internet of Things and its applicationsInternet of Things and its applications
Internet of Things and its applications
 
IoT Devices And Arduino
IoT Devices And ArduinoIoT Devices And Arduino
IoT Devices And Arduino
 
Introduction to Internet of Things Hardware
Introduction to Internet of Things HardwareIntroduction to Internet of Things Hardware
Introduction to Internet of Things Hardware
 
IoT BASED SMART HOME USING ARDUINO
IoT BASED SMART HOME USING ARDUINOIoT BASED SMART HOME USING ARDUINO
IoT BASED SMART HOME USING ARDUINO
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
 
What is the Internet of Things?
What is the Internet of Things?What is the Internet of Things?
What is the Internet of Things?
 
Arduino Lecture 1 - Introducing the Arduino
Arduino Lecture 1 - Introducing the ArduinoArduino Lecture 1 - Introducing the Arduino
Arduino Lecture 1 - Introducing the Arduino
 
Internet of Things presentation
Internet of Things presentationInternet of Things presentation
Internet of Things presentation
 
Internet-of-things- (IOT) - a-seminar - ppt - by- mohan-kumar-g
Internet-of-things- (IOT) - a-seminar - ppt - by- mohan-kumar-gInternet-of-things- (IOT) - a-seminar - ppt - by- mohan-kumar-g
Internet-of-things- (IOT) - a-seminar - ppt - by- mohan-kumar-g
 
IoT - IT 423 ppt
IoT - IT 423 pptIoT - IT 423 ppt
IoT - IT 423 ppt
 
Internet of Things
Internet of ThingsInternet of Things
Internet of Things
 
Genuino 101
Genuino 101Genuino 101
Genuino 101
 
How to use hard disk fre...virtual ram tech birdy
How to use hard disk fre...virtual ram   tech birdyHow to use hard disk fre...virtual ram   tech birdy
How to use hard disk fre...virtual ram tech birdy
 
Android Meets A BeagleBone In The IoT World
Android Meets A BeagleBone In The IoT WorldAndroid Meets A BeagleBone In The IoT World
Android Meets A BeagleBone In The IoT World
 
Boards for the IoT-Prototyping
Boards for the IoT-PrototypingBoards for the IoT-Prototyping
Boards for the IoT-Prototyping
 
Embed your Ideas
Embed your IdeasEmbed your Ideas
Embed your Ideas
 

Ähnlich wie Building IoT with Arduino Day One

Internet of things
Internet of thingsInternet of things
Internet of thingsBrockanurag
 
The IoT Academy IoT training Arduino Part 1 basics
The IoT Academy IoT training Arduino Part 1 basicsThe IoT Academy IoT training Arduino Part 1 basics
The IoT Academy IoT training Arduino Part 1 basicsThe IOT Academy
 
Embedded system introduction - Arduino Course
Embedded system introduction - Arduino CourseEmbedded system introduction - Arduino Course
Embedded system introduction - Arduino CourseElaf A.Saeed
 
Introduction to Arduino.pptx
Introduction to Arduino.pptxIntroduction to Arduino.pptx
Introduction to Arduino.pptxAkshat Bijronia
 
Kritarth's IOT ppt.pptx
Kritarth's IOT ppt.pptxKritarth's IOT ppt.pptx
Kritarth's IOT ppt.pptxKritarthDevli
 
Internet of Things Unit 3 notes-Design and Development and Arduino.pptx
Internet of Things Unit 3 notes-Design and Development and Arduino.pptxInternet of Things Unit 3 notes-Design and Development and Arduino.pptx
Internet of Things Unit 3 notes-Design and Development and Arduino.pptxDinola2
 
WORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCH
WORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCHWORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCH
WORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCHijdpsjournal
 
Embedded Hardware Design.pptx
Embedded Hardware Design.pptxEmbedded Hardware Design.pptx
Embedded Hardware Design.pptxAbhaySharma207975
 
Null mumbai-iot-workshop
Null mumbai-iot-workshopNull mumbai-iot-workshop
Null mumbai-iot-workshopNitesh Malviya
 
HOME AUTOMATION SYSTEM USING IOT TECHNOLOGY.pdf
HOME  AUTOMATION SYSTEM USING IOT  TECHNOLOGY.pdfHOME  AUTOMATION SYSTEM USING IOT  TECHNOLOGY.pdf
HOME AUTOMATION SYSTEM USING IOT TECHNOLOGY.pdfHarshithaNerella
 
Smart Door locking system using arduino
Smart Door locking system using arduinoSmart Door locking system using arduino
Smart Door locking system using arduinoBhawnaSingh351973
 
Introduction to computers
Introduction to computersIntroduction to computers
Introduction to computersMehulNamdev1
 
aurduino-200107075953.pdf
aurduino-200107075953.pdfaurduino-200107075953.pdf
aurduino-200107075953.pdfHebaEng
 
Arduino: On-board components description, IDE and Programming
Arduino: On-board components description, IDE and Programming Arduino: On-board components description, IDE and Programming
Arduino: On-board components description, IDE and Programming Pawan Dubey, PhD
 

Ähnlich wie Building IoT with Arduino Day One (20)

Internet of things
Internet of thingsInternet of things
Internet of things
 
The IoT Academy IoT training Arduino Part 1 basics
The IoT Academy IoT training Arduino Part 1 basicsThe IoT Academy IoT training Arduino Part 1 basics
The IoT Academy IoT training Arduino Part 1 basics
 
B1_25Jan21.pptx
B1_25Jan21.pptxB1_25Jan21.pptx
B1_25Jan21.pptx
 
Embedded system introduction - Arduino Course
Embedded system introduction - Arduino CourseEmbedded system introduction - Arduino Course
Embedded system introduction - Arduino Course
 
Introduction to Arduino.pptx
Introduction to Arduino.pptxIntroduction to Arduino.pptx
Introduction to Arduino.pptx
 
Kritarth's IOT ppt.pptx
Kritarth's IOT ppt.pptxKritarth's IOT ppt.pptx
Kritarth's IOT ppt.pptx
 
Internet of Things Unit 3 notes-Design and Development and Arduino.pptx
Internet of Things Unit 3 notes-Design and Development and Arduino.pptxInternet of Things Unit 3 notes-Design and Development and Arduino.pptx
Internet of Things Unit 3 notes-Design and Development and Arduino.pptx
 
WORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCH
WORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCHWORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCH
WORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCH
 
Embedded Hardware Design.pptx
Embedded Hardware Design.pptxEmbedded Hardware Design.pptx
Embedded Hardware Design.pptx
 
Null mumbai-iot-workshop
Null mumbai-iot-workshopNull mumbai-iot-workshop
Null mumbai-iot-workshop
 
Introduction of Arduino Uno
Introduction of Arduino UnoIntroduction of Arduino Uno
Introduction of Arduino Uno
 
Report
ReportReport
Report
 
HOME AUTOMATION SYSTEM USING IOT TECHNOLOGY.pdf
HOME  AUTOMATION SYSTEM USING IOT  TECHNOLOGY.pdfHOME  AUTOMATION SYSTEM USING IOT  TECHNOLOGY.pdf
HOME AUTOMATION SYSTEM USING IOT TECHNOLOGY.pdf
 
Smart Door locking system using arduino
Smart Door locking system using arduinoSmart Door locking system using arduino
Smart Door locking system using arduino
 
Introduction to computers
Introduction to computersIntroduction to computers
Introduction to computers
 
IOT beginnners
IOT beginnnersIOT beginnners
IOT beginnners
 
IOT beginnners
IOT beginnnersIOT beginnners
IOT beginnners
 
IoT and Its Application
IoT and Its ApplicationIoT and Its Application
IoT and Its Application
 
aurduino-200107075953.pdf
aurduino-200107075953.pdfaurduino-200107075953.pdf
aurduino-200107075953.pdf
 
Arduino: On-board components description, IDE and Programming
Arduino: On-board components description, IDE and Programming Arduino: On-board components description, IDE and Programming
Arduino: On-board components description, IDE and Programming
 

Kürzlich hochgeladen

Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024SynarionITSolutions
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 

Kürzlich hochgeladen (20)

Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 

Building IoT with Arduino Day One

  • 1. BUILDING INTERNET OF THINGSNWITH THE ARDUINO AND ATMEL AVR MICROCONTROLLER Anthony Faustine Sambaiga (AL, UDOM) Bsc. ECS (UDSM), Msc. TE (UDOM) Research Interest: WSAN, M2M, Smart grid Communications and ICT4D. 1
  • 2. Training Introduction  The evolution of communication technologies bring Internet connection to devices at lower cost, less power consumption and smaller sizes. • As the results devices are able to be parts of the so called Internet of Things (IoT).  Arduino: flexible micro-controller and development environment. • Used to control devices, and to read data from all kinds of sensors. Arduino is the best way to be introduced to the IoT Anthony Faustine 2
  • 3. Aim • Introduction to IoT and Cloud Computing. • Introduction to the world of Arduino. • See how to develop IoT application using Atmel AVR microcontroller with Arduino boot loader. • See how to connect Arduino to the Cloud. Anthony Faustine 3
  • 4. Coverage • Introduction to the Internet of Things (IoT) • Arduino Microcontroller Platform • Arduino Development Environment • Digital & Analog Inputs / Output • Reading Data From Sensors • Introduction to Atmel Atmega328 • Connecting Arduino to the Internet • Cloud Computing and IoT • Where to buy equipment • Taking your prototype to commercial Product • Project works Anthony Faustine 4
  • 5. Internet of Things  Imagine having small device connected that can sense temperature, smoke, humidity, and light condition of your room and report them to a web services: Anthony Faustine 5
  • 6. Internet of Things  The Internet of Things, also called The Internet of Objects: • A global network of smart devices that can sense and interact with their environment using internet for their communication and interaction. • A network of Physical Objects that can interact with each other to share information and take Action. Anthony Faustine 6
  • 7. Internet of Things Concept Anthony Faustine 7
  • 8. IoT Device  Requirements common to all of IoT Device include • Sensing and data collection capability (sensing nodes) • Layers of local embedded processing capability (local embedded processing nodes) • Wired and/or wireless communication capability (connectivity nodes) • Software to automate tasks and enable new classes of services • Remote network/cloud-based embedded processing capability (remote embedded processing nodes) • Full security across the signal path Anthony Faustine 8
  • 9. Functional View of IoT Technologies Anthony Faustine 9
  • 10. Feature of IoT device Anthony Faustine 10
  • 11. Interaction with The Internet  The ability to communicate directly or indirectly with the internet make IoT device different from other devices. • Why need to communicate with internet?? Sensors generate lot of data that need to be managed. Embedded memory is limited Internet provide web application for data storage which can be accessed anywhere or anytime. Provide data exchanges between other applications. • The IoT is an interaction between the internet, things… and data Anthony Faustine 11
  • 12. Interaction with The Internet Anthony Faustine 12
  • 13. Building Blocks of the IoT • Control Units • Sensors • Communication Modules • Power sources Anthony Faustine 13
  • 14. Control Units  IoT device utilize microcontroller as the main control unit • A microcontroller: Is a small computer in a single integrated circuit. It contain a processor core, a memory, and programmable I/O peripheral. • MCU The ‘brain’ controls everything Reads input from sensors Drives outputs LED, Switch, Motor,… Communicates! Anthony Faustine 14
  • 15. Sensors  Device that can sense the physical quantities and convert into signal which can be interpreted by the MCU. • Fall into two types  Analog and Digital Sensor Anthony Faustine 15
  • 16. Communication Modules  Provide connectivity to the IoT devices and the Internet  Communication between IoT and the Internet can be performed in two ways. • There is an interned enabled intermediate node called gateway • The IoT device has direct connection to the Internet Anthony Faustine 16
  • 18. Power Sources  This can power • Battery • Energy harvesting Anthony Faustine 18
  • 20. Arduino Microcontroller Platform  Microcontroller: • A small computer in a single integrated circuit • Consist of processor core, memory and programmable I/O peripherals. • Very common component in modern electronics systems Anthony Faustine 20
  • 21. Arduino Microcontroller Platform  The main components of MCU • CPU Main processing unit • Memory Include the program that is being executed and is also available for storing. • I/O peripheral Pins that collect and generate digital signals to other circuit • Serial line (TX/RX) Allow serial data to be transmitted to or from the MCU Anthony Faustine 21
  • 22. Arduino Microcontroller Platform  Most MCU also includes • A/D converters To allow MCU receive analog data for processing • Timers To allow MCU to perform task for certain time period. Anthony Faustine 22
  • 23. Arduino Microcontroller Platform  PIC • This is the classic micro from Microchip. • Very simple, very proven, • It lacks many of the features that other mfg’s are building into their chips.  AVR • This is basically a direct competitor of PICs. • They do everything a PIC does, • It is better, faster, cheaper, and simpler. Anthony Faustine 23
  • 24. Arduino Microcontroller Platform  MSP • These are very good micros by Texas Instruments (TI), • Excel at low-power applications.  ARM • Very powerful, very low-cost • It is complex  8051 • Developed by Intel in the 1980s, • seems to be the instruction set they love to teach you in college. • Very old tech Anthony Faustine 24
  • 25. Programming MCU  The main function of the MCU is to control things through I/O interfaces. • To instruct MCU what and how to control you need to program it. • MCU was ordinary programmed only in assembly languages. • But nowadays MCU can be programmed in high-level programming language like C. Anthony Faustine 25
  • 26. Programming MCU  To programme MCU you need a particular hardware knows MCU programmer. • Challenge of using programmer The need for special hardware that is somehow costly It is difficult to program • These challenges can be addressed by a Bootloader  Bootloader: A small program that has been loaded onto the MCU. • This program is programmed just once in the program memory of the MCU using programmer. • After this the MCU can be programmed without a programmer Anthony Faustine 26
  • 27. Arduino Platform  What is Arduino? • An open-source physical computing platform based on A simple microcontroller board and A development environment for writing software for the board. • Used to develop stand-alone interactive objects • It can be connected to a computer to retrieve or send data to the Arduino. The board can be assembled by hand or purchased preassembled. Anthony Faustine 27
  • 28. Arduino Platform  Arduino platform offer main three things which made programming of the MCU easy. • An open source Bootloader • Open Schematic boards • A development environment Anthony Faustine 28
  • 29. Arduino Platform  Why Arduino used mostly • It is inexpensive • cross-platform (the Arduino software runs on Windows, Mac OS X, and Linux), and • easy to program. • Both Arduino hardware and software are open source and extensible. Anthony Faustine 29
  • 30. Arduino Hardware  Uses Atmel Microcontroller (AVR Atmega8 and Atmega168 microcontroller chip) • designed to be used with C language Anthony Faustine 30
  • 31. Arduino Board  Arduino exist in several different board variants. Anthony Faustine 31
  • 34. Prototyping Circuits  Solderless Breadboard: The most useful tools in an engineer or Anthony Faustine 34
  • 36. Anatomy of a Breadboard oDip support oTerminal strips oPower rails
  • 37. Anatomy of a Breadboard Terminal strips • Conductive metal rows that allow current to flow from any point in that strip. • Each side of a given row is disconnected from the other
  • 38. Anatomy of a Breadboard Power Rails • Metal strips that are identical to the ones that run horizontally, except they are, typically*, all connected • labeled with a ‘+’ and a ‘- • Power rails on either side are not connected
  • 39. Anatomy of a Breadboard DIP Support • This is the ravine that isolates the two sides of a breadboard • Useful for connecting integrated circuits (ICs)
  • 40. Hello World for a Circuit Anthony Faustine 40
  • 41. Arduino IDE  A graphical cross platform application written in Java. • Derived from the IDE for the processing programming language and the wiring project. • Very simple to use • Run in Windows, Mac and Linux  It connects to the Arduino hardware to upload programs and communicate with them.
  • 42. Arduino IDE  Installation
  • 44. Arduino IDE  To use Arduino IDE • Write your sketch • Press Verify button (to check for errors) • Press Upload button to program Arduino board with your sketch
  • 45. Writing Arduino program  Software written using Arduino are called sketches. • Language is standard C (but made easy) with lots of useful functions. • These sketches are written in the text editor (IDE) and saved with the file extension .ino  A typical sketch consists of two parts or routines: The initialization function called setup and The loop function setup() – run once at beginning, set pins loop() – run repeatedly, after setup()
  • 46. Sketch structure o The setup function: • Identified in the sketch as • It is the main initiation function • It run once Example
  • 47. Sketch structure  The loop function: • Identified in the sketch as • It is automatically executed. • Anything contained in this function will executed repeatedly. Example
  • 49. “hello world” of Arduino Activity 2: Setup the Circuit as Shown Below, Open Arduino IDE and Write the sketch below. Observe what happens
  • 50. “hello world” of Arduino  Open Arduino IDE and write the following code  Connect the Arduino board to the IDE
  • 51. “hello world” of Arduino Connect the Arduino board to the IDE by selecting the appropriate serial port.
  • 52. “hello world” of Arduino Next, double-check that the proper board is selected under the Tools => Board menu.
  • 53. “hello world” of Arduino Upload your code and observe what will happen • Now open your code and Add digitalWrite(ledPin, LOW); delay(1000); • Upload your code and observe what happen
  • 54. “hello world” of Arduino Upload your code and observe what will happen • Now open your code and Add digitalWrite(ledPin, LOW); delay(1000); • Upload your code and observe what happen
  • 55. Lab Session  Try adding other LEDs • Can you brink two, three or four LED (Each LED will need its own Resistor) • Generate your own LED flashing • You may try Police light Disco light Traffic light etcc