The document discusses the Arduino Uno microcontroller board. It provides details about the Arduino platform and describes the Arduino Uno board, which is based on the ATmega328P microcontroller. It lists the main components of the Arduino Uno board and explains the functions of pins and inputs/outputs. The document also provides an overview of the fundamentals of Arduino programming, including key functions, variables, conditions, and serial communication.
IoT Physical Devices and End points and RaspberryPi with Python.
Introduction to RaspberryPi
Arduino UNO,
Arduino UNO: Introduction to Arduino,
Arduino UNO, Installing the Software,
Fundamentals of Arduino Programming.
IoT Physical Devices and Endpoints.
RaspberryPi: Introduction to RaspberryPi,
About the RaspberryPi Board: Hardware Layout,
Operating Systems on RaspberryPi, Configuring.
It covers several topics: basics, drivers and shields, GPIO, compilers and IDEs, hradware protocols I2C, SPI, UART. The presentation also provides several examples: DC motor control, stepper motor control, reading analog data ADC, what is DMA and a music equalizer (both software and hardware).
Embedded system course projects - Arduino CourseElaf A.Saeed
• Arduino IDE.
• P1-Arduino with led.
• P2-Arduino with push button.
• P3-Arduino with potentiometer.
• P4-Arduino with PWM.
• P5-Arduino with LCD.
• P6-Arduino with PIR.
• P7-Arduino with DHT11
• P8-Arduino with LM35.
• P9-Arduino with gas sensor.
• P10-Arduino with dc motor.
• P11-Arduino with Servo Motor.
• P12-Arduino with Bluetooth.
• P13-Arduino with ultrasonic.
• P14-Arduino with IR sensor.
--------------------------------------------------------
Email: elafe1888@gmail.com
linkden: www.linkedin.com/in/elaf-a-saeed-97bbb6150
facebook: https://www.facebook.com/profile.php?id=100004305557442
github: https://github.com/ElafAhmedSaeed
youtube: https://youtube.com/channel/UCE_RiXkyqREUdLAiZcbBqSg
slideshare: https://www.slideshare.net/ElafASaeed
Slideplayer: https://slideplayer.com/search/?q=Elaf+A.Saeed
Google Scholar: https://scholar.google.com/citations?user=VIpVZKkAAAAJ&hl=ar&gmla=AJsN-F7PIgAjWJ44Hzb18fwPqJaaUmG0XzbLdzx09
IoT Physical Devices and End points and RaspberryPi with Python.
Introduction to RaspberryPi
Arduino UNO,
Arduino UNO: Introduction to Arduino,
Arduino UNO, Installing the Software,
Fundamentals of Arduino Programming.
IoT Physical Devices and Endpoints.
RaspberryPi: Introduction to RaspberryPi,
About the RaspberryPi Board: Hardware Layout,
Operating Systems on RaspberryPi, Configuring.
It covers several topics: basics, drivers and shields, GPIO, compilers and IDEs, hradware protocols I2C, SPI, UART. The presentation also provides several examples: DC motor control, stepper motor control, reading analog data ADC, what is DMA and a music equalizer (both software and hardware).
Embedded system course projects - Arduino CourseElaf A.Saeed
• Arduino IDE.
• P1-Arduino with led.
• P2-Arduino with push button.
• P3-Arduino with potentiometer.
• P4-Arduino with PWM.
• P5-Arduino with LCD.
• P6-Arduino with PIR.
• P7-Arduino with DHT11
• P8-Arduino with LM35.
• P9-Arduino with gas sensor.
• P10-Arduino with dc motor.
• P11-Arduino with Servo Motor.
• P12-Arduino with Bluetooth.
• P13-Arduino with ultrasonic.
• P14-Arduino with IR sensor.
--------------------------------------------------------
Email: elafe1888@gmail.com
linkden: www.linkedin.com/in/elaf-a-saeed-97bbb6150
facebook: https://www.facebook.com/profile.php?id=100004305557442
github: https://github.com/ElafAhmedSaeed
youtube: https://youtube.com/channel/UCE_RiXkyqREUdLAiZcbBqSg
slideshare: https://www.slideshare.net/ElafASaeed
Slideplayer: https://slideplayer.com/search/?q=Elaf+A.Saeed
Google Scholar: https://scholar.google.com/citations?user=VIpVZKkAAAAJ&hl=ar&gmla=AJsN-F7PIgAjWJ44Hzb18fwPqJaaUmG0XzbLdzx09
IoT Arduino UNO, RaspberryPi with Python, RaspberryPi Programming using Pytho...Jayanthi Kannan MK
Module 4 : Arduino UNO, RaspberryPi with Python
Arduino UNO: Introduction to Arduino,
•Arduino UNO, Installing the Software,
•Fundamentals of Arduino Programming.
•IoT Physical Devices and Endpoints.
RaspberryPi: Introduction to RaspberryPi,
•About the RaspberryPi Board: Hardware Layout,
•Operating Systems on RaspberryPi, Configuring.
Module 5 : RaspberryPi Programming using Python and Smart City
RaspberryPi,
•Programming RaspberryPi with Python,
•Wireless Temperature Monitoring System Using Pi,
•DS18B20 Temperature Sensor,
•Connecting Raspberry Pi via SSH,
•Accessing Temperature from DS18B20 sensors,
• Remote access to RaspberryPi.
Smart cities: Smart and Connected Cities,
•An IoT Strategy for Smarter Cities,
•Smart City IoT Architecture,
•Smart City Security Architecture,
•Smart City Use-Case Examples
I have prepared this presentation when I was studying at Western Region Campus. I along with some of my friends conducted training for junior students on Arduino. Its day-1 presentation.
Arduino is an open-source project that created microcontroller-based kits for building digital devices and interactive objects that can sense and control physical devices.
The introduction to Arduino labs at Malmö University. These slides have been handed down since the beginning of Arduino. They have more authors then i can remember and should by no means be considered mine.
The introduction to Arduino labs at Malmö University. These slides have been handed down since the beginning of Arduino. They have more authors then i can remember and should by no means be considered mine.
MODULE 1 :
Software Product and Process
Introduction –FAQs About Software Engineering,
Definition Of Software Engineering,
Difference Between Software Engineering And Computer Science,
Difference Between Software Engineering And System Engineering,
Software Process,
Software Process Models,
The Waterfall Model,
Incremental Process Models,
Evolutionary Process Models
Spiral Development, Prototyping,
Component Based Software Engineering ,
The Unified Process, Attributes Of Good Software,
Key Challenges Facing By Software Engineering,
Verification – Validation,
Computer Based System,
Business Process Engineering,
More Related Content
Similar to 4 IOT 18ISDE712 MODULE 4 IoT Physical Devices and End Point-Aurdino Uno.pdf
IoT Arduino UNO, RaspberryPi with Python, RaspberryPi Programming using Pytho...Jayanthi Kannan MK
Module 4 : Arduino UNO, RaspberryPi with Python
Arduino UNO: Introduction to Arduino,
•Arduino UNO, Installing the Software,
•Fundamentals of Arduino Programming.
•IoT Physical Devices and Endpoints.
RaspberryPi: Introduction to RaspberryPi,
•About the RaspberryPi Board: Hardware Layout,
•Operating Systems on RaspberryPi, Configuring.
Module 5 : RaspberryPi Programming using Python and Smart City
RaspberryPi,
•Programming RaspberryPi with Python,
•Wireless Temperature Monitoring System Using Pi,
•DS18B20 Temperature Sensor,
•Connecting Raspberry Pi via SSH,
•Accessing Temperature from DS18B20 sensors,
• Remote access to RaspberryPi.
Smart cities: Smart and Connected Cities,
•An IoT Strategy for Smarter Cities,
•Smart City IoT Architecture,
•Smart City Security Architecture,
•Smart City Use-Case Examples
I have prepared this presentation when I was studying at Western Region Campus. I along with some of my friends conducted training for junior students on Arduino. Its day-1 presentation.
Arduino is an open-source project that created microcontroller-based kits for building digital devices and interactive objects that can sense and control physical devices.
The introduction to Arduino labs at Malmö University. These slides have been handed down since the beginning of Arduino. They have more authors then i can remember and should by no means be considered mine.
The introduction to Arduino labs at Malmö University. These slides have been handed down since the beginning of Arduino. They have more authors then i can remember and should by no means be considered mine.
MODULE 1 :
Software Product and Process
Introduction –FAQs About Software Engineering,
Definition Of Software Engineering,
Difference Between Software Engineering And Computer Science,
Difference Between Software Engineering And System Engineering,
Software Process,
Software Process Models,
The Waterfall Model,
Incremental Process Models,
Evolutionary Process Models
Spiral Development, Prototyping,
Component Based Software Engineering ,
The Unified Process, Attributes Of Good Software,
Key Challenges Facing By Software Engineering,
Verification – Validation,
Computer Based System,
Business Process Engineering,
Internet of Things
Unit – 1. Introduction
1.1 What is IoT,
1.2 Genesis of IoT,
1.3 IoT andDigitization,
1.4 IoT Impact,
1.5 Convergence of IT and IoT,
1.6 IoTChallenges,
1.7 IoT NetworkArchitecture and Design,
1.8 Drivers Behind New Network Architectures,
1.9 Comparing IoTArchitectures,
1.10 A Simplified IoTArchitecture.
Text Books:
1. Fundamentals: Networking Technologies,Protocols, and Use Cases for the Internet of Things”, David Hanes, Gonzalo Salgueiro, Patrick Grossetete, Robert Barton, JeromeHenry, 1stEdition, Pearson Education (Cisco Press Indian Reprint, ISBN: 978- 9386873743.2. “Internet of Things”, Srinivasa K G, 2017, CENGAGELeaning, India.
Reference Books:
1. “Internetof Things (A Hands-on-Approach)”,Vijay Madisetti and ArshdeepBahga, 1st Edition, VPT, 2014. ISBN: 978-8173719547.2. “Internetof Things: Architecture and Design Principles”, Raj Kamal, 1st Edition, McGraw Hill Education, 2017, ISBN: 978-935260522
This 7-second Brain Wave Ritual Attracts Money To You.!nirahealhty
Discover the power of a simple 7-second brain wave ritual that can attract wealth and abundance into your life. By tapping into specific brain frequencies, this technique helps you manifest financial success effortlessly. Ready to transform your financial future? Try this powerful ritual and start attracting money today!
ER(Entity Relationship) Diagram for online shopping - TAEHimani415946
https://bit.ly/3KACoyV
The ER diagram for the project is the foundation for the building of the database of the project. The properties, datatypes, and attributes are defined by the ER diagram.
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesSanjeev Rampal
Talk presented at Kubernetes Community Day, New York, May 2024.
Technical summary of Multi-Cluster Kubernetes Networking architectures with focus on 4 key topics.
1) Key patterns for Multi-cluster architectures
2) Architectural comparison of several OSS/ CNCF projects to address these patterns
3) Evolution trends for the APIs of these projects
4) Some design recommendations & guidelines for adopting/ deploying these solutions.
1.Wireless Communication System_Wireless communication is a broad term that i...JeyaPerumal1
Wireless communication involves the transmission of information over a distance without the help of wires, cables or any other forms of electrical conductors.
Wireless communication is a broad term that incorporates all procedures and forms of connecting and communicating between two or more devices using a wireless signal through wireless communication technologies and devices.
Features of Wireless Communication
The evolution of wireless technology has brought many advancements with its effective features.
The transmitted distance can be anywhere between a few meters (for example, a television's remote control) and thousands of kilometers (for example, radio communication).
Wireless communication can be used for cellular telephony, wireless access to the internet, wireless home networking, and so on.
guildmasters guide to ravnica Dungeons & Dragons 5...
4 IOT 18ISDE712 MODULE 4 IoT Physical Devices and End Point-Aurdino Uno.pdf
1. Module – 4 IoT Physical Devices and End Point-Aurdino
Uno
1
Arduino:
Arduino is an open-source electronics platform based on easy-
to-use hardware and software.
Arduino boards are able to read inputs - light on a sensor, a
finger on a button, or a Twitter message - and turn it into an
output - activating a motor, turning on an LED, publishing
something online.
2. Module – 4 IoT Physical Devices and End Point-
Aurdino Uno
2
Arduino UNO:
Arduino Uno is a microcontroller board based on the ATmega328P.
It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6
analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP
header and a reset button.
"Uno" means one in Italian and was chosen to mark the release of Arduino Software
(IDE) 1.0. The Uno board and version 1.0 of Arduino Software (IDE) were the
reference versions of Arduino, now evolved to newer releases.
3. Module – 4 IoT Physical Devices and End Point-
Aurdino Uno
3
4. 1. Reset Button – This will restart any code that is loaded tothe
Arduino board
2. AREF – Stands for “Analog Reference” and is used to set an
external reference voltage
3. Ground Pin – There are a few ground pins on the Arduinoand
they all work the same
analog output
4.Digital Input/Output – Pins 0-13 can be used for digital input or 12. 3.3V Pin – This pin supplies 3.3 volts of power to your projects
output
13. 5V Pin – This pin supplies 5 volts of power to your projects
5. PWM – The pins marked with the (~) symbol can simulate
6. USB Connection – Used for powering up your Arduino and
uploading sketches
7. TX/RX – Transmit and receive data indicationLEDs
8. ATmega Microcontroller – This is the brains and is where the
programs are stored
9. Power LED Indicator – This LED lights up anytime the board is
plugged in a power source
10. Voltage Regulator – This controls the amount of voltage going
into the Arduino board
11. DC Power Barrel Jack – This is used for poweringyour
Arduino with a power supply
14. Ground Pins – There are a few ground pins on theArduino
and they all work the same
15. Analog Pins – These pins can read the signal from an analog
sensor and convert it to digital
9
Module – 4 IoT Physical Devices and End Point-
Aurdino Uno
5. Module –4 IoT Physical Devices and End Point-Aurdino
Uno
Fundamentals of Arduino Programming:
Two required functions / methods / routines:
void setup()
{
// runs once
}
void loop()
{
// repeats
}
10
7. Comments, Comments, Comments
Comments
// this is for single line comments
// it’s good to put at the top and before anything ‘tricky’
/* this is for multi-line comments
Like this…
And this….
*/
9. Three commands to know…
pinMode(pin, INPUT/OUTPUT);
ex: pinMode(13, OUTPUT);
digitalWrite(pin, HIGH/LOW);
ex: digitalWrite(13, HIGH);
delay(time_ms);
ex: delay(2500); // delay of 2.5 sec.
// NOTE: -> commands are CASE-sensitive
10. Arduino Code Basics
Arduino programs run on two basic sections:
void setup() {
//setup motors, sensors etc
}
void loop() {
// get information from sensors
// send commands to motors
}
11. SETUP
16 16
The setup section is used for assigning input and outputs
(Examples: motors, LED’s,sensors etc) to ports on theArduino
It also specifies whether the device is OUTPUT or INPUT
To do this we use the command “pinMode”
13. void loop() {
digitalWrite(9, HIGH);
delay(1000);
digitalWrite(9, LOW);
delay(1000);
}
L
OOP
Port # from setup
Turn the LED on
or off
Wait for 1 second
or 1000 milliseconds
13
14. int val = 5;
DECLARING A VARIABLE
Type
assignment
“becomes”
variable name
value
14
15. USING VARIABLES
int delayTime = 2000;
digitalWrite(greenLED, HIGH);
delay(delayTime);
}
int greenLED = 9;
void setup() {
Declare delayTime
pinMode(greenLED, OUTPUT)V;ariable
}
void loop() {
Use delayTime
digitalWrite(greenLED, LOVWa)ri;able
delay(delayTime);
15
16. Using Variables
int delayTime = 2000;
int greenLED = 9;
}
void setup() {
pinMode(greenLED, OUTPUT);
}
void loop() {
digitalWrite(greenLED, HIGH);
delay(delayTime);
digitalWrite(greenLED, LOW);
delayTime = delayTime - 100;
delay(delayTime);
subtract 100 from
16
delayTime to gradually
increase LED’s blinking
speed
17. Conditions
To make decisions in Arduino code we
use an ‘if’ statement
‘If’ statements are based on a TRUE or
FALSE question
20. 25
int counter = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
if(counter < 10)
{
Serial.println(counter);
}
counter = counter + 1;
}
IF Example
21. Input & Output
Transferring data from the computer to an Arduino
is done using Serial Transmission
To setup Serial communication we use the following
26
void setup() {
Serial.begin(9600);
}
21
22. Writing to the Console
void setup() {
Serial.begin(9600);
Serial.println(“Hello World!”);
}
void loop() {}
22
23. IF - ELSE
Condition
if( “answer is true”)
{
“perform some action”
}
else
{
“perform some other action”
}
24. 29
int counter = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
if(counter < 10)
{
Serial.println(“less than 10”);
}
else
{
Serial.println(“greater than or equal to 10”);
Serial.end();
}
counter = counter + 1;}
IF - ELSE Example
25. IF - ELSE IF
Condition
if( “answer is true”)
{
“perform some action”
}
else if( “answer is true”)
{
“perform some other action”
}
26. 31
int counter = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
if(counter < 10)
{
Serial.println(“less than 10”);
}
else if (counter == 10)
{
Serial.println(“equal to 10”);
}
else
{
Serial.println(“greater than 10”);
Serial.end();
}
counter = counter + 1;
}
IF - ELSE Example
27. BOOLEAN OPERATORS - AND
27 32
If we want all of the conditions to be true we need to use ‘AND’ logic (AND gate)
We use the symbols &&
• Example
if ( val > 10 && val < 20)
28. BOOLEAN OPERATORS - OR
28
If we want either of the conditions to be true we need to use ‘OR’ logic (OR gate)
We use the symbols ||
• Example
if ( val < 10 || val > 20)
30. Important functions
• Serial.println(value);
– Prints the value to the Serial Monitor on your computer
• pinMode(pin, mode);
– Configures a digital pin to read (input) or write (output) a digital value
• digitalRead(pin);
– Reads a digital value (HIGH or LOW) on a pin set for input
• digitalWrite(pin, value);
– Writes the digital value (HIGH or LOW) to a pin set for output
31. • Essential Programming Concepts
– Delay
– Infinite Loop
• General Input/Output
– Polling or Busy/Wait I/O
– Interrupt Processing
• Timers and Internal Inteerrupts
• High-Level Language Extensions
• Code Transformations for Embedded Computing
– Loop Unrolling
– Loop Merging
– Loop Peeling
– Loop Tiling
OUTLINE
32. • Delays are essential in embedded systems, unlike high-
performance systems where we want the program to
execute as fast as possible
• Delays are used to synchronize events, or read inputs
with a specific sampling freqency (more on Bus/Wait I/O)
DELAY (1/3)
33. • Okay, so how do we build a delay function?
• Our reference is the system clock frequency
• We use a register or a timer to measure ticks
• Each tick is 1/frequency
• Example: Assuming a 16-bit processor, an increment
and a jump instruction is 1-cycle each and a 10 MHz
system clock, build a 1-sec delay:
• T = 1/10 MHz = 100 ns
• 1 s/100 ns = 10,000,000
int i=5000000; //2 ticks per iteration
BACK: i--;
if (i!=0) goto BACK;
DELAY (3/3)
34. • Embedded Systems are mostly single-functioned
• Their core application never terminates
• Infinite loops are not forbidden as long as they are done
correctly
Infinite Loop (1/2)