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

Slides:



Advertisements
Similar presentations
Wireless Cue Light Project
Advertisements

Book Project Sue Brandt Arduino Project Interactive with LEDS.
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.
Controlling Robot Car via Smartphone Supervisor: Dr. Jamal Kharousheh Prepared by : Hamza Qaddara Esmat Hedariya Hareth Hanani Faculty of Engineering Telecommunication.
Autumn 2013C.-S. Shieh, EC, KUAS, Taiwan1 微算機原理 / 微算機實習 Chin-Shiuh Shieh Department of Electronic Engineering National.
Introduction to Sensor Technology Week Four Adam Taylor
1 Arduino Board: Arduino UNO Arduino Programing Environment: Arduino 0022
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
ARDUINO PROGRAMMING Working with the Arduino microcontroller.
Arduino Part 2 Topics: Serial Communication Programming Constructs: functions, loops and conditionals Digital Input.
DPNM Lab., POSTECH 1/25 CS490K - Internet of Things (IoT) Jonghwan Hyun DPNM Lab. Department of Computer Science and Engineering, POSTECH
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.
Ballooning Bundle. What is a Microcontroller? Small computer with a processor core, memory and programmable input/output Continuously repeats software.
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Digital Input/Output Chin-Shiuh Shieh ( 謝欽旭 ) Department of.
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Analog Input/Output Chin-Shiuh Shieh ( 謝欽旭 ) Department of.
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Arduino Programming Language Chin-Shiuh Shieh ( 謝欽旭 ) Department.
Introduction to Sensor Technology Week Five Adam Taylor
Windows Programming, C.-S. Shieh, KUAS EC, Chapter 3 Operators and Expressions.
Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology.
Robootika lahenduste esitlus Raul Liinev Martin Ligema Siim Suu Martin Tõnne.
Serial Communication. mouseX from computer to arduino processing sends a single byte of data arduino reads each byte arduino uses value to set light brightness.
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Arduino Chin-Shiuh Shieh ( 謝欽旭 ) Department of Electronic Engineering.
Processing TYWu. Where can I download? 2.0b9 Windows 32-bit.
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Arduino Development Environment Chin-Shiuh Shieh ( 謝欽旭 ) Department.
Programming, Serial and Virtual Prototyping. Code if ( You like semicolons ) { Stay here for intro to Arduino code } else { Join the MODKit group for.
智慧電子應用設計導論(1/3) Arduino MEGA 2560
ARDUINO 1. Basics  Comments  /* * Blink * * The basic Arduino example. Turns on an LED on for one second, * then off for one second, and so on... We.
HMC5883L TYWu.
Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Actuator Chin-Shiuh Shieh ( 謝欽旭 ) Department of Electronic.
Basic Circuits – Lab 5 Wireless Networking Xmedia Spring 2011.
Autumn, 2012C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Sensors I Chin-Shiuh Shieh ( 謝欽旭 ) Department of Electronic.
Wireless TYWu. 433Mhz RF link kit Picture 433Mhz RF link kit Specification –Frequency: 433Mhz. –Receiver Data Output: High - 1/2 Vcc, Low - 0.7v –Transmitter.
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.
Welcome to Processing Who does not have access to digital camera?
Print Row Function void PrintRow(float x[ ][4],int i) { int j; for(j=0;j
機 器 車 介 紹 & 實做. 使用軟體 arduino 環境安裝 控制台 > 裝置管理員 > 更新驅動程式 C:\arduino windows\arduino \drivers.
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Communication - Serial Chin-Shiuh Shieh ( 謝欽旭 ) Department.
Serial Communication RS-232. In order to make two devices communicate, whether they are desktop computers, microcontrollers, or any other form of integrated.
Microcontroller basics Embedded systems for mortals.
ME 120: User-defined functions: average analog input reading Arduino Programming – Part 5: User-defined functions ME 120 Mechanical and Materials Engineering.
ME 120: Arduino Programming Arduino Programming Part II ME 120 Mechanical and Materials Engineering Portland State University
Autumn, 2012C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Arduino Development Environment Chin-Shiuh Shieh ( 謝欽旭 ) Department.
Arduino + Bluetooth TYWu. Connection Arduino + Bluetooth Module.
Lecture 9: Programming Beans Topics: Bean Android SDK Date: Mar 29, 2016.
Pulse-Width Modulation: Simulating variable DC output
Infrared Proximity Sensors & Liquid Crystal Display Instructor Dr Matthew Khin Yi Kyaw.
Written by ZEDO MiniQ - 개요 DFRobot( 에서 MiniQ 2WD 기반에 Romeo V2 All-in-one 컨트롤러 사용하여 사 용자가 다양한 컨스터마이징 작업을 수행할 수 있도록 제공함
Pulse Width Modulation Instructor Dr Matthew Khi Yi Kyaw.
ME 120: Photoresistors and Arduino Programming Arduino Programming Case Study: Photoresistor Measurements ME 120 Mechanical and Materials Engineering Portland.
Hacking on Arduino George Patterson
Lab 7 Basic 1: Game of Memory
智慧電子應用設計導論(1/3) Introduction
Wireless Cue Light Project
微算機原理/ 微算機實習 Chin-Shiuh Shieh
Arduino Part 1 Topics: Microcontrollers Programming Basics
INC 161 , CPE 100 Computer Programming
Programming, Serial and Virtual Prototyping
Debugging Debug environments Debug via serial
Topics: Programming Constructs: loops & conditionals Digital Input
کتابهای تازه خریداری شده دروس عمومی 1397
智慧電子應用設計導論(1/3) Arduino
UNIT 12 SERIAL INTERFACE.
UNIT 12 COMMUNICATIONS.
Arduino程式範例.
Pulse-Width Modulation: Simulating variable DC output
Presentation transcript:

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

Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan2 Communication Built-in –UART –SPI –TWI/I2C Software –UART –OneWire –…

Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan3 PC Smart Phone/Bluetooth Internet/WiFi,Ethernet Wireless UART GSM GPS …

Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan4 Serial -Functions if (Serial) available() begin() end() find() findUntil() flush() parseFloat() parseInt()

Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan5 Serial –Functions (cont) peek() print() println() read() readBytes() readBytesUntil() setTimeout() write() serialEvent()

Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan6 Example – available/read void setup() { Serial.begin(9600);Serial1.begin(9600); } void loop() { Serial1.println("Hello, Arduino!"); delay(500); while(Serial.available()) { Serial.print(char(Serial.read())); } delay(500); }

Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan7 Example – find/parse void setup() { Serial.begin(9600); } void loop() { if(Serial.find("Speed=")){ Serial.println(Serial.parseInt()); }

Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan8 Example – TMSIW_01/02 /mc/advanced/index.html#PCChttp://bit.kuas.edu.tw/~csshieh/teach/101A /mc/advanced/index.html#PCC – /advanced/pcc02.ziphttp://bit.kuas.edu.tw/~csshieh/teach/101A/mc /advanced/pcc02.zip – /advanced/pcc03.ziphttp://bit.kuas.edu.tw/~csshieh/teach/101A/mc /advanced/pcc03.zip

Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan9 Example – TMSIW_01 void setup() { int i; Serial.begin(9600); for(i=0;i<8;i++)pinMode(14+i,OUTPUT); } void loop() { unsigned char x; int i; while(Serial.available()) { x=Serial.read(); for(i=0;i<8;i++) {digitalWrite(14+i,bitRead(x,i));} Serial.write(analogRead(A0)/4); delay(100); }

Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan10 Serial.print() Serial.read() ComPort programming on PC

Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan11 Example – TMSIW_02 void setup() { Serial.begin(9600); } void loop() { Serial.write(analogRead(A0)/4); delay(100); }

Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan12 Smart Phone/Bluetooth Android programming

Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan13 Internet/WiFi,Ethernet Internet programming on PC or Smartphone

Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan14 Wireless UART

Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan15