EEG 101L INTRODUCTION TO ENGINEERING EXPERIENCE

Size: px
Start display at page:

Download "EEG 101L INTRODUCTION TO ENGINEERING EXPERIENCE"

Transcription

1 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 The FYS kit will include all the components necessary to perform the experiments following this section. Please verify that your kit contains all the listed components and make sure to notify any necessary parties if they do not x Arduino UNO x USB A to B Cable x Danger Shield x TB6612FNG Dual Motor Driver Carrier x 50:1 Micro Metal Gearmotor x Sharp Digital Distance Sensor 2-10cm x Zumo Chassis Kit (No Motors) x QTR-8RC Reflectance Sensor Array x Jumper Wires Premium 12" M/M x Arduino Prototyping Shield x Rechargable AA Batteries 12. 1x 9V DC Adapter 13. 1x 9V Battery 14. 1x LED 15. 1x 100 ohm Resistor DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 1

2 2. INTRODUCTION TO ARDUINO IDE AND PROGRAMMING GOAL: This chapter will familiarize the user with the installation process of the Arduino Uno drivers and Arduino IDE on a Windows PC. The user will learn how to connect the Arduino board to the PC, install the necessary drivers, install the IDE, and familiarize themselves with the Arduino programming language. OBJECTIVES: Connect the Arduino Uno to a Windows PC Install Arduino IDE Install Arduino Drivers Familiarize user with Arduino programming language and syntax OVERVIEW AND REQUIREMENTS: This experiment only requires a basic knowledge of programming and computer usage. COMPONENTS: DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 2

3 Host PC Arduino UNO USB A-B Cable Arduino Software [ SCHEMATICS: DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 3

4 PROCEDURE: Driver and IDE installation 1. Download the the Arduino software onto the host PC. 2. Extract the contents of the Arduino zip file. 3. Connect the Arduino UNO into the PC using the USB cable. 4. Go to Start Computer Right Click Properties. 5. Open the Device Manager located under Control Panel Home. DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 4

5 6. From the device manager, right click the unknown device and select Update Driver Software Select Browse my computer for driver software. DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 5

6 8. Search for the drivers folder from the extracted zip directory. EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE 9. Windows will detect that the drivers in this directory are unsigned and will request that you formally accept installing them. Select Install this driver software anyway. DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 6

7 10. This will complete the installation of the Arduino Uno Drivers. Your device manager should reflect these changes. DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 7

8 Exploring the Arduino IDE The Arduino IDE is the software on the host PC that is used for writing programs (referred to as sketches), as well as for sketch uploading and commnication with arduino devices. It has a built in text editor, messaging area, text console, and a toolbar based menu with functions and commands. In order to open the Arduino IDE, run arduino.exe found in the extracted folder. The following is an example of what should appear. Verify: Checks your code for errors. Upload: Compiles your code and uploads it to the Arduino I/O board. DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 8

9 New: Creates a new sketch. Open: Presents a menu of all the sketches in your sketchbook. Clicking one will open it within the current window. Save: Saves your sketch. Serial Monitor: Opens the serial monitor. Under the Tools menu there are options to select the appropriate Serial port and Board type you will be programming on. For these experiments we will always be using Tools Board Arduino Uno and the appropriate Com port listed under device manager for the installed Arduino Uno. The appropriate Com port can be found through the device manager, which it should say Arduino UNO R3 (COMx), where x is your Com port. Programming Basics The Arduino s programming language is a hybridized C/C++ language with a customized set of predetermined functions that directly interface with the Arduino board. Each program created is called a sketch. After a sketch has been compiled and verified, it is translated to machine language used by the Arduino Board and uploaded with the use of the Arduino IDE. DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 9

10 Structure The Arduino programming language has a basic structure consisting of a bare minimum of two parts. In order for a program to work, it a must to include both the setup() and loop() functions. The following is the structure for both functions. void setup() { //Setup Contents } void loop() { //Loop Contents } Note: Any text preceeded by // is a programmer comment that is ignored by the compiler and therefore will not be included in program execution. The instructions in the setup() are performed only once during program execution. It is used for various tasks such as to initialize the pin modes of Arduino, as well as initialize various functionality such as Serial. Even if there are no statements contained within the setup fucntion, it is still necesary to include the setup function in your code. void setup() { pinmode(13, OUTPUT); } //Set Pin 13 as an output. The loop() function contains the main body of your program. The loop function will loop consecutively, using its contents to control and program the Arduino. void loop() //Constantly Loop. { digitalwrite(13, HIGH); //Turn Pin 13 on. delay(500); //Pause for 500ms. digitalwrite(13, LOW); //Turn Pin 13 off. delay(500); //Pause for 500ms. } Variables A variable is a place for storing datum, a single piece of data. Each variable is defined with the use of a type, name, and value. For example: int pin = 13; This creates an integer variable whose name is pin and has a value of 13. With this variable we can replace all instances where the number 13 is hard coded with the variable pin instead. So in DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 10

11 the previous structure example all instances of 13 can be replaced with pin and would still be functionally correct. Variables allow a great deal of flexibiltiy in your program. They allow you to change the value of the pin instead of the value of all instances of 13 if you ever decide to use a different pin. If you select variable bnames that relate to the contents of the variable such as pin or count, it also improves the readability of your code, making it much easier to understand. Variable Scope The location of where a variable declared also explicitly defines where it can be used. If a variable is declared outside of both the setup() and loop() functions, it is considered global and accessible from anywhere in the program. This means that the variable has a global scope. If a variable is declared in those respective functions, then they are scoped to those regions. The scope of a variable is determined through the idea of nesting. Nesting means that a variable is usable in the area in which it is declared and all areas nested into it. If we take into consideration varaibles declared withinsetup() and loop(), they are on the same level, so variables declared in one will not be inherited by the other. If a variable is declared within setup() or loop(), then it is accessible by that function and only other functions nested within it. Functions Functions are blocks of code that can be called and used repeatedly throughout a program. Within the Arduino programming language there are several built-in functions such as setup(), loop(), and various other functions. Functions are useful in that they allow you simply call a function to use its code instead of rewriting it. Rather than constantly repeat a block of code to handle a specific task, a function may be called to do that task instead. Below are some examples of basic Arduino functions that are very useful to learn. More built-in functions will be discussed in later chapters. The pinmode() function configures an Arduino board s pin as either an input or an output pin. The function is passed a pin value (usually stored in a variable) and whether it is an input or an output. For example: pinmode(pin, INPUT); or pinmode(pin, OUTPUT); The digitalwrite() function sets the value of a pin to a logical 0 (LOW) or a 1 (HIGH). This value is typically representative of 5v and GND (0V) respectively. For example, a logical HIGH is written by: digitalwrite(pin, HIGH); DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 11

12 The delay() function causes the Arduino board to pause for a set amount of time in milliseconds before continuing to the next line of code (instruction). int delaytime = 1000; delay(delaytime); //Delay for 1000ms or 1s. Libraries Libraries are a collection of functions/procedures related to a specific task. There are several user written Libraries available for the Arduino, such as libraries used to control Servo motors, LCD s, and various other peripherals. To use an existing library in a sketch simply go to the Sketch menu, choose "Import Library", and pick from the libraries available. This will insert an #include statement at the top of the sketch for each header (.h) file in the library's folder. These statements make the public functions and constants defined by the library available to your sketch. They also signal the Arduino environment to link that library's code with your sketch when it is compiled or uploaded. Libraries are typically included in ~\Arduino\libraries\. To add your own library, use Windows to create a new directory in the libraries directory with the name of your library. The folder should contain a C or C++ file with your code and a header file with your function and variable declarations. It will then appear in the Sketch Import Library menu in the Arduino IDE. Using Serial Monitor Communication is enabled by the use of the Serial Library, which is already included and does not need to be added like Libraries for other tasks. Information can be passed back and forth between the Arduino IDE on the host PC and Arduino board by using Serial data transfer. Serial data transfer is the process of transferring data one bit DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 12

13 at a time. In relation to the Arduino, this is used to communicate between the host PC and the Arduino board.. The Arduino IDE has a serial monitor located in the top right of the menu bar. By clicking this button, a new window will pop up that monitors serial communication between the Arduino and PC via the corresponding COM port. The bottom right of the serial monitor indicates the baud (bits per second) rate in which the serial data is transferred. Basic Serial Commands The Serial.begin() function sets the data rate in bits per second (baud) for serial data transmission. The available rates for use are 300, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, or Serial.begin(9600); The Serial.read() function reads incoming serial data. Serial.read(); DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 13

14 The Serial.write() function writes binary data to the serial port. The data is sent as a byte or a series of bytes. Serial.write(5); //sends a byte with a value of 5 The Serial.print()/Serial.println() functions print data to the serial port as readable text. Serial.println additionally prints a carriage return and newline character. Serial.print("Hello world."); //prints "Hello world." We are now ready to compile and upload our very first sketch to the Arduino. 1. Open the Arduino IDE. 2. Create and save a new Sketch as HelloWorld by going to File Save As... DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 14

15 3. Write the following code into the Arduino IDE, then compile to verify it. void setup() // Setup, runs once { Serial.begin(9600); //Initialize the Serial Library at 9600 Baud Serial.println("Hello world!"); //Prints Hellow World! With a line break } void loop() { } // Loop, runs over and over again 4. Once the code has been verified, upload it using the upload button. DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 15

16 DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 16

17 5. Click the Serial Monitor button in order to view your results. TEST YOUR UNDERSTANDING: 1. Modify the previous code so that Hello world! is written once every second to the serial monitor. 2. Research and decribe all available variable types for the Arduino programming language. REFERENCES: DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING 17

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

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

How to use the Zduino LEE Module with the Trainer Board

How to use the Zduino LEE Module with the Trainer Board How to use the Zduino LEE Module with the Trainer Board Note: If you are going to use the Arduino/Zduino module for this distance training workshop, please download the Arduino software: 1. Connections

More information

ROBOTLINKING THE POWER SUPPLY LEARNING KIT TUTORIAL

ROBOTLINKING THE POWER SUPPLY LEARNING KIT TUTORIAL ROBOTLINKING THE POWER SUPPLY LEARNING KIT TUTORIAL 1 Preface About RobotLinking RobotLinking is a technology company focused on 3D Printer, Raspberry Pi and Arduino open source community development.

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

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

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

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

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

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

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

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

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

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

Arduino 101 AN INTRODUCTION TO ARDUINO BY WOMEN IN ENGINEERING FT T I NA A ND AW E S O ME ME NTO R S

Arduino 101 AN INTRODUCTION TO ARDUINO BY WOMEN IN ENGINEERING FT T I NA A ND AW E S O ME ME NTO R S Arduino 101 AN INTRODUCTION TO ARDUINO BY WOMEN IN ENGINEERING FT T I NA A ND AW E S O ME ME NTO R S Overview Motivation Circuit Design and Arduino Architecture Projects Blink the LED Switch Night Lamp

More information

Laboratory 1 Introduction to the Arduino boards

Laboratory 1 Introduction to the Arduino boards Laboratory 1 Introduction to the Arduino boards The set of Arduino development tools include µc (microcontroller) boards, accessories (peripheral modules, components etc.) and open source software tools

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

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

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

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

Halloween Pumpkinusing. Wednesday, October 17, 12

Halloween Pumpkinusing. Wednesday, October 17, 12 Halloween Pumpkinusing Blink LED 1 What you will need: 1 MSP-EXP430G2 1 3 x 2 Breadboard 3 560 Ohm Resistors 3 LED s (in Red Color Range) 3 Male to female jumper wires 1 Double AA BatteryPack 2 AA Batteries

More information

Advanced Activities - Information and Ideas

Advanced Activities - Information and Ideas Advanced Activities - Information and Ideas Congratulations! You successfully created and controlled the robotic chameleon using the program developed for the chameleon project. Here you'll learn how you

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

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

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

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

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

Specification. 1.Power Supply direct from Microcontroller Board. 2.The circuit can be used with Microcontroller Board such as Arduino UNO R3.

Specification. 1.Power Supply direct from Microcontroller Board. 2.The circuit can be used with Microcontroller Board such as Arduino UNO R3. Part Number : Product Name : FK-FA1410 12-LED AND 3-BOTTON SHIELD This is the experimental board for receiving and transmitting data from the port of microcontroller. The function of FK-FA1401 is fundamental

More information

Arduino Programming. Arduino UNO & Innoesys Educational Shield

Arduino Programming. Arduino UNO & Innoesys Educational Shield Arduino Programming Arduino UNO & Innoesys Educational Shield www.devobox.com Electronic Components & Prototyping Tools 79 Leandrou, 10443, Athens +30 210 51 55 513, info@devobox.com ARDUINO UNO... 3 INNOESYS

More information

Blinking an LED 1 PARTS: Circuit 2 LED. Wire. 330Ω Resistor

Blinking an LED 1 PARTS: Circuit 2 LED. Wire. 330Ω Resistor Circuit PIN 3 RedBoard Blinking an LED LED (Light-Emitting Diode) Resistor (33 ohm) (Orange-Orange-Brown) LEDs (light-emitting diodes) are small, powerful lights that are used in many different applications.

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

The Big Idea: Background:

The Big Idea: Background: Lesson 7 Lesson 7: For For Loops Loops The Big Idea: This lesson simplifies the control of digital pins by assigning the pin numbers to an integer variable and by calling the digitalwrite command multiple

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

RoastLogger Arduino/TC4 driver installation for Windows 9/10/13 By John Hannon (JackH) at Homeroasters.org

RoastLogger Arduino/TC4 driver installation for Windows 9/10/13 By John Hannon (JackH) at Homeroasters.org This procedure was written for the Arduino Uno board with the TC4 shield. Please check the Arduino site for software if you are using a different model. I have not tested it, but this procedure should

More information

Prototyping & Engineering Electronics Kits Basic Kit Guide

Prototyping & Engineering Electronics Kits Basic Kit Guide Prototyping & Engineering Electronics Kits Basic Kit Guide odysseyboard.com Please refer to www.odysseyboard.com for a PDF updated version of this guide. Guide version 1.0, February, 2018. Copyright Odyssey

More information

TA0139 USER MANUAL ARDUINO 2 WHEEL DRIVE WIRELESS BLUETOOTH ROBOT KIT

TA0139 USER MANUAL ARDUINO 2 WHEEL DRIVE WIRELESS BLUETOOTH ROBOT KIT TA0139 USER MANUAL ARDUINO 2 WHEEL DRIVE WIRELESS BLUETOOTH ROBOT KIT I Contents Overview TA0139... 1 Getting started: Arduino 2 Wheel Drive Wireless Bluetooth Robot Kit using Arduino UNO... 1 2.1. What

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

3. The circuit is composed of 1 set of Relay circuit.

3. The circuit is composed of 1 set of Relay circuit. Part Number : Product Name : FK-FA1420 ONE CHANNEL 12V RELAY MODULE This is the experimental module for a relay controller as the fundamental controlling programming. It is adaptable or is able to upgrade

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

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

Lab 1: Arduino Basics. Rodrigo Carbajales and Marco Zennaro ICTP Trieste-Italy

Lab 1: Arduino Basics. Rodrigo Carbajales and Marco Zennaro ICTP Trieste-Italy Lab 1: Arduino Basics Rodrigo Carbajales and Marco Zennaro ICTP Trieste-Italy Step Zero Clean up your desks! :) Goals of this Lab Learn how the programming takes place Excercises about: installing the

More information

Connecting Arduino to Processing a

Connecting Arduino to Processing a Connecting Arduino to Processing a learn.sparkfun.com tutorial Available online at: http://sfe.io/t69 Contents Introduction From Arduino......to Processing From Processing......to Arduino Shaking Hands

More information

IoT with Intel Galileo Gerardo Carmona. makerobots.tk

IoT with Intel Galileo Gerardo Carmona. makerobots.tk IoT with Intel Galileo Gerardo Carmona Outline What is Intel Galileo? Hello world! In Arduino Arduino and Linux Linux via SSH Playing around in Linux Programming flexibility How GPIOs works Challenge 1:

More information

RedBoard Hookup Guide

RedBoard Hookup Guide Page 1 of 11 RedBoard Hookup Guide CONTRIBUTORS: JIMB0 Introduction The Redboard is an Arduino-compatible development platform that enables quick-and-easy project prototyping. It can interact with real-world

More information

USER MANUAL ARDUINO I/O EXPANSION SHIELD

USER MANUAL ARDUINO I/O EXPANSION SHIELD USER MANUAL ARDUINO I/O EXPANSION SHIELD Description: Sometimes Arduino Uno users run short of pins because there s a lot of projects that requires more than 20 signal pins. The only option they are left

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

Designed & Developed By: Ms. Jasleen Kaur, PhD Scholar, CSE. Computer Science & Engineering Department

Designed & Developed By: Ms. Jasleen Kaur, PhD Scholar, CSE. Computer Science & Engineering Department Design & Development of IOT application using Intel based Galileo Gen2 board A Practical Approach (Experimental Manual For B.Tech & M.Tech Students) For SoC and Embedded systems in association with Intel

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

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

Introduction to Arduino

Introduction to Arduino Introduction to Arduino Mobile Computing, aa. 2016/2017 May 12, 2017 Daniele Ronzani - Ph.D student in Computer Science dronzani@math.unipd.it What are Microcontrollers Very small and simple computers

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

ISL RGB Sensor Tutorial By: Sabrina Jones

ISL RGB Sensor Tutorial By: Sabrina Jones ISL 25129 RGB Sensor Tutorial By: Sabrina Jones Overview The ISL29125 RGB sensor is a breakout board made to record the light intensity of the general red, green, and blue spectrums of visible light, that

More information

Lab 4 - Asynchronous Serial Communications

Lab 4 - Asynchronous Serial Communications Lab 4 - Asynchronous Serial Communications Part 1 - Software Loopback In serial communications one of the important tools we have that allows us to verify the communications channel is working properly

More information

DESERT CODE CAMP

DESERT CODE CAMP Implementing Multiple Serial Ports On An Arduino DESERT CODE CAMP 2011.2 Presented by Don Doerres Embedded Pro Guy don@azlaborlaw.com THE ARDUINO Arduino is Italian for Strong Friend The basic Arduino

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

DS18B20+ Digital Temperature Sensor

DS18B20+ Digital Temperature Sensor Handson Technology Data Specs DS18B20+ Digital Temperature Sensor This is a pre-wired and waterproofed version of the DS18B20 sensor. Handy for when you need to measure something far away, or in wet conditions.

More information

GUIDE TO SP STARTER SHIELD (V3.0)

GUIDE TO SP STARTER SHIELD (V3.0) OVERVIEW: The SP Starter shield provides a complete learning platform for beginners and newbies. The board is equipped with loads of sensors and components like relays, user button, LED, IR Remote and

More information

User manual. For Keenlon Rarduino.

User manual. For Keenlon Rarduino. User manual For Keenlon Rarduino Design & Executive Service Website Shanghai Keenlon Hi-Tech Co., Ltd. Techsupport@keenlon.com www.keenlon.com Contents 3 Programming software installation guide 5 Programming

More information

IME-100 ECE. Lab 3. Electrical and Computer Engineering Department Kettering University. G. Tewolde, IME100-ECE,

IME-100 ECE. Lab 3. Electrical and Computer Engineering Department Kettering University. G. Tewolde, IME100-ECE, IME-100 ECE Lab 3 Electrical and Computer Engineering Department Kettering University 3-1 1. Laboratory Computers Getting Started i. Log-in with User Name: Kettering Student (no password required) ii.

More information

Score. Test. Issued. Date. Name:

Score. Test. Issued. Date. Name: Name: Date Issued Test Score 1073 2 Workbook Summary To learn about Arduino electronics. To learn how to upload a code the Arduino UNO board. To learn the basic principles of electricity. To learn about

More information

AlphaBot2 robot building kit for Arduino

AlphaBot2 robot building kit for Arduino AlphaBot2 robot building kit for Arduino SKU 110060864 Description This AlphaBot2 robot kit is designed to use with an Arduino compatible board UNO PLUS. It features rich common robot functions including

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

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

Overview. Multiplexor. cs281: Introduction to Computer Systems Lab02 Basic Combinational Circuits: The Mux and the Adder

Overview. Multiplexor. cs281: Introduction to Computer Systems Lab02 Basic Combinational Circuits: The Mux and the Adder cs281: Introduction to Computer Systems Lab02 Basic Combinational Circuits: The Mux and the Adder Overview The objective of this lab is to understand two basic combinational circuits the multiplexor and

More information

Lecture 6: Embedded Systems and Microcontrollers

Lecture 6: Embedded Systems and Microcontrollers Lecture 6: Embedded Systems and Microcontrollers Bo Wang Division of Information & Computing Technology Hamad Bin Khalifa University bwang@hbku.edu.qa 1 What is Embedded System? Embedded System = Computers

More information

Introduction to Internet of Things Prof. Sudip Misra Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur

Introduction to Internet of Things Prof. Sudip Misra Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Introduction to Internet of Things Prof. Sudip Misra Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Lecture - 23 Introduction to Arduino- II Hi. Now, we will continue

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

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

TABLE OF CONTENTS INTRODUCTION LESSONS PROJECTS

TABLE OF CONTENTS INTRODUCTION LESSONS PROJECTS TABLE OF CONTENTS INTRODUCTION Introduction to Components - Maker UNO 5 - Maker UNO Board 6 - Setting Up - Download Arduino IDE 7 - Install Maker UNO Drivers - Install Maker UNO Board Package 3 LESSONS.

More information

Arduino Platform Part I

Arduino Platform Part I Arduino Platform Part I Justin Mclean Class Software Email: justin@classsoftware.com Twitter: @justinmclean Blog: http://blog.classsoftware.com Who am I? Director of Class Software for almost 15 years

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

LEARN HOW TO INTERFACE WITH AND ARDUINO

LEARN HOW TO INTERFACE WITH AND ARDUINO GET STARTED TO WORK WITH XBEE LEARN HOW TO INTERFACE WITH MINDSTORMS AND ARDUINO 3322 Rt.22W, Suite 402, Branchburg, NJ 08876 l www.stormingrobots.com l 908-595-1010 l admin@stormingrobots.com 1 P a g

More information

Lesson 8: Digital Input, If Else

Lesson 8: Digital Input, If Else Lesson 8 Lesson 8: Digital Input, If Else Digital Input, If Else The Big Idea: This lesson adds the ability of an Arduino sketch to respond to its environment, taking different actions for different situations.

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

cs281: Introduction to Computer Systems Lab03 K-Map Simplification for an LED-based Circuit Decimal Input LED Result LED3 LED2 LED1 LED3 LED2 1, 2

cs281: Introduction to Computer Systems Lab03 K-Map Simplification for an LED-based Circuit Decimal Input LED Result LED3 LED2 LED1 LED3 LED2 1, 2 cs28: Introduction to Computer Systems Lab3 K-Map Simplification for an LED-based Circuit Overview In this lab, we will build a more complex combinational circuit than the mux or sum bit of a full adder

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

ARDUINO UNO R3 BASED 20A ROBOT CONTROL BOARD [RKI-1580] Page 1

ARDUINO UNO R3 BASED 20A ROBOT CONTROL BOARD [RKI-1580]   Page 1 ARDUINO UNO R3 BASED 20A ROBOT CONTROL BOARD [RKI-1580] http://www.robokitsworld.com Page 1 1. Introduction: The Arduino UNO R3 based 20A robot control board is a versatile motor controller for driving

More information

Arduino C++ Introduction to programming Antony Watts M0IFA

Arduino C++ Introduction to programming Antony Watts M0IFA Arduino C++ Introduction to programming Antony Watts M0IFA Introduction Using the example code from a VFO sketch And along the way learn mainly about Arduino functions Libraries Open Arduino IDE, File

More information

Wireless Motor Driver Shield Hookup Guide

Wireless Motor Driver Shield Hookup Guide Page 1 of 18 Wireless Motor Driver Shield Hookup Guide Introduction The Wireless Motor Driver Shield is an Arduino shield designed to make it easier and faster to connect motors and sensors to your Arduino

More information

TA0013 ARDUINO RFID UNO STARTER KIT

TA0013 ARDUINO RFID UNO STARTER KIT TA0013 ARDUINO RFID UNO STARTER KIT Overview TA0013 This Arduino Uno ultimate project kit includes comprehensive range of components to get you started in building and experimenting with Arduino projects.

More information

Parts List. XBEE/Wifi Adapter board 4 standoffs ¼ inch screws Cable XBEE module or Wifi module

Parts List. XBEE/Wifi Adapter board 4 standoffs ¼ inch screws Cable XBEE module or Wifi module Rover Wifi Module 1 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 Sten-Bot kit against component

More information

USB Type A Female Breakout Hookup Guide

USB Type A Female Breakout Hookup Guide Page 1 of 7 USB Type A Female Breakout Hookup Guide Introduction If you have a microcontroller that can act as a USB host, then you will need a way to plug in USB cables and devices. The USB Type A Female

More information

Parts List. XBEE/Wifi Adapter board 4 standoffs ¼ inch screws Cable XBEE module or Wifi module

Parts List. XBEE/Wifi Adapter board 4 standoffs ¼ inch screws Cable XBEE module or Wifi module Rover Wifi Module 1 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 Sten-Bot kit against component

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

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

FIRE SENSOR ROBOT USING ATMEGA8L

FIRE SENSOR ROBOT USING ATMEGA8L PROJECT REPORT MICROCONTROLLER AND APPLICATIONS ECE 304 FIRE SENSOR ROBOT USING ATMEGA8L BY AKSHAY PATHAK (11BEC1104) SUBMITTED TO: PROF. VENKAT SUBRAMANIAN PRAKHAR SINGH (11BEC1108) PIYUSH BLAGGAN (11BEC1053)

More information

Smart Objects. SAPIENZA Università di Roma, M.Sc. in Product Design Fabio Patrizi

Smart Objects. SAPIENZA Università di Roma, M.Sc. in Product Design Fabio Patrizi Smart Objects SAPIENZA Università di Roma, M.Sc. in Product Design Fabio Patrizi 1 What is a Smart Object? Essentially, an object that: Senses Thinks Acts 2 Example 1 https://www.youtube.com/watch?v=6bncjd8eke0

More information

Arduino Uno. Arduino Uno R3 Front. Arduino Uno R2 Front

Arduino Uno. Arduino Uno R3 Front. Arduino Uno R2 Front Arduino Uno Arduino Uno R3 Front Arduino Uno R2 Front Arduino Uno SMD Arduino Uno R3 Back Arduino Uno Front Arduino Uno Back Overview The Arduino Uno is a microcontroller board based on the ATmega328 (datasheet).

More information

IR Communication a learn.sparkfun.com tutorial

IR Communication a learn.sparkfun.com tutorial IR Communication a learn.sparkfun.com tutorial Available online at: http://sfe.io/t33 Contents Getting Started IR Communication Basics Hardware Setup Receiving IR Example Transmitting IR Example Resources

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

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

Arduino Board Design. Nicholas Skadberg 4/30/09 EE290. Dr. Pushkin Kachroo

Arduino Board Design. Nicholas Skadberg 4/30/09 EE290. Dr. Pushkin Kachroo Arduino Board Design Nicholas Skadberg 4/30/09 EE290 Dr. Pushkin Kachroo Abstract In an effort to further understand the concept of digital control using a microprocessor, a simple serial output device

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 12: Burglar Alarmed Monday, 15 October 2018 12:31 PM BURGLAR ALARMED EXPLORE WALT: definition and decomposition of complex problems in terms of functional and non-functional requirements WILF - Defined

More information

Lesson 5: LDR Control

Lesson 5: LDR Control Lesson 5: LDR Control Introduction: Now you re familiar with the DIY Gamer and editing in an Arduino sketch. its time to write one from scratch. In this session you will write that talks to the Light Dependent

More information

IOX-16 User s Manual. Version 1.00 April Overview

IOX-16 User s Manual. Version 1.00 April Overview UM Unified Microsystems IOX-16 User s Manual Version 1.00 April 2013 Overview The IOX-16 Arduino compatible shield is an easy way to add 16 additional digital Input/Output (I/O) lines to your Arduino system.

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

Lab 8. Communications between Arduino and Android via Bluetooth

Lab 8. Communications between Arduino and Android via Bluetooth Lab 8. Communications between Arduino and Android via Bluetooth Dr. X. Li xhli@citytech.cuny.edu Dept. of Computer Engineering Technology New York City College of Technology (Copyright Reserved) In this

More information

TA0136 USER MANUAL ARDUINO 2 WHEEL DRIVE ULTRASONIC ROBOT KIT

TA0136 USER MANUAL ARDUINO 2 WHEEL DRIVE ULTRASONIC ROBOT KIT TA0136 USER MANUAL ARDUINO 2 WHEEL DRIVE ULTRASONIC ROBOT KIT I Contents Overview TA0136... 1 Getting started: the 2 Wheel Drive Ultrasonic Robot Kit using Arduino UNO... 1 2.1. What is Arduino?... 1 2.2.

More information

Station Automation --W3SZ

Station Automation --W3SZ Station Automation --W3SZ Now Back to Previously Scheduled Program USB-Serial IF/Transverter Bandswitch Arduino-VHFLog Example I started with Ed Finn WA3DRC s excellent code that was written to give TS2000

More information