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

Slides:



Advertisements
Similar presentations
Autumn 2012C.-S. Shieh, EC, KUAS, Taiwan1 The 8051 Family Microcontroller Chin-Shiuh Shieh Department of Electronic Engineering.
Advertisements

1 Data Structures - CSCI 102 CS102 C++ Operator Overloading Prof Tejada.
Introduction to Sensor Technology Week Three Adam Taylor
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.
PING))) Ultrasonic Distance Sensor living with the lab ultrasonic pressure waves from PING))) speaker The PING))) sensor emits short bursts of sound and.
Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Communication - Serial Chin-Shiuh Shieh ( 謝欽旭 ) Department.
1 Ultrasonic Distance Sensor. 2 How it Works The distance sensor emits short bursts of sound and listens for this sound to echo off of nearby objects.
PROGRAMMING WITH ARDUINO. Arduino An open-source hardware platform based on an Atmel AVR 8-bit microcontroller and a C++ based IDE Over boards.
Arduino web site: What is Arduino? Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and.
Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Display Chin-Shiuh Shieh ( 謝欽旭 ) Department of Electronic Engineering.
Embedded Programming and Robotics Lesson 10 Ultrasonic Range Finder Range Finder1.
Basic Circuits – Lab 2 Arduino and Sensors
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Audio Chin-Shiuh Shieh ( 謝欽旭 ) Department of Electronic Engineering.
Sensors Material taken from Robotics with the Boe-Bot.
Sensor Technology Dr. Konstantinos Tatas. Outline Introduction Sensor requirements Sensor Technology Selecting a sensor Interfacing with sensors Integrated.
PING))) Ultrasonic Distance Sensor living with the lab ultrasonic pressure waves from PING))) speaker The PING))) sensor emits short bursts of sound and.
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.
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.
33% Multi-screened while gaming 1 6 v.
Material taken from Robotics with the Boe-Bot
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
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.
Arduino Circuits and Code. int ledPin = 9; void setup() { pinMode(ledPin, OUTPUT); } void loop() { digitalWrite(ledPin, LOW); delay(1000); digitalWrite(ledPin,
Basic Circuits – Lab 4 Serial and OSC (maybe some theory too) Xmedia Spring 2011.
Autumn, 2013C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Actuator Chin-Shiuh Shieh ( 謝欽旭 ) Department of Electronic.
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.
Photoresistor resistance changes dramatically with light level living with the lab Using Photoresistors with an Arduino © 2011 LWTL faculty team.
LM35 TEMPERATURE SENSOR  The LM35 is an integrated circuit sensor that can be used to measure temperature with an electrical output proportional to the.
機 器 車 介 紹 & 實做. 使用軟體 arduino 環境安裝 控制台 > 裝置管理員 > 更新驅動程式 C:\arduino windows\arduino \drivers.
PROGRAMMING WITH ARDUINO. Arduino An open-source hardware platform based on an Atmel AVR 8-bit microcontroller and a C++ based IDE Over boards.
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Communication - Serial Chin-Shiuh Shieh ( 謝欽旭 ) Department.
Temperature Sensor TYWu. Seeed’s Temperature Sensor Picture.
INTERNET OF EVERYTHING SDU 2016 Week 6. Getting Input from Sensors  Sensors give report on the world around it  Sensors convert physical input an electrical.
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.
Arduino + Bluetooth TYWu. Connection Arduino + Bluetooth Module.
Istituto Tecnico Industriale A.Monaco EURLAB Object Detection Object Detection by Ultrasonic How to install and program a ultra sonic sensor with Arduino.
Ultrasonic Sensor TYWu.
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.
DC Motor – H bridge L293D ile Kontrolü /* Adafruit Arduino - Lesson 15. Bi-directional Motor */ int enablePin = 11; int in1Pin = 10; int in2Pin = 9; int.
Using Arduino and Cheap Ultrasonic Transducer for Robotics
Lab 7 Basic 1: Game of Memory
Using Arduinos to Teach Engineering Concepts
Assist. Prof. Rassim Suliyev - SDU 2017
智慧電子應用設計導論(1/3) Introduction
Sensors with Arduino A Microcontroller.
微算機原理/ 微算機實習 Chin-Shiuh Shieh
Ultrasonic Distance Sensor
Arduino motor control using servo & ultrasonic sensor
Maxbotix Ultrasonic Distance Sensor
Ultrasonic Distance Sensor
CS4101 Introduction to Embedded Systems Lab 8: Arduino DAC and PWM
Default Arguments.
The George Washington University Electrical & Computer Engineering Department ECE 1020 Dr. S. Ahmadi Lab 1.
1.5: Velocity-time graphs
智慧電子應用設計導論(1/3) Arduino
Speed, Velocity, & Acceleration
Created by Mrs. Bertoson Feb 2012
Arduino UMBC IEEE Sekar Kulandaivel
Ultrasonic Distance Sensor
Presentation transcript:

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

Autumn, 2012C.-S. Shieh, EC, KUAS, Taiwan2 PING )))

Autumn, 2012C.-S. Shieh, EC, KUAS, Taiwan3 PING ))) (cont) const int pingPin = 2; void setup() { Serial.begin(9600); } void loop() { long duration, inches, cm; pinMode(pingPin, OUTPUT);digitalWrite(pingPin, LOW); delayMicroseconds(2);digitalWrite(pingPin, HIGH); delayMicroseconds(5);digitalWrite(pingPin, LOW); pinMode(pingPin, INPUT);duration = pulseIn(pingPin, HIGH); cm = microsecondsToCentimeters(duration); Serial.print(cm);Serial.print("cm");Serial.println(); delay(100); }

Autumn, 2012C.-S. Shieh, EC, KUAS, Taiwan4 PING ))) (cont) long microsecondsToCentimeters(long microseconds) { // The speed of sound is 340 m/s or 29 microseconds per centimeter. // The ping travels out and back, so to find the distance of the // object we take half of the distance travelled. return microseconds / 29 / 2; }

Autumn, 2012C.-S. Shieh, EC, KUAS, Taiwan5

Autumn, 2012C.-S. Shieh, EC, KUAS, Taiwan6 3-Axis Accelerometer arduino-library/ arduino-library/

Autumn, 2012C.-S. Shieh, EC, KUAS, Taiwan7 3-Axis Accelerometer (cont) #include MMA_7455 mySensor = MMA_7455(); char xVal, yVal, zVal; void setup() { Serial.begin(9600); // Set the sensitivity you want to use // 2 = 2g, 4 = 4g, 8 = 8g mySensor.initSensitivity(2); // Calibrate the Offset, that values corespond in // flat position to: xVal = -30, yVal = -20, zVal = +20 // !!!Activate this after having the first values read out!!! //mySensor.calibrateOffset(0.23, -43.2, 12.43); }

Autumn, 2012C.-S. Shieh, EC, KUAS, Taiwan8 3-Axis Accelerometer (cont) void loop() { xVal = mySensor.readAxis('x'); yVal = mySensor.readAxis('y'); zVal = mySensor.readAxis('z'); Serial.print(xVal,DEC);Serial.print(" "); Serial.print(yVal,DEC);Serial.print(" "); Serial.print(zVal,DEC);Serial.print(" "); Serial.println(); delay(500); }

Autumn, 2012C.-S. Shieh, EC, KUAS, Taiwan9 Gyroscope

Autumn, 2012C.-S. Shieh, EC, KUAS, Taiwan10 Gyroscope (cont) #define LISY300_Dout 2 #define LISY300_SCLK 3 #define LISY300_CS 4 void setup() { Serial.begin(9600); pinMode(LISY300_Dout,INPUT); pinMode(LISY300_SCLK,OUTPUT);digitalWrite(LISY300_ SCLK,HIGH); pinMode(LISY300_CS,OUTPUT);digitalWrite(LISY300_CS,HIGH); }

Autumn, 2012C.-S. Shieh, EC, KUAS, Taiwan11 Gyroscope (cont) void loop() { int val=0; digitalWrite(LISY300_CS,LOW); for(int i=0;i<13;i++) { digitalWrite(LISY300_SCLK,LOW); val=val*2+digitalRead(LISY300_Dout); digitalWrite(LISY300_SCLK,HIGH); } digitalWrite(LISY300_CS,HIGH); Serial.println(val); delay(100); }

Autumn, 2012C.-S. Shieh, EC, KUAS, Taiwan12 Color Sensor