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

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
ARDUINO CLUB What we’re really doing. BASICS The setup() and loop() functions.
Autumn 2012C.-S. Shieh, EC, KUAS, Taiwan1 The 8051 Family Microcontroller Chin-Shiuh Shieh Department of Electronic Engineering.
1 Data Structures - CSCI 102 CS102 C++ Operator Overloading Prof Tejada.
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.
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, 2013C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Communication - Serial Chin-Shiuh Shieh ( 謝欽旭 ) Department.
Parallax 4x20 LCD (part number 27979) with Arduino Duemilanove
Digital Outputs LCD Display
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Audio Chin-Shiuh Shieh ( 謝欽旭 ) Department of Electronic Engineering.
Autumn, 2012C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Sensors III Chin-Shiuh Shieh ( 謝欽旭 ) Department of Electronic.
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Digital Input/Output Chin-Shiuh Shieh ( 謝欽旭 ) Department of.
Practical Electronics & Programming
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Analog Input/Output Chin-Shiuh Shieh ( 謝欽旭 ) Department of.
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.
Franz Duran INTRODUCTION TO A RDUINO PROGRAMMING & INTERFACING Engr. Franz Duran, MEP-ECE RapidSignal Electronics.
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.
CS110 Programming Language I Lab 4: Control Statements I Computer Science Department Spring 2014.
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
Servo Demonstration In MPIDE, select File > Examples > Servo > Sweep.
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 2 Application Design Flow.
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.
Temperature Sensor TYWu. Seeed’s Temperature Sensor Picture.
Int fact (int n) { If (n == 0) return 1; else return n * fact (n – 1); } 5 void main () { Int Sum; : Sum = fact (5); : } Factorial Program Using Recursion.
微波電路期中報告 論文研討 : 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.
LAB1 TYWU. Devices Dip Switch (4 Switches) Triple Output LED (RGB) –Common Cathode.
Arduino + Bluetooth TYWu. Connection Arduino + Bluetooth Module.
Arduino Programming Part 6: LCD Panel Output ME 121 Portland State University.
Infrared Proximity Sensors & Liquid Crystal Display Instructor Dr Matthew Khin Yi Kyaw.
Lab 7 Basic 1: Game of Memory
Lab 2: Arduino Sensors Topics: Arduino Sensor Reading, Display
智慧電子應用設計導論(1/3) Introduction
CS4101 Introduction to Embedded Systems Lab 10: Tasks and Scheduling
微算機原理/ 微算機實習 Chin-Shiuh Shieh
UNIVERSAL COLLEGE OF ENGINEERING & TECHNOLOGY
CS4101 Introduction to Embedded Systems Lab 1: General Purpose IO
Arduino.
Figure Pin Positions for Various LCDs from Optrex
ФОНД ЗА РАЗВОЈ РЕПУБЛИКЕ СРБИЈЕ
Input and Output Interfaces
CS4101 Introduction to Embedded Systems Lab 8: Arduino DAC and PWM
Cs212: DataStructures Computer Science Department Lab 3 : Recursion.
Topics: Programming Constructs: loops & conditionals Digital Input
ВОМР Подмярка 19.2 Възможности за финансиране
Споразумение за партньорство
'III \-\- I ', I ,, - -
class PrintOnetoTen { public static void main(String args[]) {
The George Washington University Electrical & Computer Engineering Department ECE 1020 Dr. S. Ahmadi Lab 1.
智慧電子應用設計導論(1/3) Arduino
Arduino at UMBC Sekar Kulandaivel Week 4: LCD & Serial
,, 'III \-\-
Arduino程式範例.
Presentation transcript:

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

Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan2 Character LCD

Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan3 Character LCD (cont)

Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan4 Character LCD (cont) #include LiquidCrystal lcd(2,3,4, 14,15,16,17,18,19,20,21); void setup() { lcd.begin(16, 2); Serial.begin(9600); } void loop() { lcd.clear(); lcd.print(analogRead(A0)); delay(100); }

Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan5 Graphic LCD – SSC12A32DRG /ie/note/LMG_SSC12A32DLGY.zip

Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan6 Color LCD Shield /ie/note/ColorLCDShield.zip

Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan7 LED Matrix

Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan8 LED Matrix (cont) // Pin assignmnet int y[16]={0,1,2,3,4,5,6,7,14,15,16,17,18,19,20,21}; int x[16]={22,24,26,28,30,32,34,36,39,41,43,45,47,49,5 1,53}; void setup() { for(int i=0;i<16;i++) { pinMode(y[i],OUTPUT);digitalWrite(y[i],LOW); pinMode(x[i],OUTPUT);digitalWrite(x[i],HIGH); }

Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan9 LED Matrix (cont) void loop() { int x_value=1024-analogRead(A0); int y_value=analogRead(A1); for(int i=0;i<16;i++) { if(y_value/64==i) digitalWrite(y[i],HIGH); else analogWrite(y[i],LOW); if(x_value/64==i) digitalWrite(x[i],LOW); else digitalWrite(x[i],HIGH); }