Autumn, 2014C.-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.
RTOS with NiosII Stig Dyngeland Pia Katrin Berge Iago Martin Eraso.
Lecture 1 – Arduino Basics
Autumn 2012C.-S. Shieh, EC, KUAS, Taiwan1 The 8051 Family Microcontroller Chin-Shiuh Shieh Department of Electronic Engineering.
Intermediate Electronics and Lilypad Where Electronics Meet Textiles Workshop with Lynne Bruning and Troy Robert Nachtigall Sponsored by Spark Fun and.
Anurag Dwivedi & Rudra Pratap Suman.  Open Source electronic prototyping platform based on flexible easy to use hardware and software.
Embedded Sumo 1T4 – 1T5 UTRA.
Autumn 2013C.-S. Shieh, EC, KUAS, Taiwan1 微算機原理 / 微算機實習 Chin-Shiuh Shieh Department of Electronic Engineering National.
Spring, 2013C.-S. Shieh, EC, KUAS, Taiwan1 Heuristic Optimization Methods Prologue Chin-Shiuh Shieh.
1 Arduino Board: Arduino UNO Arduino Programing Environment: Arduino 0022
Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Communication - Serial Chin-Shiuh Shieh ( 謝欽旭 ) Department.
Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Display Chin-Shiuh Shieh ( 謝欽旭 ) Department of Electronic Engineering.
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.
GRUNIGEN MEDICAL LIBRARY. grunigen.lib.uci.edu.
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.
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.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
ALL TERRAIN ROBOT 1 Wilmer Arellano. The Client’s Need  Verbally presented at class time.  Modify the All Terrain Manual Robot into an autonomous Gripper.
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.
Windows Programming, C.-S. Shieh, KUAS EC, Chapter 0 Overview.
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.
智慧電子應用設計導論(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.
Basic Circuits – Lab 4 Serial and OSC (maybe some theory too) Xmedia Spring 2011.
BETWEEN C# WİTH PROTEUS
HMC5883L TYWu.
Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Actuator Chin-Shiuh Shieh ( 謝欽旭 ) Department of Electronic.
Arduino libraries Datatekniker Udvidet hardware/software.
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
Serial Communication RS-232. In order to make two devices communicate, whether they are desktop computers, microcontrollers, or any other form of integrated.
Global Positioning System (GPS) Allen Zhao, Guanlun He, Matt Cui.
Microcontroller basics Embedded systems for mortals.
Microcontroller basics Embedded systems for mortals.
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.
Microcontroller basics
Lecture 9: Programming Beans Topics: Bean Android SDK Date: Mar 29, 2016.
Electronic instrumentation Digitization of Analog Signal in TD
Pulse-Width Modulation: Simulating variable DC output
Infrared Proximity Sensors & Liquid Crystal Display Instructor Dr Matthew Khin Yi Kyaw.
Pulse Width Modulation Instructor Dr Matthew Khi Yi Kyaw.
Lab 7 Basic 1: Game of Memory
智慧電子應用設計導論(1/3) Introduction
CS4101 Introduction to Embedded Systems Lab 10: Tasks and Scheduling
微算機原理/ 微算機實習 Chin-Shiuh Shieh
INC 161 , CPE 100 Computer Programming
Cs212: DataStructures Computer Science Department Lab 3 : Recursion.
Topics: Programming Constructs: loops & conditionals Digital Input
智慧電子應用設計導論(1/3) Arduino
Arduino程式範例.
Presentation transcript:

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

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

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

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

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

Autumn, 2014C.-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, 2014C.-S. Shieh, EC, KUAS, Taiwan7 Example – find/parse void setup() { Serial.begin(9600); } void loop() { if(Serial.find("Speed=")){ Serial.println(Serial.parseInt()); }

Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan8 RS-232 Programming on PC My personal choice –Borland C++ Builder 5.0 –ComPort Library version 2.64 by Paul Doland –TMS Instrumentation Workshop by TMS Software /mc/advanced/index.html#PCChttp://bit.kuas.edu.tw/~csshieh/teach/101A /mc/advanced/index.html#PCC

Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan9 Example – TMSIW_02 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); } dvanced/pcc02.zip on PChttp://bit.kuas.edu.tw/~csshieh/teach/101A/mc/a dvanced/pcc02.zip

Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan10 Example – TMSIW_03 void setup() { Serial.begin(9600); } void loop() { Serial.write(analogRead(A0)/4); delay(100); } dvanced/pcc03.zip on PChttp://bit.kuas.edu.tw/~csshieh/teach/101A/mc/a dvanced/pcc03.zip