EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs Introduction to Arduino

Size: px
Start display at page:

Download "EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs Introduction to Arduino"

Transcription

1 EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs Introduction to Arduino In this lab we will introduce the idea of using a microcontroller as a tool for controlling the output of the circuit based on the digital or analog input to the device, and based on the codes that we can write and compile into the microcontroller. We will use Arduino Uno R3 as an 8-bit and simple microcontroller. In the beginning of the semester students were asked to purchase their Arduino kits which include the Arduino Uno R3 microcontroller, and a box of components and cables, which would allow students to perform Arduino-related experiments both in the lab and at home. The Arduino kit also includes a breadboard for fast and easy circuit assembly. In addition to the kit, students are encouraged to purchase a paperback copy of the book Arduino for Dummies and/or Arduino Projects for Dummies. These books can be obtained online for about $15. For the next two weeks we will be performing experiments (called sketches ) directly out of these books. Arduino for Dummies, by John Nussey (2013) Arduino Projects for Dummies, by Brock Craft (2013) There are a large number of online resources and inexpensive books for Arduino. Once you become familiar with the basic principles of this microcontroller, you can quickly build more sophisticated projects on your own at home. The pin-out of Arduino Uno R3 is shown below: 1

2 Introduction to Arduino In this lab you will become familiar with the physical attributes of Arduino Uno R3, its various input/output pins and input power and output power ports. During this lab and the next two labs we will only scratch the surface of Arduino s capabilities. These labs are intended to make students familiar with some of the enormous capabilities and applications of microcontrollers. More detailed treatment of the subject will be given in the Microcontrollers course EE 310 for junior EE students. These lab experiments are also intended to make students appreciate the reasons why they are required to take programming courses (in particular C and C++ languages). Finally, the introduction of the Arduino experiments are meant to assist students to have a broader array of choices for selecting their final project for the present introductory course in electronics. As we have mentioned in the past, the one-unit EE110 course is a survey of introductory topics in electronics hardware and due to the limited available time we may not cover any of the topics in great detail. Moreover, the subject of microcontrollers cover both hardware and software. Clearly during the two sessions allocated to this topic we will not be able to cover the programming component of the subject in any great detail. Therefore in order to demonstrate some of the capabilities of the Arduino microcontrollers, we will copy and paste the programming codes from the available sources. In the meantime we will maintain our emphasis on the hardware aspects of the device. Students can take advantage of the huge number of the available online sketches by cutting and pasting or modifying the existing codes. In order to write original codes for specific microcontroller applications, students will need to become more familiar with related programming languages. Today we will download the driver for the device and perform the very simple sketch of making an LED blink. Students can change the blinking speed once they have set up the experiment. The book Arduino for Dummies is an excellent introductory book that explains almost everything a beginner user of Arduino needs to know. The book comes in 20 chapters. Chapter 1: Read this chapter to learn about the background information regarding the Arduino boards. Chapter2: In this chapter various Arduino boards are introduced. Find your way around Arduino UNO R3. Chapter3: Learn how to download and install Arduino driver application. Chapter 4: Download Blinking LED sketch from the Arduino examples of the application and run the experiment. Adjust blinking speed as described at the end of this experiment. Chapters 5-8: These chapters provide some basic reading material about electricity and circuitry. Students should be familiar with most of these topics. However, reading the material would be a good review for the beginners. Chapter 5: Tools of the Trade 2

3 Chapter 6: A primer on Electricity and Circuitry Chapter 7: Inputs, Outputs and Communication Chapter 8: Motion and Sound; Using Motors For a very basic understanding of Arduino, students are encouraged to read the first 8 chapters of the book. Your instructor will describe how to download the driver onto your laptop computers and perform the Blinking LED sketch. For a better understanding of Arduino, students are also encouraged to perform the following experiments at their own pace at home: 1. Using Pulse Width Modulation 2. LED Fade Sketch 3. Button Sketch 4. Analog Input Sketch 5. Digital Read Serial Sketch 6. Analog Out Serial Sketch 7. Spinning a DC Motor 8. Motor Speed Control Sketch Experiments 7 and 8 involve motors. Clearly, the micro controller is not configured to deliver the necessary current for running a motor. It is therefore necessary to use a relay or a transistor switch for this purpose. Students will learn to integrate the use of an npn transistor in driving a DC motor. The Arduino kits also include stepper motors. However, the use of stepper motors are outside of the scope this course and students are encouraged to do sketches involving stepper motors on their own. Introduction to Arduino Installation and Programming You will connect your Arduino to your laptop using a USB cable and download the application software. The USB connection provides both power to your Arduino and you can send and receive data through the serial port. The Arduino board is able to recognize if you are receiving power from a computer USB, battery, or an external power supply. In order to use the board without connecting to a computer, you will connect it to a 7-12 V DC power supply through the barrel connector. Alternatively you can use the power input pins (below POWER label) to supply power to the board. The power wires are inserted into V and GND pins to supply 7-12 DC Volts. Connecting higher voltages is not recommended. The serial USB port may be used for programming, debugging, reporting data to other programs your computer, and communicating with the Internet. The Integrated Development Environment of Arduino (IDE) is displayed by the IDE control menu (see the image below). At the top right of the screen you see a magnifying glass icon. Clicking on this icon will open a window that displays the serial communication channel that the Arduino is using. Once programmed, the Arduino will print statements to this window. The serial monitor and 3

4 communication window is usually used for displaying data from sensors and for debugging purposes. The programming code is entered in the script editor window and then compiled. If no errors detected, then it is uploaded to the board. The New Sketch, Open Sketch and Save Sketch buttons function as usual. To download the Arduino application program to your computer visit the following Arduino sites. Windows Computers Visit or search online Mac OS Visit or search online Understanding Arduino Code As we mentioned before, in the next couple of experiments is to cover the basics and become familiar with the Arduino environment. We will tweak some parts of the codes and monitor the outcome of the changes. Students can use the available resources to learn to write more advanced codes on their own. The following categories of codes are commonly used in Arduino programming. Comments; Libraries; Variable declarations; Setup; Loop; User-defined functions Comments: In the comments section you describe what the code is supposed to do. Libraries: You need to select which library folder you intend to use. Variable Declarations: Specify the variables you intend to use and their initial values. 4

5 Setup: Here you define how the Arduino will be used and define/setup pins and communications. The word void appears before Setup. The code is written after the open curly bracket { and it is always concluded by closing the bracket }. Loop: This is where you place the main instructions for your code. The loop is executed after setup. Any code between the curly brackets { } is processed sequentially and then repeated again for as many times as the user wishes. User-defined functions: These are created by the user who wishes them to perform certain specific tasks. Note that after the code is uploaded into Arduino, it may not be retrieved. Therefore, it is important to be organized and keep a record of your codes and sketches. Blink Sketch This is a very simple practice sketch that you will use to become familiar with the basic concepts of Arduino. From the application menus choose File à Examples à Basics à Blink and load this demo sketch. The code is shown in the following figure. Comments consisting of several lines start after /* and are concluded with */. Single line comments are written after // and at the end concluded with ;. You will be reminded by Arduino compiler if you make a syntax error. 5

6 The Blink sketch is already installed in your device. When you power up your device you will notice a blinking LED which is labeled L and is located to the right of the Label AREF. The blinking LED indicates that your board is working properly. However, here we will use this very simple code to understand a few basic concepts. Note 1: Your computer needs to know what kind of Arduino board you are using. From the IDE menu choose Tools à Board and then select the board you are using. Note 2: You will need to specify the port that your Arduino is connected to. Choose Tools à Serial port. After you have selected your board and serial port, then you can click on the upload button. You will see two KEDs labeled TX (transmitting) and RX (receiving) turn on for a moment. If everything is done properly, then your code will begin to run automatically. Brand new Arduinos may already have this sketch installed. In order to see something different you can change the length of delay time (-----delay) in the code. Comments: Add some comments between the symbols /* and */ and if you just wish to limit your statement to a single line, add your comment after the symbol //. You can write a date and the name of the authors and any other statement that you wish to see whenever you view the codes. The line int led = 13; defines an integer variable (led) and assigns number 13 to it using the = sign. Connect your LED to pin 13 and it will light up according to the void set up () { instructions. Note that pin 13 is in the DIGITAL section of the board. The short end of the LED is connected to the GND. Next we need to tell Arduino if our selected pin would be used as an output or input using the pinmode( ) function. Since we would like the LED connected to pin 13 to turn on, we need to define this pin as an output so current through it is delivered to the LED and then to the GND. This assignment is done using the command pinmode(led, OUTPUT). Essentially, we are telling Arduino to use the pin that we previously labeled as led as an output. As we mentioned earlier, the setup statement must be concluded with a curly bracket }. Note that some digital pins are marked with the sign which means they can deliver analog output through Pulse Width Modulation (PWM). The void loop( ) { instructions define more details on how you expect the LED to behave. In this particular case we would like the LED to have a digital state which means that it is either on or off. We assign a digital state to pin 13. This is done by writing digitalwrite(led, HIGH);. It means that a 5 V voltage will be delivered to pin 13. If you wish for the LED to turn off at some point, you will need to instruct Arduino accordingly by writing digitalwrite(led, LOW);, which drops the voltage delivered to pin 13 to zero. Naturally, you would want to turn the LED off after a certain delay time. Therefore after the HIGH statement and before the LOW statement you insert a delay time. Arduino measures time in ms. You will insert a delay of 1000 ms if you wish the LED to remain on for one second. The code is delay(1000);. You have probably noticed that each statement is followed by the symbol ; which indicates the end of that 6

7 instruction line. The compiler will remind you of an error if you forget to terminate an instruction line with a semicolon. Next you need to specify for how long you wish the LED to remain in the off position. This is done by adding a second delay command delay(1000). Of course you can choose a different delay for the off position. For example, the LED may be on for one second and off for 2 seconds. Do not forget to conclude the loop statements using the curly bracket }. You notice that the script editor uses different colors for various parts of the codes. Assuming that you have already selected the type of your board and the address of your laptop s port, you are ready to upload the code from your computer to the board. The IDE will remember the type of your board and the port s address for future experiments. Click the upload button (the right arrow). You should see that the computer is communicating with the board through the TX and RX LEDs. Your LED connected to pin 13 will start blinking as soon as the code is transmitted to the board. Exercise: You can now go back to the Blink code and change the delay times and have fun! Congratulations! You are now ready to copy the code for other examples and do more sophisticated experiments. In the event that you wish to use your Arduino independent of your computer, you will need to use an external battery or power supply. If so, you should pay attention to the power supply s voltage and current output depending on what external device (such as a motor) you wish to run with the Arduino. A 7-12 V power supply would be appropriate for most applications. In case you wish to connect motors and many LEDs, then your power supply should be capable of delivering sufficient current. Interesting projects: See chapter 4 of the book Arduino Projects for Dummies for a project titled The All-Seeing Eye, which is a band of ten LEDs that turn on in a back and forth cycle. You should have all the resistors and materials needed for this project in your kit. This book also includes several other interesting projects. For example, chapter 5 is about Making a Light Pet. You can use any of these projects for your final project presentations. 7

For this exercise, you will need a partner, an Arduino kit (in the plastic tub), and a laptop with the Arduino programming environment.

For this exercise, you will need a partner, an Arduino kit (in the plastic tub), and a laptop with the Arduino programming environment. Physics 222 Name: Exercise 6: Mr. Blinky This exercise is designed to help you wire a simple circuit based on the Arduino microprocessor, which is a particular brand of microprocessor that also includes

More information

MICROCONTROLLERS BASIC INPUTS and OUTPUTS (I/O)

MICROCONTROLLERS BASIC INPUTS and OUTPUTS (I/O) PH-315 Portland State University MICROCONTROLLERS BASIC INPUTS and OUTPUTS (I/O) ABSTRACT A microcontroller is an integrated circuit containing a processor and programmable read-only memory, 1 which is

More information

Module: Arduino as Signal Generator

Module: Arduino as Signal Generator Name/NetID: Teammate/NetID: Module: Laboratory Outline In our continuing quest to access the development and debugging capabilities of the equipment on your bench at home Arduino/RedBoard as signal generator.

More information

Programming a Servo. Servo. Red Wire. Black Wire. White Wire

Programming a Servo. Servo. Red Wire. Black Wire. White Wire Programming a Servo Learn to connect wires and write code to program a Servo motor. If you have gone through the LED Circuit and LED Blink exercises, you are ready to move on to programming a Servo. A

More information

Lab 2: Blinkie Lab. Objectives. Materials. Theory

Lab 2: Blinkie Lab. Objectives. Materials. Theory Lab 2: Blinkie Lab Objectives This lab introduces the Arduino Uno as students will need to use the Arduino to control their final robot. Students will build a basic circuit on their prototyping board and

More information

Arduino Lesson 1. Blink. Created by Simon Monk

Arduino Lesson 1. Blink. Created by Simon Monk Arduino Lesson 1. Blink Created by Simon Monk Guide Contents Guide Contents Overview Parts Part Qty The 'L' LED Loading the 'Blink' Example Saving a Copy of 'Blink' Uploading Blink to the Board How 'Blink'

More information

Programming 2 Servos. Learn to connect and write code to control two servos.

Programming 2 Servos. Learn to connect and write code to control two servos. Programming 2 Servos Learn to connect and write code to control two servos. Many students who visit the lab and learn how to use a Servo want to use 2 Servos in their project rather than just 1. This lesson

More information

Lesson 3: Arduino. Goals

Lesson 3: Arduino. Goals Introduction: This project introduces you to the wonderful world of Arduino and how to program physical devices. In this lesson you will learn how to write code and make an LED flash. Goals 1 - Get to

More information

MAE106 Laboratory Exercises Lab # 1 - Laboratory tools

MAE106 Laboratory Exercises Lab # 1 - Laboratory tools MAE106 Laboratory Exercises Lab # 1 - Laboratory tools University of California, Irvine Department of Mechanical and Aerospace Engineering Goals To learn how to use the oscilloscope, function generator,

More information

MICROCONTROLLERS BASIC INPUTS and OUTPUTS (I/O)

MICROCONTROLLERS BASIC INPUTS and OUTPUTS (I/O) PH-315 Portland State University MICROCONTROLLERS BASIC INPUTS and OUTPUTS (I/O) ABSTRACT A microcontroller is an integrated circuit containing a processor and programmable read-only memory, 1 which is

More information

J. La Favre Using Arduino with Raspberry Pi February 7, 2018

J. La Favre Using Arduino with Raspberry Pi February 7, 2018 As you have already discovered, the Raspberry Pi is a very capable digital device. Nevertheless, it does have some weaknesses. For example, it does not produce a clean pulse width modulation output (unless

More information

Coding with Arduino to operate the prosthetic arm

Coding with Arduino to operate the prosthetic arm Setup Board Install FTDI Drivers This is so that your RedBoard will be able to communicate with your computer. If you have Windows 8 or above you might already have the drivers. 1. Download the FTDI driver

More information

Welcome to Arduino Day 2016

Welcome to Arduino Day 2016 Welcome to Arduino Day 2016 An Intro to Arduino From Zero to Hero in an Hour! Paul Court (aka @Courty) Welcome to the SLMS Arduino Day 2016 Arduino / Genuino?! What?? Part 1 Intro Quick Look at the Uno

More information

Part 1: DC Concepts and Measurement

Part 1: DC Concepts and Measurement EE 110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Lab 1 DC Concepts and Measurement: Ohm's Law, Voltage ad Current Introduction to Analog Discovery Scope Last week we introduced

More information

1Getting Started SIK BINDER //3

1Getting Started SIK BINDER //3 SIK BINDER //1 SIK BINDER //2 1Getting Started SIK BINDER //3 Sparkfun Inventor s Kit Teacher s Helper These worksheets and handouts are supplemental material intended to make the educator s job a little

More information

FABO ACADEMY X ELECTRONIC DESIGN

FABO ACADEMY X ELECTRONIC DESIGN ELECTRONIC DESIGN MAKE A DEVICE WITH INPUT & OUTPUT The Shanghaino can be programmed to use many input and output devices (a motor, a light sensor, etc) uploading an instruction code (a program) to it

More information

Arduino STEAM Academy Arduino STEM Academy Art without Engineering is dreaming. Engineering without Art is calculating. - Steven K.

Arduino STEAM Academy Arduino STEM Academy Art without Engineering is dreaming. Engineering without Art is calculating. - Steven K. Arduino STEAM Academy Arduino STEM Academy Art without Engineering is dreaming. Engineering without Art is calculating. - Steven K. Roberts Page 1 See Appendix A, for Licensing Attribution information

More information

EE 110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Lab 0: Course Introduction

EE 110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Lab 0: Course Introduction EE 110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Lab 0: Course Introduction The primary goal of the one-unit EE110 course is to serve as a small window to allow the freshman

More information

LED + Servo 2 devices, 1 Arduino

LED + Servo 2 devices, 1 Arduino LED + Servo 2 devices, 1 Arduino Learn to connect and write code to control both a Servo and an LED at the same time. Many students who come through the lab ask if they can use both an LED and a Servo

More information

A servo is an electric motor that takes in a pulse width modulated signal that controls direction and speed. A servo has three leads:

A servo is an electric motor that takes in a pulse width modulated signal that controls direction and speed. A servo has three leads: Project 4: Arduino Servos Part 1 Description: A servo is an electric motor that takes in a pulse width modulated signal that controls direction and speed. A servo has three leads: a. Red: Current b. Black:

More information

smraza Getting Start Guide Contents Arduino IDE (Integrated Development Environment)... 1 Introduction... 1 Install the Arduino Software (IDE)...

smraza Getting Start Guide Contents Arduino IDE (Integrated Development Environment)... 1 Introduction... 1 Install the Arduino Software (IDE)... Getting Start Guide Contents Arduino IDE (Integrated Development Environment)... 1 Introduction... 1 Install the Arduino Software (IDE)...1 Introduction... 1 Step 1: Get an Uno R3 and USB cable... 2 Step

More information

INTRODUCTION to MICRO-CONTROLLERS

INTRODUCTION to MICRO-CONTROLLERS PH-315 Portland State University INTRODUCTION to MICRO-CONTROLLERS Bret Comnes and A. La Rosa 1. ABSTRACT This laboratory session pursues getting familiar with the operation of microcontrollers, namely

More information

INTRODUCTION to MICRO-CONTROLLERS

INTRODUCTION to MICRO-CONTROLLERS PH-315 Portland State University INTRODUCTION to MICRO-CONTROLLERS Bret Comnes, Dan Lankow, and Andres La Rosa 1. ABSTRACT A microcontroller is an integrated circuit containing a processor and programmable

More information

Rodni What will yours be?

Rodni What will yours be? Rodni What will yours be? version 4 Welcome to Rodni, a modular animatronic animal of your own creation for learning how easy it is to enter the world of software programming and micro controllers. During

More information

Setup Download the Arduino library (link) for Processing and the Lab 12 sketches (link).

Setup Download the Arduino library (link) for Processing and the Lab 12 sketches (link). Lab 12 Connecting Processing and Arduino Overview In the previous lab we have examined how to connect various sensors to the Arduino using Scratch. While Scratch enables us to make simple Arduino programs,

More information

Objectives: Learn what an Arduino is and what it can do Learn what an LED is and how to use it Be able to wire and program an LED to blink

Objectives: Learn what an Arduino is and what it can do Learn what an LED is and how to use it Be able to wire and program an LED to blink Objectives: Learn what an Arduino is and what it can do Learn what an LED is and how to use it Be able to wire and program an LED to blink By the end of this session: You will know how to use an Arduino

More information

HAW-Arduino. Sensors and Arduino F. Schubert HAW - Arduino 1

HAW-Arduino. Sensors and Arduino F. Schubert HAW - Arduino 1 HAW-Arduino Sensors and Arduino 14.10.2010 F. Schubert HAW - Arduino 1 Content of the USB-Stick PDF-File of this script Arduino-software Source-codes Helpful links 14.10.2010 HAW - Arduino 2 Report for

More information

Lab 5: Arduino Uno Microcontroller Innovation Fellows Program Bootcamp Prof. Steven S. Saliterman

Lab 5: Arduino Uno Microcontroller Innovation Fellows Program Bootcamp Prof. Steven S. Saliterman Lab 5: Arduino Uno Microcontroller Innovation Fellows Program Bootcamp Prof. Steven S. Saliterman Exercise 5-1: Familiarization with Lab Box Contents Objective: To review the items required for working

More information

EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE

EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE LABORATORY 7: IR SENSORS AND DISTANCE DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING UNIVERSITY OF NEVADA, LAS VEGAS GOAL: This section will introduce

More information

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. S4A - Scratch for Arduino Workbook

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. S4A - Scratch for Arduino Workbook Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl S4A - Scratch for Arduino Workbook 1) Robotics Draw a robot. Consider the following and annotate: What will it look like? What will it do? How will you

More information

TWEAK THE ARDUINO LOGO

TWEAK THE ARDUINO LOGO TWEAK THE ARDUINO LOGO Using serial communication, you'll use your Arduino to control a program on your computer Discover : serial communication with a computer program, Processing Time : 45 minutes Level

More information

Workshops Elisava Introduction to programming and electronics (Scratch & Arduino)

Workshops Elisava Introduction to programming and electronics (Scratch & Arduino) Workshops Elisava 2011 Introduction to programming and electronics (Scratch & Arduino) What is programming? Make an algorithm to do something in a specific language programming. Algorithm: a procedure

More information

Practical Assignment 1: Arduino interface with Simulink

Practical Assignment 1: Arduino interface with Simulink !! Department of Electrical Engineering Indian Institute of Technology Dharwad EE 303: Control Systems Practical Assignment - 1 Adapted from Take Home Labs, Oklahoma State University Practical Assignment

More information

PLAN DE FORMACIÓN EN LENGUAS EXTRANJERAS IN-57 Technology for ESO: Contents and Strategies

PLAN DE FORMACIÓN EN LENGUAS EXTRANJERAS IN-57 Technology for ESO: Contents and Strategies Lesson Plan: Traffic light with Arduino using code, S4A and Ardublock Course 3rd ESO Technology, Programming and Robotic David Lobo Martínez David Lobo Martínez 1 1. TOPIC Arduino is an open source hardware

More information

INTRODUCTION to MICRO-CONTROLLERS

INTRODUCTION to MICRO-CONTROLLERS PH-315 Portland State University INTRODUCTION to MICRO-CONTROLLERS Bret Comnes, Dan Lankow, and Andres La Rosa 1. ABSTRACT A microcontroller is an integrated circuit containing a processor and programmable

More information

Understanding the Arduino to LabVIEW Interface

Understanding the Arduino to LabVIEW Interface E-122 Design II Understanding the Arduino to LabVIEW Interface Overview The Arduino microcontroller introduced in Design I will be used as a LabVIEW data acquisition (DAQ) device/controller for Experiments

More information

Pulse Width Modulation and

Pulse Width Modulation and Pulse Width Modulation and analogwrite ( ); 28 Materials needed to wire one LED. Odyssey Board 1 dowel Socket block Wire clip (optional) 1 Female to Female (F/F) wire 1 F/F resistor wire LED Note: The

More information

CURIE Academy, Summer 2014 Lab 2: Computer Engineering Software Perspective Sign-Off Sheet

CURIE Academy, Summer 2014 Lab 2: Computer Engineering Software Perspective Sign-Off Sheet Lab : Computer Engineering Software Perspective Sign-Off Sheet NAME: NAME: DATE: Sign-Off Milestone TA Initials Part 1.A Part 1.B Part.A Part.B Part.C Part 3.A Part 3.B Part 3.C Test Simple Addition Program

More information

Training Schedule. Robotic System Design using Arduino Platform

Training Schedule. Robotic System Design using Arduino Platform Training Schedule Robotic System Design using Arduino Platform Session - 1 Embedded System Design Basics : Scope : To introduce Embedded Systems hardware design fundamentals to students. Processor Selection

More information

You'll create a lamp that turns a light on and off when you touch a piece of conductive material

You'll create a lamp that turns a light on and off when you touch a piece of conductive material TOUCHY-FEELY LAMP You'll create a lamp that turns a light on and off when you touch a piece of conductive material Discover : installing third party libraries, creating a touch sensor Time : 5 minutes

More information

Milli Developer Kit Reference Application Published on Silver Spring Networks STAGE (

Milli Developer Kit Reference Application Published on Silver Spring Networks STAGE ( Milli Developer Kit Example Application PART 1 Example CoAP Server Sensor Implementation With The Milli Dev Kit Get the Milli Developer Kit Temperature Sensor Reference Application on GitHub [1] This reference

More information

Internet of Things Student STEM Project Jackson High School. Lesson 2: Arduino and LED

Internet of Things Student STEM Project Jackson High School. Lesson 2: Arduino and LED Internet of Things Student STEM Project Jackson High School Lesson 2: Arduino and LED Lesson 2: Arduino and LED Time to complete Lesson 60-minute class period Learning objectives Students learn about Arduino

More information

Arduino Microcontroller Processing for Everyone!: Third Edition / Steven F. Barrett

Arduino Microcontroller Processing for Everyone!: Third Edition / Steven F. Barrett Arduino Microcontroller Processing for Everyone!: Third Edition / Steven F. Barrett Anatomy of a Program Programs written for a microcontroller have a fairly repeatable format. Slight variations exist

More information

LESSONS Lesson 1. Microcontrollers and SBCs. The Big Idea: Lesson 1: Microcontrollers and SBCs. Background: What, precisely, is computer science?

LESSONS Lesson 1. Microcontrollers and SBCs. The Big Idea: Lesson 1: Microcontrollers and SBCs. Background: What, precisely, is computer science? LESSONS Lesson Lesson : Microcontrollers and SBCs Microcontrollers and SBCs The Big Idea: This book is about computer science. It is not about the Arduino, the C programming language, electronic components,

More information

ISSN: [Singh* et al., 6(6): June, 2017] Impact Factor: 4.116

ISSN: [Singh* et al., 6(6): June, 2017] Impact Factor: 4.116 IJESRT INTERNATIONAL JOURNAL OF ENGINEERING SCIENCES & RESEARCH TECHNOLOGY WORKING, OPERATION AND TYPES OF ARDUINO MICROCONTROLLER Bhupender Singh, Manisha Verma Assistant Professor, Electrical Department,

More information

Arduino An Introduction

Arduino An Introduction Arduino An Introduction Hardware and Programming Presented by Madu Suthanan, P. Eng., FEC. Volunteer, Former Chair (2013-14) PEO Scarborough Chapter 2 Arduino for Mechatronics 2017 This note is for those

More information

CPSC 226 Lab Four Spring 2018

CPSC 226 Lab Four Spring 2018 CPSC 226 Lab Four Spring 2018 Directions. This lab is a quick introduction to programming your Arduino to do some basic internal operations and arithmetic, perform character IO, read analog voltages, drive

More information

Portland State University MICROCONTROLLERS

Portland State University MICROCONTROLLERS PH-315 MICROCONTROLLERS INTERRUPTS and ACCURATE TIMING I Portland State University OBJECTIVE We aim at becoming familiar with the concept of interrupt, and, through a specific example, learn how to implement

More information

Computational Crafting with Arduino. Christopher Michaud Marist School ECEP Programs, Georgia Tech

Computational Crafting with Arduino. Christopher Michaud Marist School ECEP Programs, Georgia Tech Computational Crafting with Arduino Christopher Michaud Marist School ECEP Programs, Georgia Tech Introduction What do you want to learn and do today? Goals with Arduino / Computational Crafting Purpose

More information

ESE 350 Microcontroller Laboratory Lab 5: Sensor-Actuator Lab

ESE 350 Microcontroller Laboratory Lab 5: Sensor-Actuator Lab ESE 350 Microcontroller Laboratory Lab 5: Sensor-Actuator Lab The purpose of this lab is to learn about sensors and use the ADC module to digitize the sensor signals. You will use the digitized signals

More information

Arduino Platform Capabilities in Multitasking. environment.

Arduino Platform Capabilities in Multitasking. environment. 7 th International Scientific Conference Technics and Informatics in Education Faculty of Technical Sciences, Čačak, Serbia, 25-27 th May 2018 Session 3: Engineering Education and Practice UDC: 004.42

More information

CONSTRUCTION GUIDE IR Alarm. Robobox. Level I

CONSTRUCTION GUIDE IR Alarm. Robobox. Level I CONSTRUCTION GUIDE Robobox Level I This month s montage is an that will allow you to detect any intruder. When a movement is detected, the alarm will turn its LEDs on and buzz to a personalized tune. 1X

More information

Application Note AN 157: Arduino UART Interface to TelAire T6613 CO2 Sensor

Application Note AN 157: Arduino UART Interface to TelAire T6613 CO2 Sensor Application Note AN 157: Arduino UART Interface to TelAire T6613 CO2 Sensor Introduction The Arduino UNO, Mega and Mega 2560 are ideal microcontrollers for reading CO2 sensors. Arduino boards are useful

More information

ASCOM EF Lens Controller

ASCOM EF Lens Controller ASCOM EF Lens Controller ASCOM EF Lens Controller control unit for Canon EF/EF-S lenses. It allows you to control lens using the ASCOM platform tools. Features (supported by driver): focus control; aperture

More information

The Motor sketch. One Direction ON-OFF DC Motor

The Motor sketch. One Direction ON-OFF DC Motor One Direction ON-OFF DC Motor The DC motor in your Arduino kit is the most basic of electric motors and is used in all types of hobby electronics. When current is passed through, it spins continuously

More information

Attribution Thank you to Arduino and SparkFun for open source access to reference materials.

Attribution Thank you to Arduino and SparkFun for open source access to reference materials. Attribution Thank you to Arduino and SparkFun for open source access to reference materials. Contents Parts Reference... 1 Installing Arduino... 7 Unit 1: LEDs, Resistors, & Buttons... 7 1.1 Blink (Hello

More information

Arduino Workshop 01. AD32600 Physical Computing Prof. Fabian Winkler Fall 2014

Arduino Workshop 01. AD32600 Physical Computing Prof. Fabian Winkler Fall 2014 AD32600 Physical Computing Prof. Fabian Winkler Fall 2014 Arduino Workshop 01 This workshop provides an introductory overview of the Arduino board, basic electronic components and closes with a few basic

More information

WEEK. Learning Objective. Materials to Prepare LESSON

WEEK. Learning Objective. Materials to Prepare LESSON WEEK 01 Tender Tender Browsing Learning Objective Let s take a look at how making boards are used in various fields and think about our future projects. Materials to Prepare A4 sheet, color markers, camera,

More information

100UF CAPACITOR POTENTIOMETER SERVO MOTOR MOTOR ARM. MALE HEADER PIN (3 pins) INGREDIENTS

100UF CAPACITOR POTENTIOMETER SERVO MOTOR MOTOR ARM. MALE HEADER PIN (3 pins) INGREDIENTS 05 POTENTIOMETER SERVO MOTOR MOTOR ARM 100UF CAPACITOR MALE HEADER PIN (3 pins) INGREDIENTS 63 MOOD CUE USE A SERVO MOTOR TO MAKE A MECHANICAL GAUGE TO POINT OUT WHAT SORT OF MOOD YOU RE IN THAT DAY Discover:

More information

CONSTRUCTION GUIDE Capacitor, Transistor & Motorbike. Robobox. Level VII

CONSTRUCTION GUIDE Capacitor, Transistor & Motorbike. Robobox. Level VII CONSTRUCTION GUIDE Capacitor, Transistor & Motorbike Robobox Level VII Capacitor, Transistor & Motorbike In this box, we will understand in more detail the operation of DC motors, transistors and capacitor.

More information

Lab 4 Rev. 1 Open Lab Due COB Friday April 6, 2018

Lab 4 Rev. 1 Open Lab Due COB Friday April 6, 2018 EE314 Systems Spring Semester 2018 College of Engineering Prof. C.R. Tolle South Dakota School of Mines & Technology Lab 4 Rev. 1 Open Lab Due COB Friday April 6, 2018 In this lab we will setup Matlab

More information

Servo Sweep. Learn to make a regular Servo move in a sweeping motion.

Servo Sweep. Learn to make a regular Servo move in a sweeping motion. Servo Sweep Learn to make a regular Servo move in a sweeping motion. We have seen how to control a Servo and also how to make an LED Fade on and off. This activity will teach you how to make a regular

More information

Saturday Academy Program

Saturday Academy Program Lesson Plans High School Courses Donald L. McCoy K-to-College STEM Education Consultant thempitman@gmail.com Last Update: October 17, 2018 Virtual Reality Coding using PlayCanvas RobotC Coding Applications

More information

Name & SID 1 : Name & SID 2:

Name & SID 1 : Name & SID 2: EE40 Final Project-1 Smart Car Name & SID 1 : Name & SID 2: Introduction The final project is to create an intelligent vehicle, better known as a robot. You will be provided with a chassis(motorized base),

More information

Application Note. Communication between arduino and IMU Software capturing the data

Application Note. Communication between arduino and IMU Software capturing the data Application Note Communication between arduino and IMU Software capturing the data ECE 480 Team 8 Chenli Yuan Presentation Prep Date: April 8, 2013 Executive Summary In summary, this application note is

More information

ARDUINO / GENUINO. start as professional. short course in a book. faculty of engineering technology

ARDUINO / GENUINO. start as professional. short course in a book. faculty of engineering technology ARDUINO / GENUINO start as professional short course in a book faculty of engineering technology Publisher Universiti Malaysia Pahang Kuantan 2017 Copyright Universiti Malaysia Pahang, 2017 First Published,

More information

Using the S5U13781R01C100 Shield Graphics Library with Atmel Studio

Using the S5U13781R01C100 Shield Graphics Library with Atmel Studio Using the S5U13781R01C100 Shield Graphics Library with Atmel Studio Document Number: X94A-B-002-01 Status: Revision 1.0 Issue Date: 2015/07/30 SEIKO EPSON CORPORATION Rev. 1.0 Page 2 NOTICE No part of

More information

Assignments from last week

Assignments from last week Assignments from last week Review LED flasher kits Review protoshields Need more soldering practice (see below)? http://www.allelectronics.com/make-a-store/category/305/kits/1.html http://www.mpja.com/departments.asp?dept=61

More information

Lecture 4: Basic Electronics. Lecture 4 Brief Introduction to Electronics and the Arduino

Lecture 4: Basic Electronics. Lecture 4 Brief Introduction to Electronics and the Arduino Lecture 4: Basic Electronics Lecture 4 Page: 1 Brief Introduction to Electronics and the Arduino colintan@nus.edu.sg Lecture 4: Basic Electronics Page: 2 Objectives of this Lecture By the end of today

More information

1 Day Robot Building (MC40A + Aluminum Base) for Edubot 2.0

1 Day Robot Building (MC40A + Aluminum Base) for Edubot 2.0 1 Day Robot Building (MC40A + Aluminum Base) for Edubot 2.0 Have you ever thought of making a mobile robot in 1 day? Now you have the chance with MC40A Mini Mobile Robot Controller + some accessories.

More information

EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Lab Timer: Blinking LED Lights and Pulse Generator

EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Lab Timer: Blinking LED Lights and Pulse Generator EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Lab 9 555 Timer: Blinking LED Lights and Pulse Generator In many digital and analog circuits it is necessary to create a clock

More information

Arduino Setup & Flexing the ExBow

Arduino Setup & Flexing the ExBow Arduino Setup & Flexing the ExBow What is Arduino? Before we begin, We must first download the Arduino and Ardublock software. For our Set-up we will be using Arduino. Arduino is an electronics platform.

More information

Lab 5: Inverted Pendulum PID Control

Lab 5: Inverted Pendulum PID Control Lab 5: Inverted Pendulum PID Control In this lab we will be learning about PID (Proportional Integral Derivative) control and using it to keep an inverted pendulum system upright. We chose an inverted

More information

ZX Distance and Gesture Sensor Hookup Guide

ZX Distance and Gesture Sensor Hookup Guide Page 1 of 13 ZX Distance and Gesture Sensor Hookup Guide Introduction The ZX Distance and Gesture Sensor is a collaboration product with XYZ Interactive. The very smart people at XYZ Interactive have created

More information

PWM CONTROL USING ARDUINO. Learn to Control DC Motor Speed and LED Brightness

PWM CONTROL USING ARDUINO. Learn to Control DC Motor Speed and LED Brightness PWM CONTROL USING ARDUINO Learn to Control DC Motor Speed and LED Brightness In this article we explain how to do PWM (Pulse Width Modulation) control using arduino. If you are new to electronics, we have

More information

Experiment 1: Robot Moves in 3ft squared makes sound and

Experiment 1: Robot Moves in 3ft squared makes sound and Experiment 1: Robot Moves in 3ft squared makes sound and turns on an LED at each turn then stop where it started. Edited: 9-7-2015 Purpose: Press a button, make a sound and wait 3 seconds before starting

More information

CONSTRUCTION GUIDE Robotic Arm. Robobox. Level II

CONSTRUCTION GUIDE Robotic Arm. Robobox. Level II CONSTRUCTION GUIDE Robotic Arm Robobox Level II Robotic Arm This month s robot is a robotic arm with two degrees of freedom that will teach you how to use motors. You will then be able to move the arm

More information

Getting Started with the micro:bit

Getting Started with the micro:bit Page 1 of 10 Getting Started with the micro:bit Introduction So you bought this thing called a micro:bit what is it? micro:bit Board DEV-14208 The BBC micro:bit is a pocket-sized computer that lets you

More information

GETTING STARTED WITH THE MSP430 LAUNCHPAD BY ADRIAN FERNANDEZ, DUNG DANG

GETTING STARTED WITH THE MSP430 LAUNCHPAD BY ADRIAN FERNANDEZ, DUNG DANG Read Online and Download Ebook GETTING STARTED WITH THE MSP430 LAUNCHPAD BY ADRIAN FERNANDEZ, DUNG DANG DOWNLOAD EBOOK : GETTING STARTED WITH THE MSP430 LAUNCHPAD BY ADRIAN FERNANDEZ, DUNG DANG PDF Click

More information

Arduino: Sensors for Fun and Non Profit

Arduino: Sensors for Fun and Non Profit Arduino: Sensors for Fun and Non Profit Slides and Programs: http://pamplin.com/dms/ Nicholas Webb DMS: @NickWebb 1 Arduino: Sensors for Fun and Non Profit Slides and Programs: http://pamplin.com/dms/

More information

ARDUINO / GENUINO. start as professional

ARDUINO / GENUINO. start as professional ARDUINO / GENUINO start as professional . ARDUINO / GENUINO start as professional short course in a book MOHAMMED HAYYAN ALSIBAI SULASTRI ABDUL MANAP Publisher Universiti Malaysia Pahang Kuantan 2017 Copyright

More information

Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators

Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators Ahmed Okasha, Assistant Lecturer okasha1st@gmail.com Objective Have a

More information

WEEK. Learning Objective. Materials to Prepare. Summary of Class LESSON

WEEK. Learning Objective. Materials to Prepare. Summary of Class LESSON WEEK 01 Tender Tender Browsing Learning Objective Let s take a look at how making boards are used in various fields and think about our future projects. Materials to Prepare A4 sheet, color markers, camera,

More information

Motors and Servos Part 2: DC Motors

Motors and Servos Part 2: DC Motors Motors and Servos Part 2: DC Motors Back to Motors After a brief excursion into serial communication last week, we are returning to DC motors this week. As you recall, we have already worked with servos

More information

Lesson 13. The Big Idea: Lesson 13: Infrared Transmitters

Lesson 13. The Big Idea: Lesson 13: Infrared Transmitters Lesson Lesson : Infrared Transmitters The Big Idea: In Lesson 12 the ability to detect infrared radiation modulated at 38,000 Hertz was added to the Arduino. This lesson brings the ability to generate

More information

School of Engineering Mechatronics Engineering Department. Experim. ment no. 1

School of Engineering Mechatronics Engineering Department. Experim. ment no. 1 University of Jordan School of Engineering Mechatronics Engineering Department 2010 Mechatronics System Design Lab Experim ment no. 1 PRINCIPLES OF SWITCHING Copyrights' are held by : Eng. Ala' Bata &

More information

EE 210 Lab Exercise #3 Introduction to PSPICE

EE 210 Lab Exercise #3 Introduction to PSPICE EE 210 Lab Exercise #3 Introduction to PSPICE Appending 4 in your Textbook contains a short tutorial on PSPICE. Additional information, tutorials and a demo version of PSPICE can be found at the manufacturer

More information

Total Hours Registration through Website or for further details please visit (Refer Upcoming Events Section)

Total Hours Registration through Website or for further details please visit   (Refer Upcoming Events Section) Total Hours 110-150 Registration Q R Code Registration through Website or for further details please visit http://www.rknec.edu/ (Refer Upcoming Events Section) Module 1: Basics of Microprocessor & Microcontroller

More information

Downloading a ROBOTC Sample Program

Downloading a ROBOTC Sample Program Downloading a ROBOTC Sample Program This document is a guide for downloading and running programs on the VEX Cortex using ROBOTC for Cortex 2.3 BETA. It is broken into four sections: Prerequisites, Downloading

More information

Application Note AN 102: Arduino I2C Interface to K 30 Sensor

Application Note AN 102: Arduino I2C Interface to K 30 Sensor Application Note AN 102: Arduino I2C Interface to K 30 Sensor Introduction The Arduino UNO, MEGA 1280 or MEGA 2560 are ideal microcontrollers for operating SenseAir s K 30 CO2 sensor. The connection to

More information

Sten-Bot Robot Kit Stensat Group LLC, Copyright 2013

Sten-Bot Robot Kit Stensat Group LLC, Copyright 2013 Sten-Bot Robot Kit Stensat Group LLC, Copyright 2013 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

Security in a Radio Controlled Remote Switch

Security in a Radio Controlled Remote Switch Security in a Radio Controlled Remote Switch Project 3, EDA625 Security, 2017 Ben Smeets Dept. of Electrical and Information Technology, Lund University, Sweden Last revised by Adnan Mehmedagic on 2017-02-14

More information

Lab 13: Microcontrollers II

Lab 13: Microcontrollers II Lab 13: Microcontrollers II You will turn in this lab report at the end of lab. Be sure to bring a printed coverpage to attach to your report. Prelab Watch this video on DACs https://www.youtube.com/watch?v=b-vug7h0lpe.

More information

Touch Potentiometer Hookup Guide

Touch Potentiometer Hookup Guide Page 1 of 14 Touch Potentiometer Hookup Guide Introduction The Touch Potentiometer, or Touch Pot for short, is an intelligent, linear capacitive touch sensor that implements potentiometer functionality

More information

Community College of Allegheny County Unit 4 Page #1. Timers and PWM Motor Control

Community College of Allegheny County Unit 4 Page #1. Timers and PWM Motor Control Community College of Allegheny County Unit 4 Page #1 Timers and PWM Motor Control Revised: Dan Wolf, 3/1/2018 Community College of Allegheny County Unit 4 Page #2 OBJECTIVES: Timers: Astable and Mono-Stable

More information

EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE

EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE LABORATORY 6: INTRODUCTION TO BREADBOARDS DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING UNIVERSITY OF NEVADA, LAS VEGAS GOAL: This section introduces

More information

O Reilly Ebooks Your bookshelf on your devices!

O Reilly Ebooks Your bookshelf on your devices! Free Sampler O Reilly Ebooks Your bookshelf on your devices! When you buy an ebook through oreilly.com, you get lifetime access to the book, and whenever possible we provide it to you in four, DRM-free

More information

BEYOND TOYS. Wireless sensor extension pack. Tom Frissen s

BEYOND TOYS. Wireless sensor extension pack. Tom Frissen s LEGO BEYOND TOYS Wireless sensor extension pack Tom Frissen s040915 t.e.l.n.frissen@student.tue.nl December 2008 Faculty of Industrial Design Eindhoven University of Technology 1 2 TABLE OF CONTENT CLASS

More information

Figure 1. Digilent DC Motor

Figure 1. Digilent DC Motor Laboratory 9 - Usage of DC- and servo-motors The current laboratory describes the usage of DC and servomotors 1. DC motors Figure 1. Digilent DC Motor Classical DC motors are converting electrical energy

More information

RUNNYMEDE COLLEGE & TECHTALENTS

RUNNYMEDE COLLEGE & TECHTALENTS RUNNYMEDE COLLEGE & TECHTALENTS Why teach Scratch? The first programming language as a tool for writing programs. The MIT Media Lab's amazing software for learning to program, Scratch is a visual, drag

More information