Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Digital Input/Output Chin-Shiuh Shieh ( 謝欽旭 ) Department of.

Slides:



Advertisements
Similar presentations
Continuation of chapter 6…. Nested while loop A while loop used within another while loop is called nested while loop. Q. An illustration to generate.
Advertisements

For(int i = 1; i
Autumn 2012C.-S. Shieh, EC, KUAS, Taiwan1 The 8051 Family Microcontroller Chin-Shiuh Shieh Department of Electronic Engineering.
Anurag Dwivedi & Rudra Pratap Suman.  Open Source electronic prototyping platform based on flexible easy to use hardware and software.
Embedded Sumo 1T4 – 1T5 UTRA.
Digital & Analog Inputs. Review Fundamental parts of an Arduino program are … Setting output types using pinMode. Declaring variables Can write a digital.
Autumn 2013C.-S. Shieh, EC, KUAS, Taiwan1 微算機原理 / 微算機實習 Chin-Shiuh Shieh Department of Electronic Engineering National.
中華通訊大學部課程規劃流程圖 基礎課程核心課程應用課程 程式設計 I,II 微處理機 I,II 數位邏輯 FPGA 無線通訊 MAC 靭體設計 計算機應用 / 通訊靭體設計專業領域 大ㄧ大二 大三大四 嵌入式 系統專題 專業選修專題設計 II 硬體描述語言 FPGA+HDL 無線通訊 嵌入式系統 專題設計.
Spring, 2013C.-S. Shieh, EC, KUAS, Taiwan1 Heuristic Optimization Methods Prologue Chin-Shiuh Shieh.
1 st Year2 nd Year3 rd Year4 th Year FallSpringFallSpringFallSpringFallSpring 資料庫實務 (Database Practices) 資料庫系統 (Database System) 人工智慧 (Artificial Intelligence)
Analog and Digital Measurements living with the lab 14 digital input / output pins 6 analog input pins © 2011 LWTL faculty team.
Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Communication - Serial Chin-Shiuh Shieh ( 謝欽旭 ) Department.
Basic Circuits – Lab 2 Arduino and Sensors Xmedia Spring 2011.
Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Display Chin-Shiuh Shieh ( 謝欽旭 ) Department of Electronic Engineering.
Parallax 4x20 LCD (part number 27979) with Arduino Duemilanove
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Audio Chin-Shiuh Shieh ( 謝欽旭 ) Department of Electronic Engineering.
chipKit Sense Switch & Control LED
Autumn, 2012C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Sensors III Chin-Shiuh Shieh ( 謝欽旭 ) Department of Electronic.
2.0 EMBEDDED CONTROLLER Engr. Hj. Mohamad Fauzi bin Zakaria Department of Mechatronics and Robotics Engineering Faculty of Electrical and Electronic Engineering.
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Analog Input/Output Chin-Shiuh Shieh ( 謝欽旭 ) Department of.
Khaled A. Al-Utaibi  The Push Button  Interfacing Push Buttons to Arduino  Programming Digital Inputs  Working with “Bouncy”
Cascade switching of an LED EAS 199B Winter 2013.
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Arduino Programming Language Chin-Shiuh Shieh ( 謝欽旭 ) Department.
Windows Programming, C.-S. Shieh, KUAS EC, Chapter 3 Operators and Expressions.
Pulse Width Modulation (PWM). 100% Pulse Width Modulation (PWM) 0% On the chipKIT there are 490 periods per second. Use analogWrite(pin, value) to control.
Good LED Circuit 5V0 GND. What Voltage Does Meter See? Answer: 5 V.
LECTURE 2 – INPUTS THIS LECTURE WILL INTRODUCE HOW TO INPUT SIGNALS INTO AN ARDUINO.
Microprocessors Tutorial 1: Arduino Basics
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Arduino Chin-Shiuh Shieh ( 謝欽旭 ) Department of Electronic Engineering.
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Arduino Development Environment Chin-Shiuh Shieh ( 謝欽旭 ) Department.
智慧電子應用設計導論(1/3) Arduino MEGA 2560
Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Actuator Chin-Shiuh Shieh ( 謝欽旭 ) Department of Electronic.
Arduino libraries Datatekniker Udvidet hardware/software.
Using for loops to control LEDs living with the lab 1 1 arduino.cc the for statement allows us to repeat a block of commands a limited number of times.
Autumn, 2012C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Sensors I Chin-Shiuh Shieh ( 謝欽旭 ) Department of Electronic.
Windows Programming, C.-S. Shieh, KUAS EC, Chapter 9.5 I/O Communication.
Photoresistor resistance changes dramatically with light level living with the lab Using Photoresistors with an Arduino © 2011 LWTL faculty team.
機 器 車 介 紹 & 實做. 使用軟體 arduino 環境安裝 控制台 > 裝置管理員 > 更新驅動程式 C:\arduino windows\arduino \drivers.
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Communication - Serial Chin-Shiuh Shieh ( 謝欽旭 ) Department.
Fundamental Digital Electronics
微波電路期中報告 論文研討 : Experimental Design Method for GHz-Band High- Efficiency Power Amplifiers Based on MHz-Band Active Harmonics Load-Pull Technique Ryo Ishikawa,
IR Object Detection living with the lab IR light from LED IR light reflected off object IR LED IR receiver Infrared (IR) light leaving an LED reflects.
Autumn, 2012C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Arduino Development Environment Chin-Shiuh Shieh ( 謝欽旭 ) Department.
Bdps 2 Lecture 2. Circuits and Ohm's Law For resistive circuits.
LAB1 TYWU. Devices Dip Switch (4 Switches) Triple Output LED (RGB) –Common Cathode.
Arduino + Bluetooth TYWu. Connection Arduino + Bluetooth Module.
:Blink Blink: Er. Sahil Khanna
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
ME 120: Arduino Programming Arduino Programming Part 1 ME 120 Mechanical and Materials Engineering Portland State University
Introduction to Mechatronics Women in Aeronautics and Astronautics (WIAA) Sponsored by Women in Engineering (WIE) Workshop Leaders: Elena Shrestha Rose.
Lab 7 Basic 1: Game of Memory
智慧電子應用設計導論(1/3) Introduction
UTA010 : Engineering Design – II
微算機原理/ 微算機實習 Chin-Shiuh Shieh
Cascade switching of an LED
CS4101 Introduction to Embedded Systems Lab 1: General Purpose IO
European Robotic LABoratory
INC 161 , CPE 100 Computer Programming
Arduino.
Analog Input through POT
Input and Output Interfaces
CS-4540 Robotics - Lab 05 Switch inputs to the Arduino Uno
Transistors to Gates Transistors to Gates Gateway To Technology
Topics: Programming Constructs: loops & conditionals Digital Input
ВОМР Подмярка 19.2 Възможности за финансиране
Споразумение за партньорство
class PrintOnetoTen { public static void main(String args[]) {
LED and a Button.
智慧電子應用設計導論(1/3) Arduino
Arduino程式範例.
Presentation transcript:

Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Digital Input/Output Chin-Shiuh Shieh ( 謝欽旭 ) Department of Electronic Engineering National Kaohsiung University of Applied Sciences, Taiwan

Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan2 Digital Input/Output

Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan3 Digital Input/Output (cont) pinMode(pin,mode); digitalWrite(pin,value); digitalRead(pin);

Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan4 Example – LED

Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan5 Example – LED (cont) void setup() { int pin; for(pin=14;pin<=21;pin++) { pinMode(pin,OUTPUT); digitalWrite(pin,HIGH); } void loop() { int pin; for(pin=14;pin<=21;pin++) { digitalWrite(pin,LOW); delay(100); digitalWrite(pin,HIGH); }

Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan6 Example DIP Switch

Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan7 Example DIP Switch (cont) void setup() { int pin; for(pin=14;pin<=21;pin++) { pinMode(pin,OUTPUT); pinMode(pin*2+3,INPUT); } void loop() { int pin; for(pin=14;pin<=21;pin++) { digitalWrite(pin,digitalRead(pin*2+3)); }

Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan8 Example - Button

Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan9 Example – Button (cont) int button = 2;int LED = 13; void setup() { pinMode(button,INPUT); pinMode(LED,OUTPUT);digitalWrite(LED,LOW); } void loop() { if(digitalRead(button)==LOW) { for(int i=0;i<3;i++) { digitalWrite(LED,HIGH);delay(500); digitalWrite(LED,LOW);delay(500); }