Working with Arduino: Lesson #3: Force Sensitive Resistors EGN1007.

Slides:



Advertisements
Similar presentations
Sensing and Control.
Advertisements

Electrical team Arduino tutorial I BY: JOSHUA arduini
Intermediate Electronics and Lilypad Where Electronics Meet Textiles Workshop with Lynne Bruning and Troy Robert Nachtigall Sponsored by Spark Fun and.
Servo Background Servos provide control of rotary position Servos are used extensively in the remote control hobby world for: Aircraft (flaps, ailerons,
What is Arduino?  Arduino is a ATMEL 168 micro-controller kit designed specially for small projects  User friendly IDE(Integrated Development Environment)
How to use Arduino By: Andrew Hoffmaster.
Photos and Sensor Instructions
New Human Computer Interfaces Amnon Dekel HUJI – CSE, Spring 2007 Class 3 March
ELECTRONIC/COMPUTER AGE. Electronic/Computer Age  Electronics –Electrical signals can carry information quickly over wires or through the air by radio.
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
Working with Arduino: Lesson #2: Variable, Photo, and Force Sensitive Resistors EGN1007.
Available at: – Program Potentiometer in Autonomous Mode Program potentiometer in autonomous mode.
Basic Circuits – Lab 2 Arduino and Sensors Xmedia Spring 2011.
ARDUINO PROGRAMMING Working with the Arduino microcontroller.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
Basic Circuits – Lab 2 Arduino and Sensors
Image of Arduino. Arduino discussion Address issues with circuit walk-through – Electricity, Programming, Arduino Concepts Work on BeatTable (next week)
Dean Brock, Rebecca Bruce and Susan Reiser, CCSC SE 2009 Using Arduino Material taken from Todbot blog Bionic Arduino Todbot blog Bionic ArduinoTodbot.
Week 10 Today 1.Homework presentations and critique. 2.Review digital and analog inputs. 3.DIY - jumpers, soldering etc.
ENGR 1181 First-Year Engineering Program College of Engineering Engineering Education Innovation Center First-Year Engineering Program Solar Energy Meter.
Chapter 16:Electricity Section 3 – Circuits.
Program ultrasonic range sensor in autonomous mode
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class 2.
Holt: Physics Ch. 20 – 1 Pages
Working with Arduino: Lesson #4: Servos EGN1007. Learning Goals Learning Goals: The student will be able to: 1.Build a complete circuit using the Arduino.
Tweaking Your Simon Adding a photoresistor and changing code Instruction by Pete Lewis and Linz Craig.
Overview What is Arduino? What is it used for? How to get started Demonstration Questions are welcome at any time.
Solar Energy Lab 1 ENGR Today's Learning Objectives  After today's class, students will be able to: Describe and build both a calibration and solar.
Photos and Sensor Instructions
1 - Remove LED from 13 and GND - Bring out your breadboard from HW#4 Arduino Overview:
Detection Circuit ENGR Pre Lab.
Programming - Motion Intro to Robotics. Motors and Sensors Setup The first thing we need to do is tell ROBOTC that we have motors on our robot. Choose.
INTERNET OF EVERYTHING SDU 2016 Week 4. Simple Digital and Analog Inputs  The Arduino’s ability to sense digital and analog inputs allows it to respond.
Electronics for Physical Computing Materials: capacitor, diode, LED, transistor, switch,resistor, relay, proto board, multimeter.
Microcontroller basics Embedded systems for mortals.
Bdps 2 Lecture 2. Circuits and Ohm's Law For resistive circuits.
Connect VEX and ROBOTC Electrical Engineer Responsibilities © 2011 Project Lead The Way, Inc.Automation and Robotics VEX.
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
Arduino.
Electrical Engineer Responsibilities
Group 29 JUN SUNG LEE, JAE HYUN KANG
Flow of electrons from one place to another.
Assist. Prof. Rassim Suliyev - SDU 2017
Scrolling LCD using Arduino.
Learning about electricity and circuits
Microprocessors Tutorial 1: Arduino Basics
Electrical Engineer Responsibilities
Introduction to Handshaking Communication with SSC-32U
Resistance By the end of this lesson, you will be able to…
Arduino Uno and sensors
Introduction to Handshaking Communication with SSC-32
Introduction to Arduino Microcontrollers
Introduction to Arduino Microcontrollers
Electrical Engineer Responsibilities
Analog Input through POT
Electrical Engineer Responsibilities
Roller Coaster Design Project
All you wanted to know about Arduino (and somethings you didn’t)
The Voltage Divider Key to Big Ideas
Arduino Week 2 Lab ECE 1020 Prof. Ahmadi.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
Basic circuits Electrical circuits Electrical properties Ohm’s law
Arduino Part 4 Let there be more light.
Photos and Sensor Instructions
CTY SAR FCPS Shawn Lupoli, Elliot Tan
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Aeroponic Engineering and Vertical Farming
Lab #1: Getting Started.
Intro to Arduino Part 2 The Breadboard
Automotive Technology Principles, Diagnosis, and Service
Presentation transcript:

Working with Arduino: Lesson #3: Force Sensitive Resistors EGN1007

Learning Goals Learning Goals: The student will be able to: 1.Build a complete circuit using the Arduino microprocessor 2.Identify important electrical components in a circuit and explain their use 3.Identify and apply specific elements in “C” code used to run a program in conjunction with how a circuit is built

Force Sensitive resistors The schematic symbol is that of a regular resistor with an arrow through it. And “f” net to the arrow is indicative of FORCE. An FSR is identical to a potentiometer, except rather that varying its resistance relative to shaft position its resistance varies with pressure. A force sensing resistor is made up of two parts. The first is a resistive material applied to a film. The second is a set of digitating contacts applied to another film. The figure shows this configuration. The resistive material serves to make an electrical path between the two sets of conductors on the other film. When a force is applied to this sensor, a better connection is made between the contacts, hence the conductivity is increased.

Let’s Begin 1.Place FSR on G5 & G6 2.Run a red wire from the 5V on the Arduino to H5. This will supply the FSR with 5V. 3.Run a wire from Analog 2 to H6. 4.Place a 10K  resistor(Br-BL-O) in I6 and I12. 5.Place the LED on G15 and G16 with the longer lead(+) of the LED in G15. 6.Place a 560  resistor on H16 and H22. Notice that both the resistor and LED share row 16 7.Run a red wire from Digital 9 port on Arduino to H15. 8.Run a black wire from H22 to the ground(GND). 9.Run a black wire from H12 to I22.

Programming our sketch Let’s define 2 variables as integers. These will tell us which ports our LED and FSR are in.

Programming our sketch Just like before we need to set our LED as an output. We have a new piece of code here: Serial.begin ( ) Sets the data rate in bits per second (baud) for serial data transmission. So basically we are going to transfer 9600 bits per second to the computer. Old modems attached to our phone lines used to work at this speed. This was considered FAST back in the day, until finally came out.

Programming our sketch We begin by creating a variable called “value” which will read the value on the FSR and divide it by 4. This will then be written to the LED and ALSO sent as a piece of data and displayed in a Debugger Window. When “println” is used after the Serial command it takes the reading from the FSR and displays it in a window(debugger) for inspection. Compile, download, and test. Does the LED light up.

Your turn! Using what you have learned in this lesson AND the last lesson, write a short program that is BETTER than the one we wrote. Hint: Use the debugger to get the values you need and use information previously learned. The response from the LED should be a bit smoother. Write your code on the lesson worksheet and explain your code.

Challenge Can you write a program that lights more than one LED using the FSR so that they light in a sequence or other pattern? Write your code on the lesson worksheet and explain your code.