WALT: definition and decomposition of complex problems in terms of functional and non-functional requirements

Size: px
Start display at page:

Download "WALT: definition and decomposition of complex problems in terms of functional and non-functional requirements"

Transcription

1 Item 12: Burglar Alarmed Monday, 15 October :31 PM BURGLAR ALARMED EXPLORE WALT: definition and decomposition of complex problems in terms of functional and non-functional requirements WILF - Defined how each component works by identifying or describing their qualities. - Identified where and why component are connected into the GPIO - Described how the circuit works and the relationships between components. Processes and production skills Investigating and defining A B C The student work has the following characteristics: The student work has the following characteristics: The student work has the following characteristics: purposeful definition and decomposition of complex problems in terms of functional and non-functional requirements - Defined how all components works by identifying or describing their qualities. - Identified why and where all of the components are connected into the GPIO - Described how the whole circuit works, with both text and images. effective definition and decomposition of complex problems in terms of functional and non-functional requirements - Defined how most components works by identifying or describing their qualities. - Identified why and where most of the components are connected into the GPIO - Described how the circuit works, with both text and images. definition and decomposition of complex problems in terms of functional and non-functional requirements - Defined how some components works by identifying or describing their qualities. - Identified why and where some of the components are connected into the GPIO - Described how the circuit works. Difficulty: moderate Estimated Effort: 70 Mins Value: 10% Components List: Arduino Board USB Cable Piezo Buzzer Ultrasonic Sensor Physical Computing and Embedded Sytems Page 1

2 Ultrasonic Sensor This sensor bounces a sound wave of a frequency (that cannot be heard by the human ear) off a surface and measures the amount of time it takes for the sound to return to the sensor. Here s what happens: The transmitter (trig pin) sends a signal: a high-frequency sound. When the signal finds an object, it is reflected and the transmitter (echo pin) receives it. The time between the transmission and reception of the signal allows us to know the distance to an object. This is possible because we know the sound s velocity in the air. From < An ultrasonic sensor s accuracy and range mean it can measure distances between 2 and 300 cm. However, because the sound wave needs to be reflected back to the sensor, the sensor must be angled less than 45 degrees away from the direction of travel. Connecting the Ultrasonic Sensor To connect the sensor, attach the Vcc lead to the 5V pin and the Gnd lead to any GND pin. The Trig and Echo can be connected to any GPIO pin. Physical Computing and Embedded Sytems Page 2

3 Using the Ultrasonic Sensor To Measure Distance The ultrasonic sensor takes measurements only when requested to do so. To take a measurement, we send a very short HIGH signal of 5 microseconds (ms) to the SIG pin. After a moment, the sensor should return a HIGH signal whose length is the period of time the ultrasonic sound takes to travel from and to the sensor; this value should be halved to determine the actual distance between the sensor and the object. We need to use the same digital pin for output and input, and two new functions: delaymicroseconds(ms) Pauses the Arduino sketch in microseconds (ms) pulseduration(pin, HIGH) Measures the length of a HIGH pulse on digital pin pin and returns the time in microseconds After we have the duration of the incoming pulse, we convert it to centimeters by dividing it by (because the speed of sound is 340 meters per second, or 34 cm per millisecond). To simplify using the sensor, we use the function getdistance() More Resources: How an Arduino Ultrasonic Sensor Works Ultrasonic HC-SR04 Range Sensor Pins used: GND, GND, 5V, 11, 6, 7, The buzzer will work from outputting a HIGH(5V) or on and LOW (0V) or off signal through pin 11. The Ultrasonic Sensor is powered via the GND and the 5V pins A Trigger OUTPUT signal is sent to the Ultrasonic Sensor via pin 7 An Echo INPUT return signal is sent to the board via pin 6 The Circuit: INSTRUCTIONS 1. Connect as shown in the Fritzing (circuit) diagram above. Take a photo for your portfolio, or set up a virtual circuit in tinkercad and take a screenshot. 2. Answer these questions: Physical Computing and Embedded Sytems Page 3

4 Portfolio Task Questions for EXPLORE 1. Define how each of the components work? Identify each component and describe how they work with text and images. 2. Identify what and where components are plugged into the GPIO. Why there? 3. Describe How the circuit works? Tell the story. Include a picture. [ use ] DEVELOP WALT: design and evaluation of user experiences and algorithms WILF Design - interpret existing code: > Analyse to identify where input, output, processing and storage occurs in the code. > translated code into pseudocode - Plan to modify parts of the code to make it work differently or more effectively Evaluation - Recommended ways to use the technology differently. Processes and production skills Generating and designing - producing and implementing A B C The student work has the following characteristics: The student work has the following characteristics: The student work has the following characteristics: purposeful design and evaluation of user experiences and algorithms - identified where all input, output, processing and storage occurs in the code. - translated all code into pseudocode - Plan to modify several parts of the code to make it work differently - Recommended ways to use the technology differently. effective design and evaluation of user experiences and algorithms - identified where most input, output, processing and storage occurs in the code. - translated most code into pseudocode - Plan to modify some parts of the code to make it work differently - Recommended some ways to use the technology differently. design and evaluation of user experiences and algorithms - identified where some input, output, processing and storage occurs in the code. - translated some code into pseudocode - Plan to modify some parts of the code to make it work differently - Recommended a way to use the technology differently. Algorithms: Sequence, selection Code structure, values and functions: int [Data Types] To store a value in code, we use variables. There are many kinds of values or types of data that we may want to store. Integers are your primary data-type for number storage From < If else [Control Structure] The if statement checks for a condition and executes the proceeding statement or set of statements if the condition is 'true'. Physical Computing and Embedded Sytems Page 4

5 if (condition) { //statement(s) condition: a boolean expression i.e., can be true or false The statements being evaluated inside the parentheses require the use of one or more operators shown below. Comparison Operators: x == y (x is equal to y) x!= y (x is not equal to y) x < y (x is less than y) x > y (x is greater than y) x <= y (x is less than or equal to y) x >= y (x is greater than or equal to y) From < digitalwrite() [Digital I/O] Write a HIGH or a LOW value to a digital pin. If the pin has been configured as an OUTPUT with pinmode(), its voltage will be set to the corresponding value: 5V for HIGH, 0V (ground) for LOW. digitalwrite(pin, value) pin: the pin number value: HIGH or LOW From < pinmode() [Digital I/O] Configures the specified pin to behave either as an input or an output pinmode(pin, mode) pin: the number of the pin whose mode you wish to set mode: INPUT, OUTPUT, or INPUT_PULLUP. (see the (digital pins) page for a more complete description of the functionality.) From < delay() [Time] Pauses the program for the amount of time (in milliseconds) specified as parameter. (There are 1000 milliseconds in a second.) delay(ms) ms: the number of milliseconds to pause (unsigned long) From < delaymicroseconds() [Time] Physical Computing and Embedded Sytems Page 5

6 Pauses the program for the amount of time (in microseconds) specified as parameter. There are a thousand microseconds in a millisecond, and a million microseconds in a second. Currently, the largest value that will produce an accurate delay is This could change in future Arduino releases. For delays longer than a few thousand microseconds, you should use delay() instead. delaymicroseconds(us) us: the number of microseconds to pause (unsigned int) From < pulsein() [Advanced I/O] Reads a pulse (either HIGH or LOW) on a pin. For example, if value is HIGH, pulsein() waits for the pin to go from LOWto HIGH, starts timing, then waits for the pin to go LOW and stops timing. Returns the length of the pulse in microseconds or gives up and returns 0 if no complete pulse was received within the timeout. The timing of this function has been determined empirically and will probably show errors in longer pulses. Works on pulses from 10 microseconds to 3 minutes in length. pulsein(pin, value) pulsein(pin, value, timeout) pin: the number of the pin on which you want to read the pulse. (int) value: type of pulse to read: either HIGH or LOW. (int) timeout (optional): the number of microseconds to wait for the pulse to start; default is one second (unsigned long) Returns the length of the pulse (in microseconds) or 0 if no pulse started before the timeout (unsigned long) From < Serial.begin() Sets the data rate in bits per second (baud) for serial data transmission. For communicating with the computer, use one of these rates: 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, or You can, however, specify other rates - for example, to communicate over pins 0 and 1 with a component that requires a particular baud rate. An optional second argument configures the data, parity, and stop bits. The default is 8 data bits, no parity, one stop bit. Serial.begin(speed) Serial.begin(speed, config) speed: in bits per second (baud) - long config: sets data, parity, and stop bits. Valid values are : Physical Computing and Embedded Sytems Page 6

7 From < Serial.println() Prints data to the serial port as human-readable ASCII text followed by a carriage return character (ASCII 13, or '\r') and a newline character (ASCII 10, or '\n'). This command takes the same forms as Serial.print(). Serial.println(val) Serial.println(val, format) val: the value to print - any data type format: specifies the number base (for integral data types) or number of decimal places (for floating point types) Returns size_t (long): println() returns the number of bytes written, though reading that number is optional From < tone() [Advanced I/O] Generates a square wave of the specified frequency (and 50% duty cycle) on a pin. A duration can be specified, otherwise the wave continues until a call to notone(). The pin can be connected to a piezo buzzer or other speaker to play tones. Only one tone can be generated at a time. If a tone is already playing on a different pin, the call to tone() will have no effect. If the tone is playing on the same pin, the call will set its frequency. Use of the tone() function will interfere with PWM output on pins 3 and 11 (on boards other than the Mega). It is not possible to generate tones lower than 31Hz. For technical details, see Brett Hagman s notes. tone(pin, frequency) tone(pin, frequency, duration) pin: the pin on which to generate the tone Physical Computing and Embedded Sytems Page 7

8 frequency: the frequency of the tone in hertz - unsigned int duration: the duration of the tone in milliseconds (optional) - unsigned long From < notone() [Advanced I/O] Stops the generation of a square wave triggered by tone(). Has no effect if no tone is being generated. notone(pin) pin: the pin on which to stop generating the tone From < See Item 4 for details about the tone() function. digitalwrite(trigpin, HIGH); delaymicroseconds(10); digitalwrite(trigpin, LOW); duration = pulsein(echopin, HIGH); distance = (duration/2) / 29.1; // send an ultrasonic pulse // for 10 ms // turn off ultrasonic pulse // measure the time (ms) it takes for the INPUT pin pulse to go from HIGH to LOW and store in variable called duration // distance is calculated as half the duration (time to reach object, rather than there and bounce back) divided by speed of sound (29.1cm/ms) When we flash the trigger pin high for a small amount of time (in this case 1000 microseconds), the sensor would send an ultrasonic wave at a known time (let's say t1), the wave will reach the object and reflect back to the sensor at another known time (t2), lets assume t3 =t2 - t1, (t3 is equal to the time taken for the wave to reach the object and comeback, so t3/2 is the time needed for the wave to reach the object) we know the speed of sound which is 340 m/s or 29.1cm/ms so we are able to get the distance in cm if (distance >= 200 distance <= 0) { Serial.println("no object detected"); digitalwrite(buzzer,low); //when distance is greater than or equal to 200 OR less than or equal to 0,the buzzer and LED are off // ie As long as there is nothing less than 200 cm away the buzzer is off //print to monitor // buzzer off else { // if there is an object within 200cm Serial.println("object detected \n"); // print to monitor Serial.print("distance= "); Serial.print(distance); //prints the distance if it is between the range 0 to 200 // play a tone similar to a police siren; you could re-write as a loop tone(buzzer, 400); // play 400 Hz tone for 500 ms delay(500); tone(buzzer, 800); // play 800Hz tone for 500ms delay(500); tone(buzzer, 400); // play 400 Hz tone for 500 ms delay(500); tone(buzzer, 800); // play 800Hz tone for 500ms delay(500); tone(buzzer, 400); // play 400 Hz tone for 500 ms delay(500); tone(buzzer, 800); // play 800Hz tone for 500ms delay(500); notone(buzzer); INSTRUCTIONS 1. Save the sketch (code) below and then open in the Arduino IDE (File>Open..) Burglar_Ala rmed Physical Computing and Embedded Sytems Page 8

9 Burglar_Ala rmed 2. Copy the code into a place where you can edit it to add comments. 3. Answer the following: Portfolio Task Questions for DEVELOP 1. Where are the Input, output, storage in the code? Feature Code 2. How does the code work - pseudocode a. Copy the existing code b. Place comments (//) next to each line of code in pseudocode 3. How will you modify the circuit and/or the code to make it do something different or more effectively? 4. How could you use this technology in another way to improve the way it works or apply it to a different situation? How to write pseudocode Accepting inputs Operation Pseudocode Programming equivalent Prompt user for surname Input surname var person = prompt("please enter your name"); Producing outputs Print the message Hello World console.log( Hello World ); Assigning values to variables Set the total to 0 var total = 0; Performing arithmetic set total to items times price var total = items * price; Selection and Perform alternative actions Iteration or Repeating operations 1. Pre-test loop also known as the WHILE loop Iteration or Repeating operations 2. Post-test loop eg the REPEAT/UNTIL or DO/WHILE loops Iteration or Repeating operations 3. Counting loop also known as the FOR loop. IF mark is greater than 49 THEN print Pass ELSE print Fail WHILE total greater than 0 subtract new purchase from total ENDWHILE REPEAT <Block> UNTIL condition FOR Index = START_VALUE to FINISH_VALUE <Block> ENDFOR if (mark > 49) { console.log( Pass ); else { console.log( Fail ); while (total > 0) { total = total - new_purchase; var i = 0; do { text += "The number is " + i; i++; while (i < 5); var i; for (i = 0; i < cars.length; i++) { text += cars[i] + "<br>"; GENERATE WALT: design and implementation of modular programs, including an object-oriented program, using algorithms and data structures involving modular functions that reflect the Physical Computing and Embedded Sytems Page 9

10 program, using algorithms and data structures involving modular functions that reflect the relationships of real-world data and data entities WILF - Code implemented Processes and production skills Generating and designing - producing and implementing A B C The student work has the following characteristics: The student work has the following characteristics: The student work has the following characteristics: purposeful design and proficient implementation of modular programs, including an object-oriented program, using algorithms and data structures involving modular functions that reflect the relationships of real-world data and data entities - All code implemented effective design and effective implementation of modular programs, including an object-oriented program, using algorithms and data structures involving modular functions that reflect the relationships of real-world data and data entities - Most code implemented design and implementation of modular programs, including an object-oriented program, using algorithms and data structures involving modular functions that reflect the relationships of real-world data and data entities - Some code implemented INSTRUCTIONS 1. Set up the circuit. Take a photo for your portfolio, or set up a virtual circuit in tinkercad and take a screenshot. 2. Test your board with the 'Blink' sketch 3. Save the sketch (code) below and then open in the Arduino IDE (File>Open..) Burglar_Ala rmed 4. Double-check that you have the right board (Tools>Board) and COM port (Tools>Port) selected. 4.5 Switch on the Monitor to see sensor values 5. Upload your sketch (Sketch>Upload or 6. You should hear an alarm going off Youtube Video: 7. Copy and paste the code to your portfolio. Read and translate the code into pseudocode by commenting (add \\ at the end of each line) each line of code. Eg: pinmode(11, OUTPUT); // set pin 11 as an output pin 8. Modify the code to make it work differently or more effectively. Eg. Change the distance to trigger the alarm, change the tone 9. Re-upload your code 10. Take a video for your portfolio. 11. Answer the questions below: Portfolio Task Questions for GENERATE 1. Get the hardware and software working 2. Get your modifications working and highlight where you have altered the code. document 3. Record a very short video of your working solution. Physical Computing and Embedded Sytems Page 10

11 EVALUATE AND REFINE WALT: evaluation of information systems and their solutions in terms of risk, sustainability and potential for innovation and enterprise WILF - Makes judgments about ideas, works, solutions or methods in relation to risk, sustainability and potential for innovation and enterprise Processes and production skills Evaluating A B C The student work has the following characteristics: The student work has the following characteristics: The student work has the following characteristics: discerning evaluation of information systems and their solutions in terms of risk, sustainability and potential for innovation and enterprise - All sections of evaluation completed and thorough. informed evaluation of information systems and their solutions in terms of risk, sustainability and potential for innovation and enterprise - Most sections of evaluation completed and thorough. evaluation of information systems and their solutions in terms of risk, sustainability and potential for innovation and enterprise - Most sections of evaluation completed. Portfolio Task Questions for EVALUATE AND REFINE 1. Update your kanban and burndown chart 2. Write a short evaluation Evaluation Critically evaluate your completed digital solution by using the organiser below. Make sure that you use full sentences and copy and paste text into paragraphs rather than leaving it in table form. Digital solution evaluation Enterprise needs and opportunities What needs or opportunities does the solution address? Risks What risks does the digital solution pose to the user s personal security? Could the digital solution have any adverse effects on the stakeholders? Sustainability How could the digital solution impact the environment? What economic factors might influence the digital solution? Is your solution easy to use and learn? Why/Why not? Are there any social factors which could affect the solution? Innovative How is the digital solution innovative? Recommendations Recommend at least one improvement that you would like to see made to the digital solution. Physical Computing and Embedded Sytems Page 11

12 Want More? SkillsSheet &fbclid=iwar1dk4ti2pyghy16wztjzvbbnvc4ewoy5rgwrta-fayvumlasdnecqtwfcy Portable Ultrasonic Range Meter Extension - solution using arrays: int distance() { int16_t array[3] = {; for(int count = 0; count < 2; count++){ float duration, distance; digitalwrite(7, HIGH); delaymicroseconds(10); digitalwrite(7, LOW); duration = pulsein(6, HIGH) / 2 * ; delay(20); array[count] = duration; int measure = array[0] += array[1] += array[2]; return measure / 3; int repeat = 4; void setup() { pinmode(7, OUTPUT); pinmode(6, INPUT); pinmode(11, OUTPUT); Serial.begin(9600); void loop() { Serial.println(distance()) if (distance() < 10) { for (int count = 0; count < repeat; count++) { digitalwrite(11, HIGH); delay(250); digitalwrite(11, LOW); delay(250); Physical Computing and Embedded Sytems Page 12

WALT: definition and decomposition of complex problems in terms of functional and non-functional requirements

WALT: definition and decomposition of complex problems in terms of functional and non-functional requirements Item 1: The Clock is Ticking Monday, 15 October 2018 12:19 PM EXPLORE WALT: definition and decomposition of complex problems in terms of functional and non-functional requirements - Defined how each component

More information

WALT: definition and decomposition of complex problems in terms of functional and non-functional requirements

WALT: definition and decomposition of complex problems in terms of functional and non-functional requirements Item 5: It's Totally Random Monday, 5 October 08 :5 PM IT'S TOTALLY RANDOM EXPLORE WALT: definition and decomposition of complex problems in terms of functional and non-functional requirements WILF - Defined

More information

GOOD MORNING SUNSHINE

GOOD MORNING SUNSHINE Item 11: Good Morning Sunshine Monday, 15 October 2018 12:30 PM GOOD MORNING SUNSHINE EXPLORE WALT: definition and decomposition of complex problems in terms of functional and non-functional requirements

More information

Arduino Part 2. Introductory Medical Device Prototyping

Arduino Part 2. Introductory Medical Device Prototyping Introductory Medical Device Prototyping Arduino Part 2, http://saliterman.umn.edu/ Department of Biomedical Engineering, University of Minnesota More Arduino Programming Digital I/O (Read/Write) Analog

More information

More Arduino Programming

More Arduino Programming Introductory Medical Device Prototyping Arduino Part 2, http://saliterman.umn.edu/ Department of Biomedical Engineering, University of Minnesota More Arduino Programming Digital I/O (Read/Write) Analog

More information

Robot Eyes. DAY 3 Let's Make a Robot

Robot Eyes. DAY 3 Let's Make a Robot DAY 3 Let's Make a Robot Objective: Students will learn to use an SR04 Sonar component to measure distance. The Students will then build their robot, establish programming to control the motors and then

More information

Introduction To Arduino

Introduction To Arduino Introduction To Arduino What is Arduino? Hardware Boards / microcontrollers Shields Software Arduino IDE Simplified C Community Tutorials Forums Sample projects Arduino Uno Power: 5v (7-12v input) Digital

More information

Chapter 2 The Basic Functions

Chapter 2 The Basic Functions Chapter 2 The Basic Functions 2.1 Overview The code you learn to write for your Arduino is very similar to the code you write in any other computer language. This implies that all the basic concepts remain

More information

E11 Lecture 4: More C!!! Profs. David Money Harris & Sarah Harris Fall 2011

E11 Lecture 4: More C!!! Profs. David Money Harris & Sarah Harris Fall 2011 E11 Lecture 4: More C!!! Profs. David Money Harris & Sarah Harris Fall 2011 Outline Logistics Serial Input Physical Inputs/Outputs Randomness Operators Control Statements Logistics Logistics Tutoring hours:

More information

Adapted from a lab originally written by Simon Hastings and Bill Ashmanskas

Adapted from a lab originally written by Simon Hastings and Bill Ashmanskas Physics 364 Arduino Lab 1 Adapted from a lab originally written by Simon Hastings and Bill Ashmanskas Vithayathil/Kroll Introduction Last revised: 2014-11-12 This lab introduces you to an electronic development

More information

Handson Technology. HC-SR04 Ultrasonic Sensor Module. 1

Handson Technology. HC-SR04 Ultrasonic Sensor Module. 1 Handson Technology User Guide HC-SR04 Ultrasonic Sensor Module HC-SR04 Ultrasonic Sensor is a very affordable proximity/distance sensor that has been used mainly for object avoidance in various robotics

More information

Eng.mohammed Albhaisi. Lab#3 : arduino to proteus simulation. for simulate Arduino program that you wrote you have to have these programs :

Eng.mohammed Albhaisi. Lab#3 : arduino to proteus simulation. for simulate Arduino program that you wrote you have to have these programs : Lab#3 : arduino to proteus simulation for simulate Arduino program that you wrote you have to have these programs : 1-Arduino C 2-proteus 3- Virtual Serial Port Driver 4-Arduino library to proteus You

More information

FUNCTIONS USED IN CODING pinmode()

FUNCTIONS USED IN CODING pinmode() FUNCTIONS USED IN CODING pinmode() Configures the specified pin to behave either as an input or an output. See the description of digital pins for details on the functionality of the pins. As of Arduino

More information

Note. The above image and many others are courtesy of - this is a wonderful resource for designing circuits.

Note. The above image and many others are courtesy of   - this is a wonderful resource for designing circuits. Robotics and Electronics Unit 2. Arduino Objectives. Students will understand the basic characteristics of an Arduino Uno microcontroller. understand the basic structure of an Arduino program. know how

More information

Update: Ver 1.3 Dec Arduino Learning Guide For Beginner Using. Created by Cytron Technologies Sdn Bhd - All Rights Reserved

Update: Ver 1.3 Dec Arduino Learning Guide For Beginner Using. Created by Cytron Technologies Sdn Bhd - All Rights Reserved Update: Ver 1.3 Dec 2018 Arduino Learning Guide For Beginner Using Created by Cytron Technologies Sdn Bhd - All Rights Reserved LESSON 0 SETTING UP HARDWARE & SOFTWARE Part 1: Put Up Label Stickers for

More information

Introduction to Arduino

Introduction to Arduino Introduction to Arduino Paco Abad May 20 th, 2011 WGM #21 Outline What is Arduino? Where to start Types Shields Alternatives Know your board Installing and using the IDE Digital output Serial communication

More information

Robotics/Electronics Review for the Final Exam

Robotics/Electronics Review for the Final Exam Robotics/Electronics Review for the Final Exam Unit 1 Review. 1. The battery is 12V, R1 is 400 ohms, and the current through R1 is 20 ma. How many ohms is R2? ohms What is the voltage drop across R1? V

More information

Arduino Prof. Dr. Magdy M. Abdelhameed

Arduino Prof. Dr. Magdy M. Abdelhameed Course Code: MDP 454, Course Name:, Second Semester 2014 Arduino What is Arduino? Microcontroller Platform Okay but what s a Microcontroller? Tiny, self-contained computers in an IC Often contain peripherals

More information

Update: Ver 1.3 Dec Arduino Learning Guide For Beginner Using. Created by Cytron Technologies Sdn Bhd - All Rights Reserved

Update: Ver 1.3 Dec Arduino Learning Guide For Beginner Using. Created by Cytron Technologies Sdn Bhd - All Rights Reserved Update: Ver 1.3 Dec 2018 Arduino Learning Guide For Beginner Using Created by Cytron Technologies Sdn Bhd - All Rights Reserved LESSON 0 SETTING UP HARDWARE & SOFTWARE Part 1: Put Up Label Stickers for

More information

University of Portland EE 271 Electrical Circuits Laboratory. Experiment: Arduino

University of Portland EE 271 Electrical Circuits Laboratory. Experiment: Arduino University of Portland EE 271 Electrical Circuits Laboratory Experiment: Arduino I. Objective The objective of this experiment is to learn how to use the Arduino microcontroller to monitor switches and

More information

Simple Sounders and Sensors

Simple Sounders and Sensors C H A P T E R 4 Simple Sounders and Sensors This chapter is going to get noisy. You re going to attach a piezo sounder to your Arduino in order to add alarms, warning beeps, alert notifications, etc. to

More information

CTEC 1802 Embedded Programming Labs

CTEC 1802 Embedded Programming Labs CTEC 1802 Embedded Programming Labs This document is intended to get you started using the Arduino and our I/O board in the laboratory - and at home! Many of the lab sessions this year will involve 'embedded

More information

TANGIBLE MEDIA & PHYSICAL COMPUTING INTRODUCTION TO ARDUINO

TANGIBLE MEDIA & PHYSICAL COMPUTING INTRODUCTION TO ARDUINO TANGIBLE MEDIA & PHYSICAL COMPUTING INTRODUCTION TO ARDUINO AGENDA ARDUINO HARDWARE THE IDE & SETUP BASIC PROGRAMMING CONCEPTS DEBUGGING & HELLO WORLD INPUTS AND OUTPUTS DEMOS ARDUINO HISTORY IN 2003 HERNANDO

More information

Introduction to Arduino. Wilson Wingston Sharon

Introduction to Arduino. Wilson Wingston Sharon Introduction to Arduino Wilson Wingston Sharon cto@workshopindia.com Physical computing Developing solutions that implement a software to interact with elements in the physical universe. 1. Sensors convert

More information

FUNCTIONS For controlling the Arduino board and performing computations.

FUNCTIONS For controlling the Arduino board and performing computations. d i g i t a l R e a d ( ) [Digital I/O] Reads the value from a specified digital pin, either HIGH or LOW. digitalread(pin) pin: the number of the digital pin you want to read HIGH or LOW Sets pin 13 to

More information

To lead your students through this activity, you will need your computer, attached to a projector, for projecting your code for students to see.

To lead your students through this activity, you will need your computer, attached to a projector, for projecting your code for students to see. To lead your students through this activity, you will need your computer, attached to a projector, for projecting your code for students to see. INSTALL THE SOFTWARE Download and install the Arduino integrated

More information

Counter & LED (LED Blink)

Counter & LED (LED Blink) 1 T.R.E. Meeting #1 Counter & LED (LED Blink) September 17, 2017 Contact Info for Today s Lesson: President Ryan Muller mullerr@vt.edu 610-573-1890 Learning Objectives: Learn how to use the basics of Arduino

More information

/* to use: enter key aray and make sure that the userentered has the same number of zeros

/* to use: enter key aray and make sure that the userentered has the same number of zeros to use: enter key aray and make sure that the userentered has the same number of zeros ex: int Keyarray[] = {1,2,3,4; int userentered[] = {0,0,0,0; ex2: int Keyarray[] = {1,2,3,4,1,2,3; int userentered[]

More information

Arduino Programming and Interfacing

Arduino Programming and Interfacing Arduino Programming and Interfacing Stensat Group LLC, Copyright 2017 1 Robotic Arm Experimenters Kit 2 Legal Stuff Stensat Group LLC assumes no responsibility and/or liability for the use of the kit and

More information

Grove - Buzzer. Introduction. Features

Grove - Buzzer. Introduction. Features Grove - Buzzer Introduction The Grove - Buzzer module has a piezo buzzer as the main component. The piezo can be connected to digital outputs, and will emit a tone when the output is HIGH. Alternatively,

More information

EEG 101L INTRODUCTION TO ENGINEERING EXPERIENCE

EEG 101L INTRODUCTION TO ENGINEERING EXPERIENCE EEG 101L INTRODUCTION TO ENGINEERING EXPERIENCE LABORATORY 1: INTRODUCTION TO ARDUINO IDE AND PROGRAMMING DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING UNIVERSITY OF NEVADA, LAS VEGAS 1. FYS KIT COMPONENTS

More information

Robotics and Electronics Unit 5

Robotics and Electronics Unit 5 Robotics and Electronics Unit 5 Objectives. Students will work with mechanical push buttons understand the shortcomings of the delay function and how to use the millis function. In this unit we will use

More information

Lab 01 Arduino 程式設計實驗. Essential Arduino Programming and Digital Signal Process

Lab 01 Arduino 程式設計實驗. Essential Arduino Programming and Digital Signal Process Lab 01 Arduino 程式設計實驗 Essential Arduino Programming and Digital Signal Process Arduino Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. It's

More information

Project 12 Piezo Sounder Melody Player

Project 12 Piezo Sounder Melody Player Project 12 Piezo Sounder Melody Player Rather than using the piezo to make annoying alarm sounds, why not use it to play a melody? You are going to get your Arduino to play the chorus of Puff the Magic

More information

Overview. Exploration: LED Ramp Light. cs281: Introduction to Computer Systems Lab04 K-Maps and a Sensor/Actuator Circuit

Overview. Exploration: LED Ramp Light. cs281: Introduction to Computer Systems Lab04 K-Maps and a Sensor/Actuator Circuit cs281: Introduction to Computer Systems Lab04 K-Maps and a Sensor/Actuator Circuit Overview In this lab, we will use the K-maps from last lab to build a circuit for the three lights based on three bit

More information

Schedule. Sanford Bernhardt, Sangster, Kumfer, Michalaka. 3:10-5:00 Workshop: Build a speedometer 5:15-7:30 Dinner and Symposium: Group 2

Schedule. Sanford Bernhardt, Sangster, Kumfer, Michalaka. 3:10-5:00 Workshop: Build a speedometer 5:15-7:30 Dinner and Symposium: Group 2 Schedule 8:00-11:00 Workshop: Arduino Fundamentals 11:00-12:00 Workshop: Build a follower robot 1:30-3:00 Symposium: Group 1 Sanford Bernhardt, Sangster, Kumfer, Michalaka 3:10-5:00 Workshop: Build a speedometer

More information

Rear Distance Detection with Ultrasonic Sensors Project Report

Rear Distance Detection with Ultrasonic Sensors Project Report Rear Distance Detection with Ultrasonic Sensors Project Report 11.29.2017 Group #6 Farnaz Behnia Kimia Zamiri Azar Osaze Shears ECE 511: Microprocessors Fall 2017 1 Table of Contents 1. Abstract 3 2. Motivation

More information

The Arduino IDE and coding in C (part 1)

The Arduino IDE and coding in C (part 1) The Arduino IDE and coding in C (part 1) Introduction to the Arduino IDE (integrated development environment) Based on C++ Latest version ARDUINO IDE 1.8.3 can be downloaded from: https://www.arduino.cc/en/main/software

More information

This tutorial will show you how to take temperature readings using the Freetronics temperature sensor and an Arduino Uno.

This tutorial will show you how to take temperature readings using the Freetronics temperature sensor and an Arduino Uno. This tutorial will show you how to take temperature readings using the Freetronics temperature sensor and an Arduino Uno. Note that there are two different module types: the temperature sensor module and

More information

Arduino Uno Microcontroller Overview

Arduino Uno Microcontroller Overview Innovation Fellows Program Arduino Uno Microcontroller Overview, http://saliterman.umn.edu/ Department of Biomedical Engineering, University of Minnesota Arduino Uno Power & Interface Reset Button USB

More information

Introduction to Arduino Programming. Sistemi Real-Time Prof. Davide Brugali Università degli Studi di Bergamo

Introduction to Arduino Programming. Sistemi Real-Time Prof. Davide Brugali Università degli Studi di Bergamo Introduction to Arduino Programming Sistemi Real-Time Prof. Davide Brugali Università degli Studi di Bergamo What is a Microcontroller www.mikroe.com/chapters/view/1 A small computer on a single chip containing

More information

Control Tone with IR Remote

Control Tone with IR Remote Lesson 17 Lesson 17: Control Tone with IR Remote Control Tone with IR Remote The Big Idea: The ability to detect and decode Sony-protocol infrared messages, which was explored in Lesson 16, can be added

More information

Experiment 3: Sonar Navigation, CAD and 3D Printing

Experiment 3: Sonar Navigation, CAD and 3D Printing Experiment 3: Sonar Navigation, CAD and 3D Printing V3 Robot scans area for obstacles to avoid hitting them and navigates using sonar sensor mounted on a 3D printed sensor bracket that goes on a micro

More information

Lecture 7. Processing Development Environment (or PDE)

Lecture 7. Processing Development Environment (or PDE) Lecture 7 Processing Development Environment (or PDE) Processing Class Overview What is Processing? Installation and Intro. Serial Comm. from Arduino to Processing Drawing a dot & controlling position

More information

StenBOT Robot Kit. Stensat Group LLC, Copyright 2018

StenBOT Robot Kit. Stensat Group LLC, Copyright 2018 StenBOT Robot Kit 1 Stensat Group LLC, Copyright 2018 Legal Stuff Stensat Group LLC assumes no responsibility and/or liability for the use of the kit and documentation. There is a 90 day warranty for the

More information

Energia MSP-430!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1

Energia MSP-430!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1 Energia MSP-430 1 3 Energia 4 4 4 6 8 9 Energia 11 18 2 IIB Energia MSP-430 IIB C C++ 3 Energia Energia MSP-430 Windows Mac OS Linux MSP-430, http://www.energia.nu, Max OS X, windows Linux Mac OS X, energia-

More information

m-block By Wilmer Arellano

m-block By Wilmer Arellano m-block By Wilmer Arellano You are free: to Share to copy, distribute and transmit the work Under the following conditions: Attribution You must attribute the work in the manner specified by the author

More information

ARDUINO. By Kiran Tiwari BCT 2072 CoTS.

ARDUINO. By Kiran Tiwari BCT 2072 CoTS. ARDUINO By Kiran Tiwari BCT 2072 CoTS www.kirantiwari.com.np SO What is an Arduino? WELL!! Arduino is an open-source prototyping platform based on easy-to-use hardware and software. Why Arduino? Simplifies

More information

Lesson 25 Flood Warning System

Lesson 25 Flood Warning System Lesson 25 Flood Warning System 1 What you will need CloudProfessor (CPF) Moisture Sensor Buzzer Arduino Leonardo Android Shield USB lead Overview In this lesson, students will create a flood warning system

More information

Introduction to Microcontrollers Using Arduino. PhilRobotics

Introduction to Microcontrollers Using Arduino. PhilRobotics Introduction to Microcontrollers Using Arduino PhilRobotics Objectives Know what is a microcontroller Learn the capabilities of a microcontroller Understand how microcontroller execute instructions Objectives

More information

University of Hull Department of Computer Science C4DI Interfacing with Arduinos

University of Hull Department of Computer Science C4DI Interfacing with Arduinos Introduction Welcome to our Arduino hardware sessions. University of Hull Department of Computer Science C4DI Interfacing with Arduinos Vsn. 1.0 Rob Miles 2014 Please follow the instructions carefully.

More information

This is the Arduino Uno: This is the Arduino motor shield: Digital pins (0-13) Ground Rail

This is the Arduino Uno: This is the Arduino motor shield: Digital pins (0-13) Ground Rail Reacting to Sensors In this tutorial we will be going over how to program the Arduino to react to sensors. By the end of this workshop you will have an understanding of how to use sensors with the Arduino

More information

The Big Idea: Background: About Serial

The Big Idea: Background: About Serial Lesson 6 Lesson 6: Serial Serial Input Input The Big Idea: Information coming into an Arduino sketch is called input. This lesson focuses on text in the form of characters that come from the user via the

More information

ARDUINO EXPERIMENTS ARDUINO EXPERIMENTS

ARDUINO EXPERIMENTS ARDUINO EXPERIMENTS ARDUINO EXPERIMENTS IR OBSTACLE SENSOR... 3 OVERVIEW... 3 OBJECTIVE OF THE EXPERIMENT... 3 EXPERIMENTAL SETUP... 3 IR SENSOR ARDUINO CODE... 4 ARDUINO IDE SERIAL MONITOR... 5 GAS SENSOR... 6 OVERVIEW...

More information

4Serial SIK BINDER //77

4Serial SIK BINDER //77 4Serial SIK BINDER //77 SIK BINDER //78 Serial Communication Serial is used to communicate between your computer and the RedBoard as well as between RedBoard boards and other devices. Serial uses a serial

More information

Lab 2 - Powering the Fubarino. Fubarino,, Intro to Serial, Functions and Variables

Lab 2 - Powering the Fubarino. Fubarino,, Intro to Serial, Functions and Variables Lab 2 - Powering the Fubarino Fubarino,, Intro to Serial, Functions and Variables Part 1 - Powering the Fubarino SD The Fubarino SD is a 56 pin device. Each pin on a chipkit device falls broadly into one

More information

Arduino For Amateur Radio

Arduino For Amateur Radio Arduino For Amateur Radio Introduction to Arduino Micro controller vs. a PI Arduino Models, Books and Add-Ons Amateur Radio Applications Arduino Uno/Pro Micro Introduction to Arduino Programming More on

More information

m-block By Wilmer Arellano

m-block By Wilmer Arellano m-block By Wilmer Arellano You are free: to Share to copy, distribute and transmit the work Under the following conditions: Attribution You must attribute the work in the manner specified by the author

More information

keyestudio Keyestudio MEGA 2560 R3 Board

keyestudio Keyestudio MEGA 2560 R3 Board Keyestudio MEGA 2560 R3 Board Introduction: Keyestudio Mega 2560 R3 is a microcontroller board based on the ATMEGA2560-16AU, fully compatible with ARDUINO MEGA 2560 REV3. It has 54 digital input/output

More information

Sten-SLATE ESP Kit. Description and Programming

Sten-SLATE ESP Kit. Description and Programming Sten-SLATE ESP Kit Description and Programming Stensat Group LLC, Copyright 2016 Overview In this section, you will be introduced to the processor board electronics and the arduino software. At the end

More information

OBSTACLE DETECTION WITH BLUETOOTH CONTROLLED VEHICLE MOTION

OBSTACLE DETECTION WITH BLUETOOTH CONTROLLED VEHICLE MOTION PROJECT REPORT ON OBSTACLE DETECTION WITH BLUETOOTH CONTROLLED VEHICLE MOTION BY Sasank Das Alladi Naga Aiswarya Vadlamani Priyadarsini Pethanaraj Rohit Chaitanya Kunkumagunta ECE 511: MICROPROCESSORS

More information

Procedure: Determine the polarity of the LED. Use the following image to help:

Procedure: Determine the polarity of the LED. Use the following image to help: Section 2: Lab Activity Section 2.1 Getting started: LED Blink Purpose: To understand how to upload a program to the Arduino and to understand the function of each line of code in a simple program. This

More information

LAB PROCEDURE. Lab Objectives 1. Generate a project using the GR-Sakura web compiler 2. Edit/Compile/Build/Debug the project using the web compiler

LAB PROCEDURE. Lab Objectives 1. Generate a project using the GR-Sakura web compiler 2. Edit/Compile/Build/Debug the project using the web compiler Lab Objectives 1. Generate a project using the GR-Sakura web compiler 2. Edit/Compile/Build/Debug the project using the web compiler Lab Materials Please verify you have the following materials at your

More information

Fall Harris & Harris

Fall Harris & Harris E11: Autonomous Vehicles Fall 2011 Harris & Harris PS 1: Welcome to Arduino This is the first of five programming problem sets. In this assignment you will learn to program the Arduino board that you recently

More information

Electronic Brick Starter Kit

Electronic Brick Starter Kit Electronic Brick Starter Kit Getting Started Guide v1.0 by Introduction Hello and thank you for purchasing the Electronic Brick Starter Pack from Little Bird Electronics. We hope that you will find learning

More information

Arduino provides a standard form factor that breaks the functions of the micro-controller into a more accessible package.

Arduino provides a standard form factor that breaks the functions of the micro-controller into a more accessible package. About the Tutorial Arduino is a prototype platform (open-source) based on an easy-to-use hardware and software. It consists of a circuit board, which can be programed (referred to as a microcontroller)

More information

create.tokylabs.com has a large number of blocks. They are divided into the following categories:

create.tokylabs.com has a large number of blocks. They are divided into the following categories: BLOCKS INDEX INDEX OVERVIEW Control Logic Variable Number Input Output Display IOT create.tokylabs.com has a large number of blocks. They are divided into the following categories: CONTROL The Control

More information

Lab 2 - Powering the Fubarino, Intro to Serial, Functions and Variables

Lab 2 - Powering the Fubarino, Intro to Serial, Functions and Variables Lab 2 - Powering the Fubarino, Intro to Serial, Functions and Variables Part 1 - Powering the Fubarino SD The Fubarino SD is a 56 pin device. Each pin on a chipkit device falls broadly into one of 9 categories:

More information

Lab-3: LCDs Serial Communication Analog Inputs Temperature Measurement System

Lab-3: LCDs Serial Communication Analog Inputs Temperature Measurement System Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-3: LCDs Serial Communication Analog Inputs Temperature Measurement System Ahmed Okasha okasha1st@gmail.com

More information

Robotics Adventure Book Scouter manual STEM 1

Robotics Adventure Book Scouter manual STEM 1 Robotics Robotics Adventure Book Scouter Manual Robotics Adventure Book Scouter manual STEM 1 A word with our Scouters: This activity is designed around a space exploration theme. Your Scouts will learn

More information

The DTMF generator comprises 3 main components.

The DTMF generator comprises 3 main components. Make a DTMF generator with an Arduino board This article is for absolute beginners, and describes the design and construction of a DTMF generator. DTMF generators are often used to signal with equipment

More information

3.The circuit board is composed of 4 sets which are 16x2 LCD Shield, 3 pieces of Switch, 2

3.The circuit board is composed of 4 sets which are 16x2 LCD Shield, 3 pieces of Switch, 2 Part Number : Product Name : FK-FA1416 MULTI-FUNCTION 16x2 LCD SHIELD This is the experimental board of Multi-Function 16x2 LCD Shield as the fundamental programming about the digits, alphabets and symbols.

More information

Make your own secret locking mechanism to keep unwanted guests out of your space!

Make your own secret locking mechanism to keep unwanted guests out of your space! KNOCK LOCK Make your own secret locking mechanism to keep unwanted guests out of your space! Discover : input with a piezo, writing your own functions Time : 1 hour Level : Builds on projects : 1,,3,4,5

More information

Create your own wireless motion sensor with

Create your own wireless motion sensor with Create your own wireless motion sensor with Arduino If you have a friend that has an alarm system in his or her home, I am sure you ve all seen these white motion sensors that are usually fixed above doors

More information

CHAPTER V IMPLEMENTATION AND TESTING

CHAPTER V IMPLEMENTATION AND TESTING CHAPTER V IMPLEMENTATION AND TESTING 5.1 Implementation 5.1.1 Arduino IDE This project uses the arduino IDE application. This application used to compile and to upload the program. The program can be seen

More information

EXPERIMENT 7 Please visit https://www.arduino.cc/en/reference/homepage to learn all features of arduino before you start the experiments

EXPERIMENT 7 Please visit https://www.arduino.cc/en/reference/homepage to learn all features of arduino before you start the experiments EXPERIMENT 7 Please visit https://www.arduino.cc/en/reference/homepage to learn all features of arduino before you start the experiments TEMPERATURE MEASUREMENT AND CONTROL USING LM35 Purpose: To measure

More information

RB-Dfr-12 DFRobot URM04 v2.0 Ultrasonic Sensor

RB-Dfr-12 DFRobot URM04 v2.0 Ultrasonic Sensor RB-Dfr-12 DFRobot URM04 v2.0 Ultrasonic Sensor URM04 is developed based upon our popular URM37 ultrasonic sensor. The RS485 interface allows a number of sensors working together. Up to 32 URM04 may be

More information

Quickstart Guide: Programming the Arduino ESP 8266

Quickstart Guide: Programming the Arduino ESP 8266 Quickstart Guide: Programming the Arduino ESP 8266 V1.0 - March 2018 Part 1: Setting up the Arduino 1. Connect to your wireless network 2. Install Arduino software from www.arduino.cc 3. Check if Windows

More information

CARTOOINO Projects Book

CARTOOINO Projects Book 1 CARTOOINO Projects Book Acknowledgement Acknowledgement This Cartooino Projects Book is a cartoon based adaptation of the Arduino Projects Book. The Cartooino Project Book was developed by the GreenLab

More information

Programming. The Programmable Box! with. Programming made fun Ages 10+ V1.0 Copyright 2014, 2015 Your Inner Geek, LLC

Programming. The Programmable Box! with. Programming made fun Ages 10+ V1.0 Copyright 2014, 2015 Your Inner Geek, LLC C Programming with The Programmable Box! Programming made fun Ages 10+ 1 Copyright 2014, 2015 by Your Inner Geek, LLC. All rights reserved. Except as permitted under the United States Copyright Act of

More information

Joy-IT Ultrasonic Distance Sensor

Joy-IT Ultrasonic Distance Sensor Joy-IT Ultrasonic Distance Sensor Export 03.11.2017 Copyright by Joy-IT 1 Index 1. Using with an Arduino 1.1 Connecting the Module 1.2 Code-Example 2. Using with a Raspberry Pi 2.1 Installing the System

More information

Serial.begin ( ); Serial.println( ); analogread ( ); map ( );

Serial.begin ( ); Serial.println( ); analogread ( ); map ( ); Control and Serial.begin ( ); Serial.println( ); analogread ( ); map ( ); A system output can be changed through the use of knobs, motion, or environmental conditions. Many electronic systems in our world

More information

MICROCHIP RN52 LIBRARY COMMAND GUIDE

MICROCHIP RN52 LIBRARY COMMAND GUIDE MICROCHIP RN52 LIBRARY COMMAND GUIDE Version 1.00 For additional support, please visit doayee.co.uk Contents Page Content 3 Setup Commands 4-5 General Commands 6 Audio Commands 7 GPIO Commands 8-9 RN52

More information

New APIs and Hacks. Servo API. Chapter 4. The Theory versus Practice

New APIs and Hacks. Servo API. Chapter 4. The Theory versus Practice Chapter 4 New APIs and Hacks The challenge when Intel Galileo was designed was to create a board that would be compatible with Arduino headers and reference language using only the Quark microprocessor,

More information

Rotary Encoder Basics

Rotary Encoder Basics Rotary Encoder Basics A rotary encoder has a fixed number of positions per revolution. These positions are easily felt as small clicks you turn the encoder. The Keyes module that I have has thirty of these

More information

Digital Pins and Constants

Digital Pins and Constants Lesson Lesson : Digital Pins and Constants Digital Pins and Constants The Big Idea: This lesson is the first step toward learning to connect the Arduino to its surrounding world. You will connect lights

More information

Microcontrollers and Interfacing week 8 exercises

Microcontrollers and Interfacing week 8 exercises 2 HARDWARE DEBOUNCING Microcontrollers and Interfacing week 8 exercises 1 More digital input When using a switch for digital input we always need a pull-up resistor. For convenience, the microcontroller

More information

Lesson 18 Automatic door

Lesson 18 Automatic door Lesson 18 Automatic door 1 What you will need CloudProfessor (CPF) PIR (Motion) sensor Servo Arduino Leonardo Arduino Shield USB cable Overview In this lesson, students explore automated systems such as

More information

Intro to Arduino. Zero to Prototyping in a Flash! Material designed by Linz Craig and Brian Huang

Intro to Arduino. Zero to Prototyping in a Flash! Material designed by Linz Craig and Brian Huang Intro to Arduino Zero to Prototyping in a Flash! Material designed by Linz Craig and Brian Huang Overview of Class Getting Started: Installation, Applications and Materials Electrical: Components, Ohm's

More information

IME-100 Interdisciplinary Design and Manufacturing

IME-100 Interdisciplinary Design and Manufacturing IME-100 Interdisciplinary Design and Manufacturing Introduction Arduino and Programming Topics: 1. Introduction to Microprocessors/Microcontrollers 2. Introduction to Arduino 3. Arduino Programming Basics

More information

Wire Loop Game Nerves of Steel and Arduino in control

Wire Loop Game Nerves of Steel and Arduino in control Post Project No. Wire Loop Game Nerves of Steel and Arduino in control Here s a multi-player (max. ) version of that nerve-racking game called Wire Loop where contestants have to pass a metal loop around

More information

analogwrite(); The analogwrite function writes an analog value (PWM wave) to a PWM-enabled pin.

analogwrite(); The analogwrite function writes an analog value (PWM wave) to a PWM-enabled pin. analogwrite(); The analogwrite function writes an analog value (PWM wave) to a PWM-enabled pin. Syntax analogwrite(pin, value); For example: analogwrite(2, 255); or analogwrite(13, 0); Note: Capitalization

More information

Arduino Programming Part 3. EAS 199A Fall 2010

Arduino Programming Part 3. EAS 199A Fall 2010 Arduino Programming Part 3 EAS 199A Fall 2010 Overview Part I Circuits and code to control the speed of a small DC motor. Use potentiometer for dynamic user input. Use PWM output from Arduino to control

More information

Digital I/O Operations

Digital I/O Operations Digital I/O Operations CSE0420 Embedded Systems By Z. Cihan TAYŞİ Outline Digital I/O Ports, Pins Direction Pull-up & pull-down Arduino programming Digital I/O examples on Arduino 1 Digital I/O Unlike

More information

TRAINING GUIDE LEVEL 3 MODBUS WRITE IMPORT COMMAND

TRAINING GUIDE LEVEL 3 MODBUS WRITE IMPORT COMMAND OleumTechTM TRAINING GUIDE LEVEL 3 MODBUS WRITE IMPORT COMMAND MUST BE FAMILIAR WITH LEVEL 1 TRAINING MATERIALS BEFORE MOVING FORWARD Doc ID# 80-6010-001b TABLE OF CONTENTS 1. WHAT IS NEW WRITE IMPORT

More information

Arduino Part 3. Introductory Medical Device Prototyping

Arduino Part 3. Introductory Medical Device Prototyping Introductory Medical Device Prototyping Arduino Part 3, http://saliterman.umn.edu/ Department of Biomedical Engineering, University of Minnesota More Arduino Functions More functions: Math functions Trigonometry

More information

C Language Reference for ActivityBot. Driving the robot a specific distance or a specific amount of turn

C Language Reference for ActivityBot. Driving the robot a specific distance or a specific amount of turn Code for Driving ActivityBot C Language Reference for ActivityBot Jeffrey La Favre - November 4, 2015 There are two types of functions for driving the robot. The first kind specifies a specific distance

More information

The Arduino Briefing. The Arduino Briefing

The Arduino Briefing. The Arduino Briefing Mr. Yee Choon Seng Email : csyee@simtech.a-star.edu.sg Design Project resources http://guppy.mpe.nus.edu.sg/me3design.html One-Stop robotics shop A-Main Objectives Pte Ltd, Block 1 Rochor Road, #02-608,

More information

ECE 271 Microcomputer Architecture and Applications University of Maine

ECE 271 Microcomputer Architecture and Applications University of Maine Goals Lab 7: Timer Input Capture in C Instructor: Prof. Yifeng Zhu Spring 2015 1. Understand the basic concept of input capture function of a timer 2. Handle different events in the interrupt service routine

More information

Arduino Uno. Power & Interface. Arduino Part 1. Introductory Medical Device Prototyping. Digital I/O Pins. Reset Button. USB Interface.

Arduino Uno. Power & Interface. Arduino Part 1. Introductory Medical Device Prototyping. Digital I/O Pins. Reset Button. USB Interface. Introductory Medical Device Prototyping Arduino Part 1, http://saliterman.umn.edu/ Department of Biomedical Engineering, University of Minnesota Arduino Uno Power & Interface Reset Button USB Interface

More information