0% found this document useful (0 votes)
12 views

Lect2 IOT

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Lect2 IOT

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

Arduino

Presented by
Dr. Amany AbdElSamea
Outline

• Introduction to embedded systems


• Microprocessor vs. Microcontroller
• What is Arduino?
• Difference between Arduino Board
• Arduino Uno
• Arduino Sensors
• Arduino IDE
• Arduino and TinkerCAD
Introduction to Embedded Systems
• Any computing system consists of processor, memory and I/O
peripherals. It is divided into general purpose and specific purpose
systems
• An embedded system is a special-purpose computer system
designed to perform certain dedicated functions.
• It is a combination of Software and Hardware”
• It is Specific to an application
Embedded Systems Components
Common Characteristics of Embedded
Systems
• Dependability
• Single-functioned (dedicated System)
– Executes a single program, repeatedly
• Tightly-constrained (Efficient)
– Low cost, low power, small, fast, etc.
• Reactive and real-time
– Continually reacts to changes in the system’s
environment
– Must compute certain results in real-time without
delay
Microprocessor (CPU)
• Defined as a single processor core that supports at least instruction
fetching, decoding and executing.
• Normally can be used for general purpose computing but needs to
be supported with memories and Input/Output(IOs).
• To make complete microcomputer, one must add memory usually
ROM and RAM, memory decoder, an oscillator and a number of
serial and parallel ports
Microcontroller
• A microcontroller is a functional computer system-on-a-chip.
It contains a processor, memory, and programmable
input/output peripherals.

• Microcontrollers include an integrated CPU, memory (a small


amount of RAM, program memory, or both) and peripherals
capable of input and output.
Microprocessor vs. Microcontroller
What is Arduino?

• Arduino is a microcontroller-based open source electronic


prototyping board which can be programmed with an easy-to-
use Arduino IDE

• Arduino consists of both a physical programmable circuit board


and a piece of software, or IDE. The Arduino IDE uses a
simplified version of C++, making it easier to learn.

• With Arduino, you can control almost everything around you


be it simple LED or giant Robots.
Different types of Arduino
Difference between Arduino boards
Arduino Uno
• The Uno is one of the more popular boards in the Arduino
PWR IN USB
family and a great choice for beginners. The Arduino Uno is a (to Computer)
microcontroller board based on the ATmega328 .
RESET
• What does it have?
-14 Digital In/Out pins (6 can be used as Pulse Width
Modulation (PWM) is a technique for getting analog results
with digital means) SCL\SDA
-6 Analog Inputs (I2C Bus)
-A USB Connection
-A Power Jack
-Reset Button POWER
-On-board LED
5V / Digital I\O
-SCL/SDA pins (Serial Clock/ Serial Data pins) 3.3V / PWM(3, 5,
GND 6, 9, 10, 11)
Analog
• In short, it contains everything needed to supportthe INPUTS
microcontroller; simply connect it to a computer with a USB
cable or power it with a AC-to-DC adapter or battery to get
started.
Arduino Uno Board
Arduino Sensors
• The sensors are defined as a machine, module, or a
device that detect changes in the environment. The
sensors transfer those changes to the electronic devices
in the form of a signal.

• The sensors are used to measure the physical quantities,


such as pressure, temperature, sound, humidity, and
light, etc.

• The data signal runs from the sensor to the output pins
of the Arduino. The data is further recorded by the
Arduino.
Arduino Sensors cont.,
How Arduino is Programmed
Arduino IDE
• The Arduino IDE is an open-source software, which is used to
write and upload code to the Arduino boards.

• The IDE application is suitable for different operating systems


such as Windows, Mac OS X, and Linux. It supports the
programming languages C and C++. Here, IDE stands
for Integrated Development Environment.

• The program or code written in the Arduino IDE is often called


as sketching. We need to connect the Genuino and Arduino
board with the IDE to upload the sketch written in the Arduino
IDE software.
• The sketch is saved with the extension '.ino.'
Arduino IDE cont.,
Useful Functions
Blinking LED
How to Get Started
If you have the board follow up the following steps:
• Arduino board
- USB cable
- DC power supplies

• Download the Arduino software (Arduino IDE)


• Read carefully
-Instructions to install and setup the Arduino board with
the computer and software
- Download the Arduino IDE software
• Plug in the Arduino board into the computer after writing the
sketch.
If you don’t have the board so use TinkerCAD simulator
TinkerCAD Arduino
Questions

You might also like