Arduino程式範例.

Slides:



Advertisements
Similar presentations
Wireless Cue Light Project
Advertisements

Making Electronic Fashion Welcome Pink Team!. Etiquette Creative Girls Technology Arts.
Khaled A. Al-Utaibi Interfacing an LED The Light Emitting Diode (LED) Applications DC Characteristics & Operation Interfacing to.
ARDUINO CLUB What we’re really doing. BASICS The setup() and loop() functions.
Electrical team Arduino tutorial I BY: JOSHUA arduini
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.
Analog and Digital Measurements living with the lab 14 digital input / output pins 6 analog input pins © 2012 David Hall.
Using the Arduino to Make an LED Flash Work in teams of two! living with the lab digital I/O pins (I/O = input / output) USB cable plug power pins.
Living with the Lab Using Your Arduino, Breadboard and Multimeter EAS 199A Fall 2011 Work in teams of two!
Photo-sensor Digital Camera Na 556 Transistor 2N-3904.
Living with the lab Introduction to Arduino Programming arduino.cc Gerald Recktenwald Portland State University
PING))) Ultrasonic Distance Sensor living with the lab ultrasonic pressure waves from PING))) speaker The PING))) sensor emits short bursts of sound and.
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.
Finish your programs from last week STOPLIGHT CIRCUIT! You may need … – int – void setup() – void loop() – pinMode – digitalWrite – delay.
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
Analog and Digital Measurements living with the lab 14 digital input / output pins 6 analog input pins © 2011 LWTL faculty team.
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.
PING))) Ultrasonic Distance Sensor living with the lab ultrasonic pressure waves from PING))) speaker The PING))) sensor emits short bursts of sound and.
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
Introduction to the Arduino
Cascade switching of an LED EAS 199B Winter 2013.
Open Sources OPERATING SYSTEMS. What is open sources?! product that which a company make for you and you can edit it free..
Arduino UNO. Massimo Banzi - Interaction Design Institute Ivrea Co Creators: David Cuartielles and David Mellis.
Code The Arduino Environment.
Microcontroller Hands-on Workshop #2 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers October 31, 2009.
Arduino libraries Datatekniker Udvidet hardware/software.
Photoresistor resistance changes dramatically with light level living with the lab Using Photoresistors with an Arduino © 2011 LWTL faculty team.
Microcontroller basics Embedded systems for mortals.
Robotics Grant Agreement No LLP UK-LEONARDO-LMP Project acronym: CLEM Project title: Cloud services for E-Learning in Mechatronics Technology.
Programming in Arduino Materials:Arduino Board Casperelectronics Pre Pres. Notes Photos from workshop?
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.
Introduction to Arduino A very basic intro to Arduino, the IDE and the Servos class.
Arduino + Bluetooth TYWu. Connection Arduino + Bluetooth Module.
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
Introduction to Mechatronics Women in Aeronautics and Astronautics (WIAA) Sponsored by Women in Engineering (WIE) Workshop Leaders: Elena Shrestha Rose.
Arduino Application: Speed control of small DC Motors
1 Transistor. 2 Transistors are used to turn components on and off They come in all different shapes and sizes.
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
Microcontroller basics
Val Manes Department of Math & Computer Science
UTA010 : Engineering Design – II
Cascade switching of an LED
Ultrasonic Distance Sensor
European Robotic LABoratory
INC 161 , CPE 100 Computer Programming
Lecture 2-2: Arduino Programming
Arduino.
Arduino Basics Connect Arduino to USB port
Controlling a Motor with Cascading Switches
Control the color and brightness of an RGB LED with a Potentiometer
Introduction to Arduinos
Topics: Analog/Digital Read Relay control 7 segment control Buzzer
ARDUINO     What is an Arduino? Features 14 Digital I/O pins 6 Analogue inputs 6 PWM pins USB serial 16MHz Clock speed 32KB Flash memory 2KB SRAM.
using the Arduino to make LEDs flash
1 Code
analog and digital measurements
Arduino: For Loops.
Arduino : Introduction & Programming
Multiplexing seven-segment displays
I/O Programming with Arduino
Aeroponic Engineering and Vertical Farming
Arduino Uno circuit basics
Setting up a basic program with Arduino
SAURABH GINGADE.
Arduino UMBC IEEE Sekar Kulandaivel Week 3: Motor Control w/ H-Bridges
Interrupts.
Ultrasonic Distance Sensor
Presentation transcript:

arduino程式範例

setup() 範例 void setup() { // initialize the digital pin as an output. pinMode(8, OUTPUT); pinMode(9, OUTPUT); pinMode(10, OUTPUT); pinMode(11, OUTPUT); pinMode(12, OUTPUT); pinMode(13, OUTPUT); }

loop() 範例 void loop() { digitalWrite(8, HIGH); // set the LED on R1 digitalWrite(9, LOW); // set the LED on a digitalWrite(10, LOW); // set the LED on f digitalWrite(11, HIGH); // set the LED on R2 digitalWrite(12, HIGH); // set the LED on L2 digitalWrite(13, LOW); // set the LED on b }