SlideShare a Scribd company logo
f
Networked Embedded Applications and Technologies Lab
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN
Free-Software Arduino
Kuan-Yu, Chen
陳冠宇
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 2NEAT
Outline
 What is Arduino?
 Source
 Kernel architecture
 Signal message.
 What can you do by Arduino?
 Develop environment
 Just do it
 LEDs
 UART
 PWM(Explain by Servo)
 Analysis product
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 3NEAT
Download Software.
 www.arduino.cc
 http://140.116.245.210:5000/fbsharing/8N94DeUp
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 4NEAT
What is Arduino?
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 5NEAT
Source
 From Italian Ivrea university.
David Mellis 、 David Cuartielles 、 Gianluca Martino 、 Massimo
Banzi 、 Tom Igoe
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 6NEAT
Kernel Architecture
IC Type
8 bits 8051 、 ATMEGA8
16 bits PIC 、 MSP430
32 bits ARM
• Only one schedule.
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 7NEAT
Kernel Architecture
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 8NEAT
Kernel Architecture
Microcontroller ATmega328
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Digital I/O Pins 14(6 for PWM)
Analog Input Pins 6
DC Current per I/O Pin 40mA
DC Current for 3.3V Pin 50mA
Flash Memory 32KB(0.5 KB for bootloader )
Clock Speed 16Mhz
SRAM 2 KB
EEPROM 1KB
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 9NEAT
Kernel Architecture
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 10NEAT
Kernel Architecture
 GPIO(General-purpose input/output)
 AD(Analog to Digital)
 Interrupt
 PWM(Pulse-width modulation)
 UART(Universal asynchronous reciver/transmitter)
 SPI(Serial peripheral interface)
 I2C(Inter-Integrated Circuit)
 …
 …
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 11NEAT
Signal message.
 Sensor
 Digital
 Analog
 Input/Output
 Control
 Display
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 12NEAT
What can you do by
Arduino?
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 13NEAT
Develop environment
 Base on C/C++.
 Function. (By library)
 Open-Source. (Include hardware and software)
 Easy.
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 14NEAT
 Check Board.
 Check Serial Port.
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 15NEAT
 Compile.
 Download.
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 16NEAT
Just do it
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 17NEAT
 include<> or ””
 void setup{}
 void loop{}
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 18NEAT
LEDs
 pinMode(GPIO,Pin mode);
 digitalWrite(Pin,state);
 delay(time);
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 19NEAT
UART
 Serial.begin(baud rate);
 Serial.available();
 If receive someting.
 Serial.read();
 Return value of receive.
 Serial.println(Value);
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 20NEAT
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 21NEAT
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 22NEAT
Lab
 1. Try LEDs, UART and PWM(Servo).
 2. Turn on the LED(pin13) if UART receive “H”.
 3. Modify angle of motor by UART.
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 23NEAT
1. DC Motor
2. Reducing gear
3. Controller
4. Sensor
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 24NEAT
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 25NEAT
How to control
1. Use Servo.h
2. Set initial position.
3. Control.
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 26NEAT
PWM
 include<Servo.h>
 Servo name;
 name.attach(pin);
 name.write(pos);
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 27NEAT
Reference
 2014 Arduino, www.arduino.cc
 1know.net, http://1know.net/knowledge/97636f101c46?v=list
 Arduino IDE introduction, Wiki, Decr, 2011,
http://zh.wikipedia.org/wiki/Arduino
 孫駿榮、吳明展、盧聰勇 , “Arduino 一試就上手 ( 第二
版 ),, , 碁峯資訊出版 , Sep,2012.
 賴文章、陳冠宇 , “Arduino ”入門級中文教學 , Jan,2012.
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 28NEAT
Thanks for your listen

More Related Content

PDF
Project_Report_Masters
PDF
Final report NTI FPGA&RTOS&Cadeance ICFB&
PDF
Online and Offline Testing Of C-Bist Using Sram
PDF
sdAdvanced microcontrollers &embedded system(department elective i)
PPT
The IEEE 1149.1 Boundary-scan test standard
PPTX
trojan detection
PPTX
Arduino
PDF
Mixed Scanning and DFT Techniques for Arithmetic Core
Project_Report_Masters
Final report NTI FPGA&RTOS&Cadeance ICFB&
Online and Offline Testing Of C-Bist Using Sram
sdAdvanced microcontrollers &embedded system(department elective i)
The IEEE 1149.1 Boundary-scan test standard
trojan detection
Arduino
Mixed Scanning and DFT Techniques for Arithmetic Core

What's hot (20)

PPS
Hardware Overview - Controller, Power Supply, Communication, Driver
PDF
Description fpga
PDF
JTAG Interface (Intro)
PPTX
Forest bouandary alert system for animal
PDF
Jtag presentation
PDF
Hardware Trojan detection using Clock sweeping method
PDF
Pramod J Resume M.Sc. (Electronics) 3.5 Year Exprience in Hardware Design
PDF
Hardware Trojans
PPTX
Poster_example
PDF
Fpga based heartbeats monitor with
DOCX
Sample of project synopsis (2)
PPT
PDF
IRJET-Condition Monitoring based Control using Piezo Sensor for Rotating Elec...
DOCX
Meier_ECET365_Manual_LI
PPT
FastTracer
PDF
STM32 L4 presentation
PPTX
Embedded system design using arduino
PDF
⭐⭐⭐⭐⭐ 2020 TELTEC WEBINAR: Clasificación de señales de Electroencefalografía ...
PDF
IRJET- Design & Implementation of Black Box in Automobiles System
PPT
Networking of Micro-Controllers through USB
Hardware Overview - Controller, Power Supply, Communication, Driver
Description fpga
JTAG Interface (Intro)
Forest bouandary alert system for animal
Jtag presentation
Hardware Trojan detection using Clock sweeping method
Pramod J Resume M.Sc. (Electronics) 3.5 Year Exprience in Hardware Design
Hardware Trojans
Poster_example
Fpga based heartbeats monitor with
Sample of project synopsis (2)
IRJET-Condition Monitoring based Control using Piezo Sensor for Rotating Elec...
Meier_ECET365_Manual_LI
FastTracer
STM32 L4 presentation
Embedded system design using arduino
⭐⭐⭐⭐⭐ 2020 TELTEC WEBINAR: Clasificación de señales de Electroencefalografía ...
IRJET- Design & Implementation of Black Box in Automobiles System
Networking of Micro-Controllers through USB
Ad

Viewers also liked (8)

PPTX
車用通信報告
PPTX
2014 1029 adaptive dissmination of safety data among vehicles
PPTX
Stm32 develop tool introduction
PPT
第三章Ti msp430平台介紹 v3
PPTX
Densebox
PDF
Based on raspberry pi with the application of Stepper
PPTX
The design of electronic license plate recognition terminal system based on n...
PPTX
簡介 GitHub 平台
車用通信報告
2014 1029 adaptive dissmination of safety data among vehicles
Stm32 develop tool introduction
第三章Ti msp430平台介紹 v3
Densebox
Based on raspberry pi with the application of Stepper
The design of electronic license plate recognition terminal system based on n...
簡介 GitHub 平台
Ad

Similar to 第二周課程 Arduino介紹 (20)

PDF
5b50dc69-4ca7-41ee-a9dd-b4e8b220b4fe.pdf
PDF
Controlling and optimization of 3d optical stage for precise movement
PPT
co1.pptco1.pptco1.pptco1.pptco1.pptco1.ppt
PDF
IRJET- Android based Home Automation System with Power Optimization Modes
PDF
manual Internet of ThingsArduino_IOTArdu
PDF
IOT REPORT a Report on subject of IOT under VTU curriculum
PDF
IRJET- Arduino based Smart Grid Power Monitoring and Control by using IoT
PDF
Resume_indraneel_VLSI_VIT_UNIVERSITY_13_Dec_2015
PPT
Smartplug ppt
PDF
Three-Axis Auto Stabilizing Video Camera Platform
PDF
People Identification
DOCX
Atmega 16 drdo report
PDF
Analog to Digital Conversion Using Microcontroller Education Boards
PDF
Security, Privacy and Data Analytics: Select Proceedings of ISPDA 2021 Udai P...
PDF
Security, Privacy and Data Analytics: Select Proceedings of ISPDA 2021 Udai P...
PDF
Design and implementation of 32 bit alu using verilog
PPTX
MPPT Project
PDF
Ijarcet vol-2-issue-7-2389-2397
PDF
Ijarcet vol-2-issue-7-2389-2397
PPTX
esp8266nodemcu iot based project on 2025.pptx
5b50dc69-4ca7-41ee-a9dd-b4e8b220b4fe.pdf
Controlling and optimization of 3d optical stage for precise movement
co1.pptco1.pptco1.pptco1.pptco1.pptco1.ppt
IRJET- Android based Home Automation System with Power Optimization Modes
manual Internet of ThingsArduino_IOTArdu
IOT REPORT a Report on subject of IOT under VTU curriculum
IRJET- Arduino based Smart Grid Power Monitoring and Control by using IoT
Resume_indraneel_VLSI_VIT_UNIVERSITY_13_Dec_2015
Smartplug ppt
Three-Axis Auto Stabilizing Video Camera Platform
People Identification
Atmega 16 drdo report
Analog to Digital Conversion Using Microcontroller Education Boards
Security, Privacy and Data Analytics: Select Proceedings of ISPDA 2021 Udai P...
Security, Privacy and Data Analytics: Select Proceedings of ISPDA 2021 Udai P...
Design and implementation of 32 bit alu using verilog
MPPT Project
Ijarcet vol-2-issue-7-2389-2397
Ijarcet vol-2-issue-7-2389-2397
esp8266nodemcu iot based project on 2025.pptx

Recently uploaded (20)

PPTX
Sem-8 project ppt fortvfvmat uyyjhuj.pptx
PPTX
STEEL- intro-1.pptxhejwjenwnwnenemwmwmwm
PPTX
DEATH AUDIT MAY 2025.pptxurjrjejektjtjyjjy
DOCX
fsdffdghjjgfxfdghjvhjvgfdfcbchghgghgcbjghf
PPTX
了解新西兰毕业证(Wintec毕业证书)怀卡托理工学院毕业证存档可查的
PDF
PPT Determiners.pdf.......................
PPTX
Nanokeyer nano keyekr kano ketkker nano keyer
PPTX
quadraticequations-111211090004-phpapp02.pptx
PDF
How NGOs Save Costs with Affordable IT Rentals
PPT
FABRICATION OF MOS FET BJT DEVICES IN NANOMETER
PDF
Smarter Security: How Door Access Control Works with Alarms & CCTV
PPTX
Presentacion compuuuuuuuuuuuuuuuuuuuuuuu
PPTX
Computers and mobile device: Evaluating options for home and work
PPTX
Lecture-3-Computer-programming for BS InfoTech
PPTX
Fundamentals of Computer.pptx Computer BSC
PDF
Prescription1 which to be used for periodo
PPTX
code of ethics.pptxdvhwbssssSAssscasascc
PPT
Lines and angles cbse class 9 math chemistry
PDF
-DIGITAL-INDIA.pdf one of the most prominent
PPTX
02fdgfhfhfhghghhhhhhhhhhhhhhhhhhhhh.pptx
Sem-8 project ppt fortvfvmat uyyjhuj.pptx
STEEL- intro-1.pptxhejwjenwnwnenemwmwmwm
DEATH AUDIT MAY 2025.pptxurjrjejektjtjyjjy
fsdffdghjjgfxfdghjvhjvgfdfcbchghgghgcbjghf
了解新西兰毕业证(Wintec毕业证书)怀卡托理工学院毕业证存档可查的
PPT Determiners.pdf.......................
Nanokeyer nano keyekr kano ketkker nano keyer
quadraticequations-111211090004-phpapp02.pptx
How NGOs Save Costs with Affordable IT Rentals
FABRICATION OF MOS FET BJT DEVICES IN NANOMETER
Smarter Security: How Door Access Control Works with Alarms & CCTV
Presentacion compuuuuuuuuuuuuuuuuuuuuuuu
Computers and mobile device: Evaluating options for home and work
Lecture-3-Computer-programming for BS InfoTech
Fundamentals of Computer.pptx Computer BSC
Prescription1 which to be used for periodo
code of ethics.pptxdvhwbssssSAssscasascc
Lines and angles cbse class 9 math chemistry
-DIGITAL-INDIA.pdf one of the most prominent
02fdgfhfhfhghghhhhhhhhhhhhhhhhhhhhh.pptx

第二周課程 Arduino介紹

  • 1. f Networked Embedded Applications and Technologies Lab Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN Free-Software Arduino Kuan-Yu, Chen 陳冠宇
  • 2. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 2NEAT Outline  What is Arduino?  Source  Kernel architecture  Signal message.  What can you do by Arduino?  Develop environment  Just do it  LEDs  UART  PWM(Explain by Servo)  Analysis product
  • 3. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 3NEAT Download Software.  www.arduino.cc  http://140.116.245.210:5000/fbsharing/8N94DeUp
  • 4. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 4NEAT What is Arduino?
  • 5. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 5NEAT Source  From Italian Ivrea university. David Mellis 、 David Cuartielles 、 Gianluca Martino 、 Massimo Banzi 、 Tom Igoe
  • 6. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 6NEAT Kernel Architecture IC Type 8 bits 8051 、 ATMEGA8 16 bits PIC 、 MSP430 32 bits ARM • Only one schedule.
  • 7. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 7NEAT Kernel Architecture
  • 8. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 8NEAT Kernel Architecture Microcontroller ATmega328 Operating Voltage 5V Input Voltage (recommended) 7-12V Digital I/O Pins 14(6 for PWM) Analog Input Pins 6 DC Current per I/O Pin 40mA DC Current for 3.3V Pin 50mA Flash Memory 32KB(0.5 KB for bootloader ) Clock Speed 16Mhz SRAM 2 KB EEPROM 1KB
  • 9. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 9NEAT Kernel Architecture
  • 10. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 10NEAT Kernel Architecture  GPIO(General-purpose input/output)  AD(Analog to Digital)  Interrupt  PWM(Pulse-width modulation)  UART(Universal asynchronous reciver/transmitter)  SPI(Serial peripheral interface)  I2C(Inter-Integrated Circuit)  …  …
  • 11. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 11NEAT Signal message.  Sensor  Digital  Analog  Input/Output  Control  Display
  • 12. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 12NEAT What can you do by Arduino?
  • 13. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 13NEAT Develop environment  Base on C/C++.  Function. (By library)  Open-Source. (Include hardware and software)  Easy.
  • 14. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 14NEAT  Check Board.  Check Serial Port.
  • 15. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 15NEAT  Compile.  Download.
  • 16. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 16NEAT Just do it
  • 17. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 17NEAT  include<> or ””  void setup{}  void loop{}
  • 18. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 18NEAT LEDs  pinMode(GPIO,Pin mode);  digitalWrite(Pin,state);  delay(time);
  • 19. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 19NEAT UART  Serial.begin(baud rate);  Serial.available();  If receive someting.  Serial.read();  Return value of receive.  Serial.println(Value);
  • 20. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 20NEAT
  • 21. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 21NEAT
  • 22. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 22NEAT Lab  1. Try LEDs, UART and PWM(Servo).  2. Turn on the LED(pin13) if UART receive “H”.  3. Modify angle of motor by UART.
  • 23. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 23NEAT 1. DC Motor 2. Reducing gear 3. Controller 4. Sensor
  • 24. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 24NEAT
  • 25. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 25NEAT How to control 1. Use Servo.h 2. Set initial position. 3. Control.
  • 26. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 26NEAT PWM  include<Servo.h>  Servo name;  name.attach(pin);  name.write(pos);
  • 27. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 27NEAT Reference  2014 Arduino, www.arduino.cc  1know.net, http://1know.net/knowledge/97636f101c46?v=list  Arduino IDE introduction, Wiki, Decr, 2011, http://zh.wikipedia.org/wiki/Arduino  孫駿榮、吳明展、盧聰勇 , “Arduino 一試就上手 ( 第二 版 ),, , 碁峯資訊出版 , Sep,2012.  賴文章、陳冠宇 , “Arduino ”入門級中文教學 , Jan,2012.
  • 28. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 28NEAT Thanks for your listen