[go: up one dir, main page]

0% found this document useful (0 votes)
42 views18 pages

Arduino Lecture 8

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1/ 18

Arduino in IoT

Introduction
● Arduino is an open-source programmable circuit board that can be
integrated into a wide variety of IoT projects both simple and
complex.
● This board contains a microcontroller which is able to be programmed
to sense and control objects in the physical world.
● By responding to sensors and inputs, the Arduino is able to interact
with outputs such as LEDs, motors and displays.
● For instance, you can read a humidity sensor connected to a potted
plant and turn on an automatic watering system if it gets too dry.
● Or, you can have it start a pot of coffee when your alarm goes off in
the morning.
● Because of it’s flexibility and low cost, Arduino has become a very
popular choice for use in IoT projects.
Types of Arduino
Boards
● There are a number of different types of Arduinos to choose from.
● Below are a few examples of the different types of Arduino boards.
● The boards with the name Arduino on them are the official boards but there
are also a lot of really great clones on the market as well.
● One of the best reasons to buy a clone is the fact they are generally
less expensive than their official counterpart.
Types of Arduino
Boards
Types of Arduino
Boards
Arduino Uno
Arduino Uno
● One of the most popular Arduino boards is the Arduino Uno.
● Because of its extreme popularity, the Arduino Uno has a ton of project
tutorials and forums around the web for help.
● Some people think of the entire Arduino board as a microcontroller, but this
is inaccurate.
● The Arduino board actually is a specially designed circuit board
for programming and prototyping with Atmel microcontrollers.
● The nice thing about the Arduino board is that it is relatively cheap,
plugs straight into a computer's USB port, and it is simple to setup and
use.
Key features of Arduino
Uno
□ An open source design. The advantage of it being open source is that it
has a large community of people using and troubleshooting it.
□ An easy USB interface . The chip on the board plugs straight into your USB
port and registers on your computer.
□ Very convenient power management and built-in voltage regulation. You can
connect an external power source of up to 12v and it will regulate it to both
5v and 3.3v. It also can be powered directly off of a USB port without any
external power.
Key features of Arduino
Uno
□ An easy-to-find, and low price, microcontroller ATmega328 chip.
□ A 16mhz clock. This makes it not the speediest microcontroller around, but
fast enough for most applications.
□ 32 KB of flash memory for storing your code.
□ 13 digital pins and 6 analog pins. Simply plug the devices and sensors into
the sockets that correspond to each of these pins and you are good to go.
Arduino Breadboard
□ Another very important item when working with Arduino is a breadboard.
□ This device allows to prototype the Arduino project without having
to permanently solder the circuit together.
□ Using a breadboard allows to create temporary prototypes and
experiment with different circuit designs.
Arduino Breadboard
Arduino Breadboard
□ The breadboard is not powered on its own and needs power brought to it
from the Arduino board using jumper wires.
□ These wires are also used to form the circuit by connecting resistors,
switches and other components together.
An example
project
Arduino
Shields
● If you want to add a very specific functionality to your Arduino, you
will need to use a shield.
● Arduino shields plug into the top of the Arduino board and can
add capabilities such as WiFi, Bluetooth, GPS and much more.
● There are literally hundreds of shields to choose from and here are
a few examples:
□ WiFi Shield
□ LCD Shield
□ GPS Logger Shield
□ Motor/Stepper/Servo Shield
Arduino
Shields
Arduino
IDE
● Once the circuit has been created on the breadboard, you’ll need to
upload the program (known as a sketch) to the Arduino.
● The sketch is a set of instructions that tells the board what functions it
needs to perform.
● An Arduino board can only hold and perform one sketch at a time.
● The software used to create Arduino sketches is called the IDE which
stands for Integrated Development Environment.
● It uses a variation of the C and C++ programming languages.
Arduino
IDE
Thank
you

You might also like