Arduino based IoT Application Programming_20180814.pptx
nasir458339
21 views
29 slides
Jun 10, 2024
Slide 1 of 29
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
About This Presentation
gfhfghfghf
Size: 2.16 MB
Language: en
Added: Jun 10, 2024
Slides: 29 pages
Slide Content
Arduino based IoT Application Programming Instructor:
Introduction of Maker Movement
Introduction of Maker Movement 4 DIY (Do It Yourself) Reference: https://www.google.co.kr/search?q=DIY&newwindow=1&safe=off&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjg4uK7__baAhWMfLwKHeaJA9kQ_AUIDCgD&biw=1280&bih=669#imgrc=_
Introduction of Maker Movement 5 DIY + New Technologies References: https://pixabay.com/en/printer-3d-printer-model-3d-1248284/ https://en.wikipedia.org/wiki/Arduino https://en.wikipedia.org/wiki/Raspberry_Pi 3D Printer Arduino Raspberry Pi
Introduction of Arduino
Introduction of Arduino 11 Arduino is an open source computer hardware and software company, project, and user community that designs and manufactures single-board microcontrollers References: https://en.wikipedia.org/wiki/Arduino
Introduction of Arduino 12 Arduino boards References: https://www.arduino.cc/
Introduction of Arduino 13 Arduino UNO pin out References: https://eeeproject.com/arduino-uno-board/
Introduction of Arduino 14 Arduino UNO specification Microcontroller ATmega328P Operating Voltage 5V Input Voltage (recommended) 7-12V Input Voltage (limit) 6-20V Digital I/O Pins 14 (of which 6 provide PWM output) Analog Input Pins 6 DC Current per I/O Pin 20 mA Flash Memory 32 KB (ATmega328P) of which 0.5 KB used by bootloader SRAM 2 KB (ATmega328P) EEPROM 1 KB (ATmega328P) Clock Speed 16 MHz LED_BUILTIN 13
Installation of Arduino IDE
Installation of Arduino IDE 16 Enter the http://www.arduino.cc/ on the web browser
Installation of Arduino IDE 17 Click the “Windows Installer”
Installation of Arduino IDE 18 Click the “JUST DOWNLOAD” button
Installation of Arduino IDE 19 Double click the downloaded .exe file in the download directory
Installation of Arduino IDE 20 Click the “Next” button
Installation of Arduino IDE 21 Click the “Install” button
Installation of Arduino IDE 22 Click the “Close” button
Structure of Arduino program (Sketch)
Structure of Arduino program (Sketch) 24 Interface of Arduino IDE
Structure of Arduino program (Sketch) 25 Check the installation of Arduino IDE 1. Open 01.Basics Blink 2. Upload The LED connected to pin 13 of Arduino board is blinking
Structure of Arduino program (Sketch) 26 setup() - The first function to execute - loop() function execute after setup() function terminate loop() - Code within a loop() function runs infinite void setup() { pinMode (13, OUTPUT); } void loop() { digitalWrite (13, HIGH); delay(1000); digitalWrite (13, LOW); delay(1000); }
Structure of Arduino program (Sketch) 27 digitalWrite () - output of digital value - first argument pin number - second argument pin status delay() - delay by specific time - unit : ms (milli second) void setup() { pinMode (13, OUTPUT); } void loop() { digitalWrite (13, HIGH); delay (1000); digitalWrite (13, LOW); delay (1000); }
Structure of Arduino program (Sketch) 28 PinMode () - Determine input / output pin - first argument pin number - second argument input or output void setup() { pinMode (13, OUTPUT); } void loop() { digitalWrite (13, HIGH); delay(1000); digitalWrite (13, LOW); delay(1000); }