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

Size: px
Start display at page:

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

Transcription

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

2 Introduction What do you want to learn and do today? Goals with Arduino / Computational Crafting

3 Purpose Encourage and develop a mindset of iterative interaction between materials and electricity Identify difference between Engineering and Art.

4 STEAM: Science Technology Engineering Arts Mathematics What is Engineering? What is Art?

5 Engineering Given a problem to solve: Using a design process to Analyze, Design, Implement, Test and Deliver a system that solves that specific problem. Architecture Hardware Software Process

6

7 Arts Encode non-verbal Human Expression in a dynamic system that humans can reflect on, change, and share. Arts are interactive and designed for encoding and sharing non-verbal expressive human thought. Bennett Reimer: A Philosophy of Music Education

8 Research and Development Lies in that space between Arts and Engineering Most education/activities we call Engineering for students are actually Research and Development or Arts type activities. Explore Create Develop This causes tension between Engineers and Artists. (and sometimes within us) Example: Help me fix this problem and then Expert needs to Research and Develop before they can engineer a solution... (Tech Support )

9 Where does this apply in Teaching? (and STEAM teaching) Define the Goal of the Activity! Are we... Tinkering with software or tool (Learning a specific set of skills or software) (Equipping) Solving a Specific Problem (Often designed by teacher or curriculum) Engaging in Artistic Expressing (or Research and Development) Engineering a solution to a problem we defined Implementing the Solution!

10 Example: Music Tinkering: Practicing Scales / Etudes Learning Fingerings Noodling Solving Problem: Learning a piece of music somebody else has written. Research and Development: Improvising Engineering: Composing Implementation: Performing for audience

11 Example: Computer Science Tinkering: Playing with Scratch, learning syntax of programming language Solving a Problem: Given a problem, develop an algorithm to return the proper values Research and Development: Experimenting with programming systems Engineering: Working with a customer to define problem and design software system Implementation: Writing the code to solve the problem you defined and giving to customer

12 Student, Artist, or Engineer? Each Activity / Lesson / Learning Experience needs to be defined in the context of purpose. Keep STEAM relevant in education long after the acronym fades from interest.

13 Examples of Computational Crafting

14 Electricity: Just enough knowledge to be dangerous

15 Elements of Electrical Circuits - +

16 Power Source (Battery, Wall Socket) Have a positive and negative side (Battery Example) Difference in Charge or Potential Energy Measured in Volts (V) or Electro-motive Force E

17 Resistor Light Bulb, Motor, other equipment that resists flow of electrons Control the flow of Electrons in a Circuit Fixed or Variable Measured in Ohms or R

18 Current or Amps The amount of electrons flowing at a given point in time Measured as I. Also called Current One Amp = 1 Coulomb per second. A Coulomb is equal to ^18 electrons

19 Power Unit of Work Measured in Watts (W)(P) or Horsepower) 1000 watts (1 Kilowatt) = Horsepower

20 Algebraic Relationships between Volts(V), Resistance(R), Amps (I), and Watts (P)

21 A 36 Volt Battery supplies current to a 3 Ohm Resistor. -How many Amps flow through this Circuit? -In 1 second how many electrons flow past this point in the circuit? -What is the Power in Watts produced by this Circuit?

22 Pin 9 supplies 5 Volts to the LED and the 330 Ohm resistor. -What is the measurement for Amps in this circuit. (Give answer in milliamps) -Show the direction of the flow of Electrons.

23 900 Watts 4 Ohms Resistance A 900 Watt sound system uses drives 4 Ohms of Speakers. -What is the Voltage and Current for this system at Full Power? 20 Amp Fuse Power Supply -This system is connected to a 20 Amp fuse. If I increase the Wattage in the system, at what Wattage will push the fuse past 20 Amps? (And blow the circuit )

24 Kirchhoff s Law For any complete Electrical Circuit, the following formulas show the relationship between partial and total volts, resistance, and amps. V0 = V1 + V2 + V3 R0 = R1 + R2 + R3 (In Series) A0 = A1 + A2 + A3 (In Parallel)

25 Coulomb s Law F = k Q 1Q 2 r 2 F is the force in Newtons Q1 and Q2 are the charges of the two bodies in coulombs r is the separation of the two bodies in meters k is a constant equal to Nm 2 C 2 (In reality k = Nm 2 C 2.)

26 Drift Velocity of Current Drift Velocity of Current: I = Aenv I is the current in amperes and A is conductor's cross-sectional Area in square meters e is the charge of an electron 1.6 * 10^-19 n is the number of free electrons / cubic meter of material v is the velocity of electron drift

27

28 Atmega328 PDIP Chip

29 Arduino Uno Statistics

30

31

32 Circuit 01 Layout Pin 9 LED Ohm Resistor 5V GND

33 Servo Layout +5 V Servo Ground Pin 9 5V GND

34 Arduino in Motion Motors and Servos Introduction to Robotics and Engineering

35 Motor or Servo? Motor Faster revolution but less Power Speed controlled by varying voltage (Pulse Width Modulation) Powered from 5 Volt lead Servo Motor combined with encoder. More powerful, but slower Two types Standard: 180 Degree Rotation Continuous Rotation Three leads: Signal (from pin) 5 Volt Ground

36

37 Two Types of Servos Standard Only rotates within a 180 Degree range Write Value to Servo holds the position Good for Armatures Hands, Arms Holding Devices Continuous Rotation Rotates like a motor all the way around Values written to Servo set speed 0 -> Full Counterclockwise 180 -> Full Clockwise Good for drive systems Wheels, Rollers

38 Single Power Source Setup

39 External Power Source Servo Setup

40 Servo Commands Servo Library: Must have this line in the beginning of each program #include <Servo.h> To Create Instance of Servo Object: (myservo can be any name) Servo myservo; To Attach a Servo to a Pin: myservo.attach(9); To Start Servo: myservo.write(0);

41 Piezo Layout Pin 13 Piezo + GND 5V

42 Piezo and Potentiometer Layout Pin 13 Piezo + +5 V Ground 5V A0 GND

43 Adruino Piezo and Tone Function Electronics I Marist School

44

45

46 tone(pin, frequency, duration)

47 Use with Arrays

48 Function with tone and array:

49 Port Assignments for Pre- Programmed Arduino D2: LED On D3: LED On D4: LED On D5: Tone(5, 259) D6: LED On / Off 1000 ms D7: LED On / Off 1000 ms D8: LED On / Off 1000 ms D9: LED On / Off 1000 ms D10: Servo 180 D11: Servo 180 D12: Servo 0 D13: Servo 0

50 Build #1: Create a sculpture or device with Pre-Programmed Arduino Design Process Requirements Design Implementation Test Download Sample Code to Arduino

51 Steps to Download Sample Code Go to: set.txt Copy the text Open Arduino Sketch Paste the text into an Arduino Sketch document Plug in Arduino Uno via USB cable Download the Sample Code using the Download icon.

52 Design Process Design: (How will the device by built?) (How will these match with the requirements)

53 Design Process Requirements: (What will the device do?)

54 Java Programming and Serial Printing with Arduino Mr. Michaud Marist School

55 Serial Communication Sends data between devices Communication rate is measured in bits per second. Called Baud Arduino Uno default is 9600 bits per second. 8 bits make a byte A byte is one character (Char)

56 Key Functions void setup() Must be defined Runs one time Acts like a constructor in Java void loop() Must be defined Runs continuously (In a loop...) Like the act() method in Greenfoot or Gridworld

57 Serial Functions Serial.begin(9600) Initiates Serial Communication at 9600 Baud Called in setup() function Serial.println(<string>) Prints string to console Example: Serial.println( Hello ); Serial.println(<number>) Prints number to console

58 Example Code

59 Data Types and Variables

60 Operators

61 Declaring Variables and Arrays Variables: int myage = 14; // Integer float angle = 2*PI; // Float String name = Mr. Michaud ; Arrays: int pins [] = {3, 4, 5, 6}; String gospels [] = { Matthew, Mark, Luke, John };

62 For Loop Repeats section of code while counting up or down with an index variable Example for (int i = 0; i < 10; i++) { } Serial.println(i); Returns:

63 for (int i = 0; i < 10; i++) {} i++ means "i = i + 1" int i means "integer i" for (int i = 0; i < 10; i++) means "For index variable i starting at 0, while i is less than 10, count be 1."

64 Combined For Loop and Array

65 Conditional Statements if statement : Checks if a given statement or expression is true and then executes a section of code if (score > 9) { Serial.println( You Win ); }

66 While Loop Executes a Segment of Code while a Condition is True

67 References Key Vocabulary: ( ndbolts/index.html) Another Good Reference:

68 Arduino Key Functions LED Blink Projects

69 Pin Output Control and Timing pinmode(pin, Mode) pinmode(3, OUTPUT); digitalwrite(pin, State) digitalwrite(3, HIGH); digitalwrite(3, LOW); delay(milliseconds) delay(1000);

70 Program Control Two Key Functions in all Arduino Programs:

71 Sample Program Declare and set variables pointing to pins. setup() sets the pin mode to output send signals. loop() repeats turning on, then off the lights at ½ second intervals

72 For Loop Used to repeat a set of commands for (int i = 0; i < 8; i++) { // repeated commands } Means: Set i to zero. While i is less than 8, add 1 to i. This sequence will loop 8 times: 0, 1, 2, 3, 4, 5, 6, 7

73 Example:

74 Adruino Piezo and Tone Function Electronics I Marist School

75

76

77 tone(pin, frequency, duration)

78 Use with Arrays

79 Function with tone and array:

80 Pitch Chart:

81 Single Power Source Setup

82 External Power Source Servo Setup

83 Servo Commands Servo Library: Must have this line in the beginning of each program #include <Servo.h> To Create Instance of Servo Object: (myservo can be any name) Servo myservo; To Attach a Servo to a Pin: myservo.attach(9); To Start Servo: myservo.write(0);

84 Programming: Input Principle: Take incoming electrical current and vary the resistance to get different voltage levels. Arduino reads these different voltage levels in the Analog pins and assigns a number ranged from 0 to 1023 for voltage level. Map the incoming voltage (0-1023) to a function or algorithm to invoke action.

85

86

87 Sensors and Arduino Sensor Value is read through Analog input pins A0, A1, A2, A3, A4, and A5 Value is taken as input of 0 to 5 volts and converted to a 10 bit depth number. (0 to 1024). analogread(pinnumber) function will return to the program an integer between 0 and Sensors work by varying resistance in the circuit, resulting in a varying the voltage sent to the Analog input pins.

88 Piezo and Potentiometer Layout Pin 13 Piezo + +5 V Ground 5V A0 GND

89

90

91

92

93 Pushbutton Sensor: Analog Mode

94 Pushbutton Sensor: Digital Mode

95

96

97 Microphone

98 Build #2: Design a sculpture / device with your own programming Design Process: Requirements Design Implementation Test

99 Design Process Design: (How will the device by built?) (How will these match with the requirements)

100 Design Process Requirements: (What will the device do?)

101 Tools: Fritzing: Layout and Schematic diagrams for circuits

102 Other Arduino Applications Sound: Minim Computer Vision with Processing Arduino as extension of PC using Processing (motor controller)

Arduino Control of Tetrix Prizm Robotics. Motors and Servos Introduction to Robotics and Engineering Marist School

Arduino Control of Tetrix Prizm Robotics. Motors and Servos Introduction to Robotics and Engineering Marist School Arduino Control of Tetrix Prizm Robotics Motors and Servos Introduction to Robotics and Engineering Marist School Motor or Servo? Motor Faster revolution but less Power Tetrix 12 Volt DC motors have a

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

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

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

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

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

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

Parts List. Robotic Arm segments ¼ inch screws Cable XBEE module or Wifi module

Parts List. Robotic Arm segments ¼ inch screws Cable XBEE module or Wifi module Robotic Arm 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 defects.

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

Arduino Digital Out_QUICK RECAP

Arduino Digital Out_QUICK RECAP Arduino Digital Out_QUICK RECAP BLINK File> Examples>Digital>Blink int ledpin = 13; // LED connected to digital pin 13 // The setup() method runs once, when the sketch starts void setup() // initialize

More information

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

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

EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs Introduction to Arduino EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs 10-11 Introduction to Arduino In this lab we will introduce the idea of using a microcontroller as a tool for controlling

More information

Lecture 6. Interfacing Digital and Analog Devices to Arduino. Intro to Arduino

Lecture 6. Interfacing Digital and Analog Devices to Arduino. Intro to Arduino Lecture 6 Interfacing Digital and Analog Devices to Arduino. Intro to Arduino PWR IN USB (to Computer) RESET SCL\SDA (I2C Bus) POWER 5V / 3.3V / GND Analog INPUTS Digital I\O PWM(3, 5, 6, 9, 10, 11) Components

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

Lesson4 Obstacle avoidance car

Lesson4 Obstacle avoidance car Lesson4 Obstacle avoidance car 1 Points of this section The joy of learning, is not just know how to control your car, but also know how to protect your car. So, make you car far away from collision. Learning

More information

Arduino and Servo Motor

Arduino and Servo Motor Arduino and Servo Motor 1. Basics of the Arduino Board and Arduino a. Arduino is a mini computer that can input and output data using the digital and analog pins b. Arduino Shield: mounts on top of Arduino

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

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

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

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

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

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

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

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

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

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

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

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

Exam Practice Problems (3 Point Questions)

Exam Practice Problems (3 Point Questions) Exam Practice Problems (3 Point Questions) Below are practice problems for the three point questions found on the exam. These questions come from past exams as well additional questions created by faculty.

More information

Disclaimer. Arduino Hands-On 2 CS5968 / ART4455 9/1/10. ! Many of these slides are mine. ! But, some are stolen from various places on the web

Disclaimer. Arduino Hands-On 2 CS5968 / ART4455 9/1/10. ! Many of these slides are mine. ! But, some are stolen from various places on the web Arduino Hands-On 2 CS5968 / ART4455 Disclaimer! Many of these slides are mine! But, some are stolen from various places on the web! todbot.com Bionic Arduino and Spooky Arduino class notes from Tod E.Kurt!

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

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

B RoboClaw 2 Channel 30A Motor Controller Data Sheet

B RoboClaw 2 Channel 30A Motor Controller Data Sheet B0098 - RoboClaw 2 Channel 30A Motor Controller (c) 2010 BasicMicro. All Rights Reserved. Feature Overview: 2 Channel at 30Amp, Peak 60Amp Battery Elimination Circuit (BEC) Switching Mode BEC Hobby RC

More information

Lab 06: Ohm s Law and Servo Motor Control

Lab 06: Ohm s Law and Servo Motor Control CS281: Computer Systems Lab 06: Ohm s Law and Servo Motor Control The main purpose of this lab is to build a servo motor control circuit. As with prior labs, there will be some exploratory sections designed

More information

Megamark Arduino Library Documentation

Megamark Arduino Library Documentation Megamark Arduino Library Documentation The Choitek Megamark is an advanced full-size multipurpose mobile manipulator robotics platform for students, artists, educators and researchers alike. In our mission

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

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

Chapter 2: Your Boe-Bot's Servo Motors

Chapter 2: Your Boe-Bot's Servo Motors Chapter 2: Your Boe-Bot's Servo Motors Vocabulary words used in this lesson. Argument in computer science is a value of data that is part of a command. Also data passed to a procedure or function at the

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

Experiment #3: Micro-controlled Movement

Experiment #3: Micro-controlled Movement Experiment #3: Micro-controlled Movement So we re already on Experiment #3 and all we ve done is blinked a few LED s on and off. Hang in there, something is about to move! As you know, an LED is an output

More information

Intelligent Systems Design in a Non Engineering Curriculum. Embedded Systems Without Major Hardware Engineering

Intelligent Systems Design in a Non Engineering Curriculum. Embedded Systems Without Major Hardware Engineering Intelligent Systems Design in a Non Engineering Curriculum Embedded Systems Without Major Hardware Engineering Emily A. Brand Dept. of Computer Science Loyola University Chicago eabrand@gmail.com William

More information

Industrial Automation Training Academy. Arduino, LabVIEW & PLC Training Programs Duration: 6 Months (180 ~ 240 Hours)

Industrial Automation Training Academy. Arduino, LabVIEW & PLC Training Programs Duration: 6 Months (180 ~ 240 Hours) nfi Industrial Automation Training Academy Presents Arduino, LabVIEW & PLC Training Programs Duration: 6 Months (180 ~ 240 Hours) For: Electronics & Communication Engineering Electrical Engineering Instrumentation

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

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

1. Introduction to Analog I/O

1. Introduction to Analog I/O EduCake Analog I/O Intro 1. Introduction to Analog I/O In previous chapter, we introduced the 86Duino EduCake, talked about EduCake s I/O features and specification, the development IDE and multiple examples

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

Introduction: Components used:

Introduction: Components used: Introduction: As, this robotic arm is automatic in a way that it can decides where to move and when to move, therefore it works in a closed loop system where sensor detects if there is any object in a

More information

Date Issued: 12/13/2016 iarmc.06: Draft 6. TEAM 1 - iarm CONTROLLER FUNCTIONAL REQUIREMENTS

Date Issued: 12/13/2016 iarmc.06: Draft 6. TEAM 1 - iarm CONTROLLER FUNCTIONAL REQUIREMENTS Date Issued: 12/13/2016 iarmc.06: Draft 6 TEAM 1 - iarm CONTROLLER FUNCTIONAL REQUIREMENTS 1 Purpose This document presents the functional requirements for an accompanying controller to maneuver the Intelligent

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

Arduino Advanced Projects

Arduino Advanced Projects Arduino Advanced Projects Created as a companion manual to the Toronto Public Library Arduino Kits. Arduino Advanced Projects Copyright 2017 Toronto Public Library. All rights reserved. Published by the

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

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

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

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

SCHOOL OF TECHNOLOGY AND PUBLIC MANAGEMENT ENGINEERING TECHNOLOGY DEPARTMENT

SCHOOL OF TECHNOLOGY AND PUBLIC MANAGEMENT ENGINEERING TECHNOLOGY DEPARTMENT SCHOOL OF TECHNOLOGY AND PUBLIC MANAGEMENT ENGINEERING TECHNOLOGY DEPARTMENT Course ENGT 3260 Microcontrollers Summer III 2015 Instructor: Dr. Maged Mikhail Project Report Submitted By: Nicole Kirch 7/10/2015

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

Two Hour Robot. Lets build a Robot.

Two Hour Robot. Lets build a Robot. Lets build a Robot. Our robot will use an ultrasonic sensor and servos to navigate it s way around a maze. We will be making 2 voltage circuits : A 5 Volt for our ultrasonic sensor, sound and lights powered

More information

Lesson 2 Bluetooth Car

Lesson 2 Bluetooth Car Lesson 2 Bluetooth Car Points of this section It is very important and so cool to control your car wirelessly in a certain space when we learn the Arduino, so in the lesson, we will teach you how to control

More information

4WD Mobile Platform SKU:ROB0022

4WD Mobile Platform SKU:ROB0022 4WD Mobile Platform SKU:ROB0022 Contents [hide] 1 Function Introduction 1.1 STEP1: Assemble Robot 1.2 STEP2: Debug Motor 1.3 STEP3:Install Upper Plate 1.4 STEP4: Debug Ultrasonic Sensor and Servo 1.5 STEP5:

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

Basics before Migtrating to Arduino

Basics before Migtrating to Arduino Basics before Migtrating to Arduino Who is this for? Written by Storming Robots Last update: Oct 11 th, 2013 This document is meant for preparing students who have already good amount of programming knowledge,

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

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

INA169 Breakout Board Hookup Guide

INA169 Breakout Board Hookup Guide Page 1 of 10 INA169 Breakout Board Hookup Guide CONTRIBUTORS: SHAWNHYMEL Introduction Have a project where you want to measure the current draw? Need to carefully monitor low current through an LED? The

More information

Arduino. AS220 Workshop. Part II Interactive Design with advanced Transducers Lutz Hamel

Arduino. AS220 Workshop. Part II Interactive Design with advanced Transducers Lutz Hamel AS220 Workshop Part II Interactive Design with advanced Transducers Lutz Hamel hamel@cs.uri.edu www.cs.uri.edu/~hamel/as220 How we see the computer Image source: Considering the Body, Kate Hartman, 2008.

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

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

Quantizer step: volts Input Voltage [V]

Quantizer step: volts Input Voltage [V] EE 101 Fall 2008 Date: Lab Section # Lab #8 Name: A/D Converter and ECEbot Power Abstract Partner: Autonomous robots need to have a means to sense the world around them. For example, the bumper switches

More information

EARTH PEOPLE TECHNOLOGY. EPT-200TMP-TS-U2 Temperature Sensor Docking Board User Manual

EARTH PEOPLE TECHNOLOGY. EPT-200TMP-TS-U2 Temperature Sensor Docking Board User Manual EARTH PEOPLE TECHNOLOGY EPT-200TMP-TS-U2 Temperature Sensor Docking Board User Manual The EPT-200TMP-TS-U2 is a temperature sensor mounted on a docking board. The board is designed to fit onto the Arduino

More information

URM37 V3.2 Ultrasonic Sensor (SKU:SEN0001)

URM37 V3.2 Ultrasonic Sensor (SKU:SEN0001) URM37 V3.2 Ultrasonic Sensor (SKU:SEN0001) From Robot Wiki Contents 1 Introduction 2 Specification 2.1 Compare with other ultrasonic sensor 3 Hardware requierments 4 Tools used 5 Software 6 Working Mode

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

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

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

The answer is R= 471 ohms. So we can use a 470 ohm or the next higher one, a 560 ohm.

The answer is R= 471 ohms. So we can use a 470 ohm or the next higher one, a 560 ohm. Introducing Resistors & LED s P a g e 1 Resistors are used to adjust the voltage and current in a circuit. The higher the resistance value, the more electrons it blocks. Thus, higher resistance will lower

More information

Sidekick Basic Kit for Arduino V2 Introduction

Sidekick Basic Kit for Arduino V2 Introduction Sidekick Basic Kit for Arduino V2 Introduction The Arduino Sidekick Basic Kit is designed to be used with your Arduino / Seeeduino / Seeeduino ADK / Maple Lilypad or any MCU board. It contains everything

More information

CONSTRUCTION GUIDE Light Robot. Robobox. Level VI

CONSTRUCTION GUIDE Light Robot. Robobox. Level VI CONSTRUCTION GUIDE Light Robot Robobox Level VI The Light In this box dedicated to light we will discover, through 3 projects, how light can be used in our robots. First we will see how to insert headlights

More information

Blink. EE 285 Arduino 1

Blink. EE 285 Arduino 1 Blink At the end of the previous lecture slides, we loaded and ran the blink program. When the program is running, the built-in LED blinks on and off on for one second and off for one second. It is very

More information

Experiment 4.B. Position Control. ECEN 2270 Electronics Design Laboratory 1

Experiment 4.B. Position Control. ECEN 2270 Electronics Design Laboratory 1 Experiment 4.B Position Control Electronics Design Laboratory 1 Procedures 4.B.1 4.B.2 4.B.3 4.B.4 Read Encoder with Arduino Position Control by Counting Encoder Pulses Demo Setup Extra Credit Electronics

More information

Community College of Allegheny County Unit 7 Page #1. Analog to Digital

Community College of Allegheny County Unit 7 Page #1. Analog to Digital Community College of Allegheny County Unit 7 Page #1 Analog to Digital "Engineers can't focus just on technology; they need to develop their professional skills-things like presenting yourself, speaking

More information

TETRIX PULSE Workshop Guide

TETRIX PULSE Workshop Guide TETRIX PULSE Workshop Guide 44512 1 Who Are We and Why Are We Here? Who is Pitsco? Pitsco s unwavering focus on innovative educational solutions and unparalleled customer service began when the company

More information

Servomotor Control with Arduino Integrated Development Environment. Application Notes. Bingyang Wu Mar 27, Introduction

Servomotor Control with Arduino Integrated Development Environment. Application Notes. Bingyang Wu Mar 27, Introduction Servomotor Control with Arduino Integrated Development Environment Application Notes Bingyang Wu Mar 27, 2015 Introduction Arduino is a tool for making computers that can sense and control more of the

More information

keyestudio keyestudio Mini Tank Robot

keyestudio keyestudio Mini Tank Robot keyestudio Mini Tank Robot Catalog 1. Introduction... 1 2. Parameters... 1 3. Component list... 1 4. Application of Arduino... 2 5. Project details... 12 Project 1: Obstacle-avoidance Tank... 12 Project

More information

Robotic Arm Assembly Instructions

Robotic Arm Assembly Instructions Robotic Arm Assembly Instructions Last Revised: 11 January 2017 Part A: First follow the instructions: http://www.robotshop.com/media/files/zip2/rbmea-02_-_documentation_1.zip While assembling the servos:

More information

CIS009-2, Mechatronics Signals & Motors

CIS009-2, Mechatronics Signals & Motors CIS009-2, Signals & Motors Bedfordshire 13 th December 2012 Outline 1 2 3 4 5 6 7 8 3 Signals Two types of signals exist: 4 Bedfordshire 52 Analogue signal In an analogue signal voltages and currents continuously

More information

Arduino as a tool for physics experiments

Arduino as a tool for physics experiments Journal of Physics: Conference Series PAPER OPEN ACCESS Arduino as a tool for physics experiments To cite this article: Giovanni Organtini 2018 J. Phys.: Conf. Ser. 1076 012026 View the article online

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

Project 27 Joystick Servo Control

Project 27 Joystick Servo Control Project 27 Joystick Servo Control For another simple project, let s use a joystick to control the two servos. You ll arrange the servos in such a way that you get a pan-tilt head, such as is used for CCTV

More information

Built-in soft-start feature. Up-Slope and Down-Slope. Power-Up safe start feature. Motor will only start if pulse of 1.5ms is detected.

Built-in soft-start feature. Up-Slope and Down-Slope. Power-Up safe start feature. Motor will only start if pulse of 1.5ms is detected. Thank You for purchasing our TRI-Mode programmable DC Motor Controller. Our DC Motor Controller is the most flexible controller you will find. It is user-programmable and covers most applications. This

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

Learning Objectives. References 10/26/11. Using servos with an Arduino. EAS 199A Fall 2011

Learning Objectives. References 10/26/11. Using servos with an Arduino. EAS 199A Fall 2011 Using servos with an Arduino EAS 199A Fall 2011 Learning Objectives Be able to identify characteristics that distinguish a servo and a DC motor Be able to describe the difference a conventional servo and

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

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

Using Servos with an Arduino

Using Servos with an Arduino Using Servos with an Arduino ME 120 Mechanical and Materials Engineering Portland State University http://web.cecs.pdx.edu/~me120 Learning Objectives Be able to identify characteristics that distinguish

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

Grove - Infrared Receiver

Grove - Infrared Receiver Grove - Infrared Receiver The Infrared Receiver is used to receive infrared signals and also used for remote control detection. There is an IR detector on the Infrared Receiver which is used to get the

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

ABCs of Arduino. Kurt Turchan -

ABCs of Arduino. Kurt Turchan - ABCs of Arduino Kurt Turchan - kurt@trailpeak.com Bio: Kurt is a web designer (java/php/ui-jquery), project manager, instructor (PHP/HTML/...), and arduino enthusiast, Kurt is founder of www.trailpeak.com

More information

HOW TO BUILD A CAR PARK WITH INTEL GALILEO!

HOW TO BUILD A CAR PARK WITH INTEL GALILEO! HOW TO BUILD A CAR PARK WITH INTEL GALILEO! A step by step tutorial to build, in a very simple way, a funny car park with automatic barrier and display counter with your Intel Galileo!» Recommended age

More information

NAMASKAR ROBOT-WHICH PROVIDES SERVICE

NAMASKAR ROBOT-WHICH PROVIDES SERVICE Int. J. Elec&Electr.Eng&Telecoms. 2014 V Sai Krishna and R Sunitha, 2014 Research Paper ISSN 2319 2518 www.ijeetc.com Vol. 3, No. 1, January 2014 2014 IJEETC. All Rights Reserved NAMASKAR ROBOT-WHICH PROVIDES

More information

The USELESS BOX. Procedure:

The USELESS BOX. Procedure: The USELESS BOX The useless box is exactly what it implies. A project that is pretty much Useless and is made for pure entertainment. You are going to go through the process of building this project from

More information