SlideShare une entreprise Scribd logo
1  sur  25
PHYSICAL PROTOTYPING
© 2011 K3 Creative Commons v3.0 SA-NC
Lab 5: Complex Sensors
With the Arduino prototyping board
SENSOR
• Device measuring information from the environment (the
world) and translating the values into data understandable
by our computers
• We can classify the sensors into two different groups,
according to how they send information back to the
microprocessors:
– ANALOG SENSORS: those that interface
microprocessors through the analog inputs, offering
signals varying between 0 and 5Volts
– COMPLEX SENSORS: those that communicate using
either digital pins with PWM, serial communication, I2C
or SPI (FYI: the last two methods are special types of
serial communication)
ANALOG SENSORS
• ANALOG SENSORS: within this group we distinguish two modalities:
– RESISTIVE/CAPACITIVE SENSORS: those that contain a
resistive/capacitive component that varies its value with light,
temperature, etc.
• LDR – Light Dependant Resistors
• Potentiometer: angle/stretch sensor
• NTC – Negative Temperature Coefficient (Temp. var. resistor)
• Flex-sensors
• Pressure sensors
• Piezo Elements: can act as knock sensors
– SIMULATED ANALOG SENSORS: complex sensors offering a
simple interface to microcontrollers.
• ACCELEROMETERS: to measure tilt, and movement
• InfraRed: to measure distances from 1mm to 80cm
• Humidity
COMPLEX SENSORS
Their main characteristic are that they communicate using
either digital pins with PWM, serial communication, I2C or
SPI (FYI: the last two methods are special types of serial
communication)
There are many sensors within this group of complex sensors:
– ACCELEROMETERS: the classic is the MEMSIC2125
broadly used in prototypes, lately people are hacking Wii
controllers
– GPS: sends strings over a Serial connection
– PING, SRF04/05: ultrasound devices measuring the
distance to objects using sonar technology
– Precise Temperature sensors
SENSOR vs. ACTUATOR
Keep in mind the following statement:
EVERY ANALOG SENSOR CAN BE USED AS
AN ACTUATOR AND VICEVERSA
•For instance the piezo element that will also act as knock
sensor
•This can be applied at low level only (simple sensors), so this
does NOT apply for complex sensors and simulated analog
sensors
•Actuators will also act as sensors, e.g. a DC motor is also a
dynamo, what makes it into an analog sensor to detect
movement
A COUPLE OF TRICKS
If, after connecting your components to an Arduino board...
•you lack some digital inputs for your buttons, you can always use
analog inputs and detect values over/under 512 instead of HIGH
or LOW
•you lack some analog inputs for an analog sensor that you only
use with a threshold, you can put it into a digital input, knowing
that you will only read HIGH or LOW and that the threshold will be
at 2,5 Volts, to change it, you can use a potentiometer instead of a
pull-up resistor for your sensor
•you lack pins in general, to use as inputs, you can always use
multiplexer circuits to add extra inputs. A recommended circuit to
use is the 4051, which is broadly documented, or the tlc5940
which has some very nice libraries and is also well documented
PRESENCE vs. DISTANCE
• Many projects aim to determine whether there are people or not
in a space
• Other projects try to determine the distance of people to objects
• Different types of sensors allow to measure both presence and
distance
• However we have to keep in mind that:
– presence implies to distinguish animated from inanimate
objects: THIS IS VERY COMPLICATED
– distance implies multi-resolutive systems: THIS IS VERY
COMPLICATED
• As designers we just make prototypes and we look into some
features from sensors that allow us to simulate the desired
functionality ... BUT WE WON'T MAKE IT WORK FOR REAL!
DISTANCE
There are different types of sensors that act very well
depending on the distance (range) we want to measure:
– InfraRed is very precise under 1m, there are some
sensors that concentrate in just 3cm!!
– Ultrasound is very precise up to 10m, but it is a slow
technology, we can only measure 5 samples/second
with the kind of technology we use for prototyping
(empirical values when using the sensor data in
software programs)
– LDRs can be used for rough measuring of touch
(many use it in their projects to simulate touch sensors)
or distances smaller than 5cm, but it has very low
accuracy
ACCELEROMETER
• Accelerometers are sensors that can measure different
things, among others they can measure the tilt of an
object carrying the sensor, if the object moves, how quick
it moves, etc.
• Accelerometers are very noisy sensors, therefore their
data is not very accurate, however with a correction it is
possible to make them very useful for 3-D positioning
• An example of a corrected sensor is the Wiimote, or basic
Wii's game controller. It contains a 3-D accelerometer with
an infrared camera that will measure the position of the
screen correcting the possible errors made by the
accelerometer
• Even if noisy, accelerometers can be very useful for quick
prototypes within interaction design
ACCELEROMETER
• The accelerometer we are using (MMA7260QT XYZ-axis
accelerometer) can measure 3 dimensions of the
movement that we call axis X, Y and Z
• The information comes in three analog pins which can be
measured with a microcontroller
• The device operates at 2.2 V to 3.6 V, which can make
interfacing difficult for microcontrollers operating at 5 V.
• Pololu
IMAGES © 2009 http://www.pololu.com
ACCELEROMETER
• Each of the three outputs is an analog voltage that ranges from 0
to Vcc. For 5 V applications, the outputs will range from 0 to 3.3 V
• The 3.3 V output can be used as a reference for analog-to-digital
converters to gain full resolution samples.
• The way how this particular sensor works is through a moving
bubble of gas inside the chip. Other types of accelerometers use
other micro and nano techniques to measure the sensor's tilt and
acceleration
PICTURE © 2005 ParallaxInc
Both jumpers on selects a range of +/-1.5g;
GS1 jumper on and GS2 jumper off selects: +/-2g;
GS1 jumper off and GS2 jumper on selects: +/-4g;
both jumpers off selects a range of +/-6g.
ACCELEROMETER
EXERCISE ►ACCELEROMETER
• Connect one of the Accelerometer sensors
to your Arduino board
• Test to see if it works
• Modify the code so that it sends the
following strings to the computer:
“LEFT”, “RIGHT”, “UP”, “DOWN” ...
basically you should transform your Arduino
into a tilt-pad
ULTRASOUND
• Ultrasound is a technology used for submarines, accurate
measuring of forms through human tissue, etc.
• Technically it is called SONAR
• We will use a cheap sensor (either PING or SRF05) to measure
the distance to objects
• The basic functionality works like this:
– the sensor emits a burst (signal)
– it enters listening mode
– the burst bounces on any objects and the signal travels back
– the sensor estimates the time it takes for the signal to come
back
– it sends a pulse to the microprocessor which width is in relation
to the signals flying time and therefore to the distance to the
object
ULTRASOUND
The signals of the SRF05 sensor look like this:
ULTRASOUND
The signals of the PING sensor look like this:
The difference between the SRF05 and the PING))) sensor is in
the amount of pins they have:
– the SRF02 sensor has one input and one output pin, as well
as a mode pin that allows to use it as the PING sensor
– the PING sensor only has three pins: 5V, GND, signal and
therefore it requires to use a pin both as input and as output
ULTRASOUND
EXERCISE ►ULTRASOUND
ULTRASOUND: COVERAGE
• The concept of coverage of a sensor is used to determine
the physical range where it will gather data
• E.g. a remote control will only communicate if it is pointing
towards the TV, this means that the coverage area of the
remote is only in front of it.
• Each sensor has a characteristic (unique) coverage range
• The coverage area of ultrasound sensors is not very narrow.
They have an opening angle of 20-60 degrees depending on
the type. The ones we use in class have an angle of about
50 degrees
• This means that we have to be careful when mounting the
sensor. It has to be almost sticking out of the object we
mount it on
ULTRASOUND: COVERAGE
• The following diagram represents the typical
coverage of an Ultrasound sensor
• You can see how it reaches furthest in front of the
sensor while it goes less far on the sides
PICTURE © 2006 Devantech
A matrix is used in LED displays to control many
outputs (LED’s) with few pins
Showing something on the LED display is done by
using a special pattern
This pattern makes use of the LEDs polarity (Its
ability to only conduct electricity in one direction)
LED displays are expandable by linking them to each
other
Instructables has a good instruction on how to do this
MULTIPLE OUTPUTS
MULTIPLE OUTPUTS
Turning one row of LED’s HIGH and one column LOW
will light up one LED
Switch between the rows really fast and the human
eye will think all of them are on all the time.
MULTIPLE OUTPUTS
Source: http://letsmakerobots.com/node/23980 Source: http://tacticaldesign.mit.edu/page/2
Multiple outputs
• You can create an LED display and interact with
it using an accelerometer.
• This can be done with either The Dawn board
or a Matrix board
USEFUL RESOURCES
• Shops:
– Sparkfun
– Electrokit
– Elfa
– Adafruit
• Information:
– Arduino
– Arduino playground
– Led wizard
– Instructables
– Resistor Calculator
– Analog Circuits
– Educypedia
• Inspiration:
– Youtube
– Flickr
– Google
– Yanko design
– We make money not art
– FFFFF
– Graffiti Research Lab

Contenu connexe

Tendances

02 General Purpose Input - Output on the Arduino
02   General Purpose Input -  Output on the Arduino02   General Purpose Input -  Output on the Arduino
02 General Purpose Input - Output on the ArduinoWingston
 
Interface stepper motor through Arduino using LABVIEW.
Interface stepper motor through Arduino using LABVIEW.Interface stepper motor through Arduino using LABVIEW.
Interface stepper motor through Arduino using LABVIEW.Ankita Tiwari
 
03 analogue anrduino fundamentals
03   analogue anrduino fundamentals03   analogue anrduino fundamentals
03 analogue anrduino fundamentalsWingston
 
How to measure frequency and duty cycle using arduino
How to measure frequency and duty cycle using  arduinoHow to measure frequency and duty cycle using  arduino
How to measure frequency and duty cycle using arduinoSagar Srivastav
 
Arduino by yogesh t s'
Arduino by yogesh t s'Arduino by yogesh t s'
Arduino by yogesh t s'tsyogesh46
 
Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller IJECEIAES
 
Nrf24l01 tutorial 0
Nrf24l01 tutorial 0Nrf24l01 tutorial 0
Nrf24l01 tutorial 0Khanh Le
 
Arduino slides
Arduino slidesArduino slides
Arduino slidessdcharle
 
The can sat_book_2016-2017_versienov2016
The can sat_book_2016-2017_versienov2016The can sat_book_2016-2017_versienov2016
The can sat_book_2016-2017_versienov2016Ana Carneirinho
 
I2 c and mpu6050 basics
I2 c and mpu6050 basicsI2 c and mpu6050 basics
I2 c and mpu6050 basicsironstein1994
 
Arduino obstacle avoidance robot
Arduino obstacle avoidance robotArduino obstacle avoidance robot
Arduino obstacle avoidance robotSteven Radigan
 
Digital Tachometer using Aurdino
Digital Tachometer using AurdinoDigital Tachometer using Aurdino
Digital Tachometer using Aurdinoijtsrd
 
MPU6050 IMU with Arduino
MPU6050 IMU with ArduinoMPU6050 IMU with Arduino
MPU6050 IMU with Arduinoyeokm1
 
Power point presenttation seminar
Power point presenttation seminarPower point presenttation seminar
Power point presenttation seminar9766686371
 

Tendances (20)

02 General Purpose Input - Output on the Arduino
02   General Purpose Input -  Output on the Arduino02   General Purpose Input -  Output on the Arduino
02 General Purpose Input - Output on the Arduino
 
Wireless sensors
Wireless sensorsWireless sensors
Wireless sensors
 
Interface stepper motor through Arduino using LABVIEW.
Interface stepper motor through Arduino using LABVIEW.Interface stepper motor through Arduino using LABVIEW.
Interface stepper motor through Arduino using LABVIEW.
 
03 analogue anrduino fundamentals
03   analogue anrduino fundamentals03   analogue anrduino fundamentals
03 analogue anrduino fundamentals
 
How to measure frequency and duty cycle using arduino
How to measure frequency and duty cycle using  arduinoHow to measure frequency and duty cycle using  arduino
How to measure frequency and duty cycle using arduino
 
Arduino by yogesh t s'
Arduino by yogesh t s'Arduino by yogesh t s'
Arduino by yogesh t s'
 
Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller
 
Nrf24l01 tutorial 0
Nrf24l01 tutorial 0Nrf24l01 tutorial 0
Nrf24l01 tutorial 0
 
Gcc 4 15-16
Gcc 4 15-16Gcc 4 15-16
Gcc 4 15-16
 
Arduino slides
Arduino slidesArduino slides
Arduino slides
 
GCC 4-1-16
GCC 4-1-16GCC 4-1-16
GCC 4-1-16
 
GCC 3-18-16
GCC 3-18-16GCC 3-18-16
GCC 3-18-16
 
2 Digit Object counter
2 Digit Object counter2 Digit Object counter
2 Digit Object counter
 
The can sat_book_2016-2017_versienov2016
The can sat_book_2016-2017_versienov2016The can sat_book_2016-2017_versienov2016
The can sat_book_2016-2017_versienov2016
 
LDR Counter
LDR CounterLDR Counter
LDR Counter
 
I2 c and mpu6050 basics
I2 c and mpu6050 basicsI2 c and mpu6050 basics
I2 c and mpu6050 basics
 
Arduino obstacle avoidance robot
Arduino obstacle avoidance robotArduino obstacle avoidance robot
Arduino obstacle avoidance robot
 
Digital Tachometer using Aurdino
Digital Tachometer using AurdinoDigital Tachometer using Aurdino
Digital Tachometer using Aurdino
 
MPU6050 IMU with Arduino
MPU6050 IMU with ArduinoMPU6050 IMU with Arduino
MPU6050 IMU with Arduino
 
Power point presenttation seminar
Power point presenttation seminarPower point presenttation seminar
Power point presenttation seminar
 

En vedette

Physical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalPhysical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalTony Olsson.
 
David Cuartielles and Tony Olsson - Going Physical (K3 research seminar)
David Cuartielles and Tony Olsson - Going Physical (K3 research seminar)David Cuartielles and Tony Olsson - Going Physical (K3 research seminar)
David Cuartielles and Tony Olsson - Going Physical (K3 research seminar)K3Research
 
LINK - Discovery Communications
LINK - Discovery CommunicationsLINK - Discovery Communications
LINK - Discovery CommunicationsGabriela Galke
 
Dell summer internship
Dell summer internshipDell summer internship
Dell summer internshipUdit Agarwal
 
Матрица. КРС - система для автоматизации работы ферм и колхозов работающих с ...
Матрица. КРС - система для автоматизации работы ферм и колхозов работающих с ...Матрица. КРС - система для автоматизации работы ферм и колхозов работающих с ...
Матрица. КРС - система для автоматизации работы ферм и колхозов работающих с ...matrix24ru
 
TSOULOUFAS-FULL CV-en DEC2015
TSOULOUFAS-FULL CV-en DEC2015TSOULOUFAS-FULL CV-en DEC2015
TSOULOUFAS-FULL CV-en DEC2015THEMIS TSOULOUFAS
 
Aliñamos aceitunas
Aliñamos  aceitunasAliñamos  aceitunas
Aliñamos aceitunasmaryjose65
 
Amigos lectores
Amigos lectoresAmigos lectores
Amigos lectoresmaryjose65
 
Computacion 1 sesion 02 windows 7
Computacion 1 sesion 02  windows 7Computacion 1 sesion 02  windows 7
Computacion 1 sesion 02 windows 7Giomar Lázaro
 
Karen Riley Resume3 Project Coordinator
Karen Riley Resume3 Project CoordinatorKaren Riley Resume3 Project Coordinator
Karen Riley Resume3 Project CoordinatorKaren Riley
 
Aliñamos aceitunas
Aliñamos  aceitunasAliñamos  aceitunas
Aliñamos aceitunasmaryjose65
 
Datanomi koulutus alkaa syksyllä 2016
Datanomi koulutus alkaa syksyllä 2016Datanomi koulutus alkaa syksyllä 2016
Datanomi koulutus alkaa syksyllä 2016Heli Marjala
 
1С. Свиноводство - АВТОМАТИЗАЦИЯ ЗООТЕХНИЧЕСКОГО И ПЛЕМЕННОГО СВИНОВОДСТВА
1С. Свиноводство - АВТОМАТИЗАЦИЯ ЗООТЕХНИЧЕСКОГО И ПЛЕМЕННОГО СВИНОВОДСТВА1С. Свиноводство - АВТОМАТИЗАЦИЯ ЗООТЕХНИЧЕСКОГО И ПЛЕМЕННОГО СВИНОВОДСТВА
1С. Свиноводство - АВТОМАТИЗАЦИЯ ЗООТЕХНИЧЕСКОГО И ПЛЕМЕННОГО СВИНОВОДСТВАmatrix24ru
 
Creating an Integrated International Public Relations Campaign
Creating an Integrated International Public Relations CampaignCreating an Integrated International Public Relations Campaign
Creating an Integrated International Public Relations CampaignDavid Verbraska
 
WW eBrochure JLinderbaum
WW eBrochure JLinderbaumWW eBrochure JLinderbaum
WW eBrochure JLinderbaumJill Linderbaum
 
Week Day Vegetarian
Week Day Vegetarian Week Day Vegetarian
Week Day Vegetarian Megan Davis
 

En vedette (17)

Physical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalPhysical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digital
 
David Cuartielles and Tony Olsson - Going Physical (K3 research seminar)
David Cuartielles and Tony Olsson - Going Physical (K3 research seminar)David Cuartielles and Tony Olsson - Going Physical (K3 research seminar)
David Cuartielles and Tony Olsson - Going Physical (K3 research seminar)
 
LINK - Discovery Communications
LINK - Discovery CommunicationsLINK - Discovery Communications
LINK - Discovery Communications
 
Dell summer internship
Dell summer internshipDell summer internship
Dell summer internship
 
Матрица. КРС - система для автоматизации работы ферм и колхозов работающих с ...
Матрица. КРС - система для автоматизации работы ферм и колхозов работающих с ...Матрица. КРС - система для автоматизации работы ферм и колхозов работающих с ...
Матрица. КРС - система для автоматизации работы ферм и колхозов работающих с ...
 
TSOULOUFAS-FULL CV-en DEC2015
TSOULOUFAS-FULL CV-en DEC2015TSOULOUFAS-FULL CV-en DEC2015
TSOULOUFAS-FULL CV-en DEC2015
 
Aliñamos aceitunas
Aliñamos  aceitunasAliñamos  aceitunas
Aliñamos aceitunas
 
Amigos lectores
Amigos lectoresAmigos lectores
Amigos lectores
 
Computacion 1 sesion 02 windows 7
Computacion 1 sesion 02  windows 7Computacion 1 sesion 02  windows 7
Computacion 1 sesion 02 windows 7
 
Karen Riley Resume3 Project Coordinator
Karen Riley Resume3 Project CoordinatorKaren Riley Resume3 Project Coordinator
Karen Riley Resume3 Project Coordinator
 
Aliñamos aceitunas
Aliñamos  aceitunasAliñamos  aceitunas
Aliñamos aceitunas
 
Datanomi koulutus alkaa syksyllä 2016
Datanomi koulutus alkaa syksyllä 2016Datanomi koulutus alkaa syksyllä 2016
Datanomi koulutus alkaa syksyllä 2016
 
1С. Свиноводство - АВТОМАТИЗАЦИЯ ЗООТЕХНИЧЕСКОГО И ПЛЕМЕННОГО СВИНОВОДСТВА
1С. Свиноводство - АВТОМАТИЗАЦИЯ ЗООТЕХНИЧЕСКОГО И ПЛЕМЕННОГО СВИНОВОДСТВА1С. Свиноводство - АВТОМАТИЗАЦИЯ ЗООТЕХНИЧЕСКОГО И ПЛЕМЕННОГО СВИНОВОДСТВА
1С. Свиноводство - АВТОМАТИЗАЦИЯ ЗООТЕХНИЧЕСКОГО И ПЛЕМЕННОГО СВИНОВОДСТВА
 
Creating an Integrated International Public Relations Campaign
Creating an Integrated International Public Relations CampaignCreating an Integrated International Public Relations Campaign
Creating an Integrated International Public Relations Campaign
 
WW eBrochure JLinderbaum
WW eBrochure JLinderbaumWW eBrochure JLinderbaum
WW eBrochure JLinderbaum
 
Week Day Vegetarian
Week Day Vegetarian Week Day Vegetarian
Week Day Vegetarian
 
Data mining
Data miningData mining
Data mining
 

Similaire à Physical prototyping lab5-complex_sensors

Sensors-and-Actuators-working principle and types of sensors
Sensors-and-Actuators-working principle and types of sensorsSensors-and-Actuators-working principle and types of sensors
Sensors-and-Actuators-working principle and types of sensorsRameshBabu920476
 
Interfacing ultrasonic rangefinder with avr mc us
Interfacing ultrasonic rangefinder with avr mc usInterfacing ultrasonic rangefinder with avr mc us
Interfacing ultrasonic rangefinder with avr mc usKushagra Ganeriwal
 
1332256 634646447072252500
1332256 6346464470722525001332256 634646447072252500
1332256 634646447072252500kotesh252
 
Sensing & Actuation.pptx
Sensing & Actuation.pptxSensing & Actuation.pptx
Sensing & Actuation.pptxtaruian
 
Warehouse Managing Robot
Warehouse Managing  Robot Warehouse Managing  Robot
Warehouse Managing Robot Arjun R Krishna
 
Automatic Door Opener using PIR Sensor
Automatic Door Opener using PIR SensorAutomatic Door Opener using PIR Sensor
Automatic Door Opener using PIR SensorRAGHUVARMA09
 
SENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATIONSENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATIONsoma saikiran
 
Sensor and Actuators using Rasberry Pi controller
Sensor and Actuators using Rasberry Pi controllerSensor and Actuators using Rasberry Pi controller
Sensor and Actuators using Rasberry Pi controllerArsalanAthar
 
Robotics unit3 sensors
Robotics unit3 sensorsRobotics unit3 sensors
Robotics unit3 sensorsJanarthanan B
 
Arduino with brief description of sensorsppt.pptx
Arduino with brief description of sensorsppt.pptxArduino with brief description of sensorsppt.pptx
Arduino with brief description of sensorsppt.pptxBhuvanaN12
 
Robotics and Automation Using Arduino
Robotics and Automation Using ArduinoRobotics and Automation Using Arduino
Robotics and Automation Using ArduinoABHISHEKJAISWAL282
 
Implementation Of Real Time IoT Based Health monitoring system
Implementation Of Real Time IoT Based Health monitoring systemImplementation Of Real Time IoT Based Health monitoring system
Implementation Of Real Time IoT Based Health monitoring systemkchakrireddy
 
DSR_Unit-5_Sensors.pptx
DSR_Unit-5_Sensors.pptxDSR_Unit-5_Sensors.pptx
DSR_Unit-5_Sensors.pptxPuneetMathur39
 
dynamic characterstics of transducer.pptx
dynamic characterstics of transducer.pptxdynamic characterstics of transducer.pptx
dynamic characterstics of transducer.pptxanushrajb
 

Similaire à Physical prototyping lab5-complex_sensors (20)

Complex Sensors
Complex SensorsComplex Sensors
Complex Sensors
 
Sensors-and-Actuators-working principle and types of sensors
Sensors-and-Actuators-working principle and types of sensorsSensors-and-Actuators-working principle and types of sensors
Sensors-and-Actuators-working principle and types of sensors
 
Interfacing ultrasonic rangefinder with avr mc us
Interfacing ultrasonic rangefinder with avr mc usInterfacing ultrasonic rangefinder with avr mc us
Interfacing ultrasonic rangefinder with avr mc us
 
1332256 634646447072252500
1332256 6346464470722525001332256 634646447072252500
1332256 634646447072252500
 
Sensing & Actuation.pptx
Sensing & Actuation.pptxSensing & Actuation.pptx
Sensing & Actuation.pptx
 
Sensors.pptx
Sensors.pptxSensors.pptx
Sensors.pptx
 
Warehouse Managing Robot
Warehouse Managing  Robot Warehouse Managing  Robot
Warehouse Managing Robot
 
Automatic Door Opener using PIR Sensor
Automatic Door Opener using PIR SensorAutomatic Door Opener using PIR Sensor
Automatic Door Opener using PIR Sensor
 
SENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATIONSENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATION
 
Sensor and Actuators using Rasberry Pi controller
Sensor and Actuators using Rasberry Pi controllerSensor and Actuators using Rasberry Pi controller
Sensor and Actuators using Rasberry Pi controller
 
Robotics unit3 sensors
Robotics unit3 sensorsRobotics unit3 sensors
Robotics unit3 sensors
 
Arduino with brief description of sensorsppt.pptx
Arduino with brief description of sensorsppt.pptxArduino with brief description of sensorsppt.pptx
Arduino with brief description of sensorsppt.pptx
 
Robotic Hand
Robotic HandRobotic Hand
Robotic Hand
 
Robotics and Automation Using Arduino
Robotics and Automation Using ArduinoRobotics and Automation Using Arduino
Robotics and Automation Using Arduino
 
Sensor technology
Sensor technologySensor technology
Sensor technology
 
Emt 5
Emt 5Emt 5
Emt 5
 
Robotic Sensor
Robotic SensorRobotic Sensor
Robotic Sensor
 
Implementation Of Real Time IoT Based Health monitoring system
Implementation Of Real Time IoT Based Health monitoring systemImplementation Of Real Time IoT Based Health monitoring system
Implementation Of Real Time IoT Based Health monitoring system
 
DSR_Unit-5_Sensors.pptx
DSR_Unit-5_Sensors.pptxDSR_Unit-5_Sensors.pptx
DSR_Unit-5_Sensors.pptx
 
dynamic characterstics of transducer.pptx
dynamic characterstics of transducer.pptxdynamic characterstics of transducer.pptx
dynamic characterstics of transducer.pptx
 

Dernier

#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 

Dernier (20)

#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 

Physical prototyping lab5-complex_sensors

  • 1. PHYSICAL PROTOTYPING © 2011 K3 Creative Commons v3.0 SA-NC Lab 5: Complex Sensors With the Arduino prototyping board
  • 2. SENSOR • Device measuring information from the environment (the world) and translating the values into data understandable by our computers • We can classify the sensors into two different groups, according to how they send information back to the microprocessors: – ANALOG SENSORS: those that interface microprocessors through the analog inputs, offering signals varying between 0 and 5Volts – COMPLEX SENSORS: those that communicate using either digital pins with PWM, serial communication, I2C or SPI (FYI: the last two methods are special types of serial communication)
  • 3. ANALOG SENSORS • ANALOG SENSORS: within this group we distinguish two modalities: – RESISTIVE/CAPACITIVE SENSORS: those that contain a resistive/capacitive component that varies its value with light, temperature, etc. • LDR – Light Dependant Resistors • Potentiometer: angle/stretch sensor • NTC – Negative Temperature Coefficient (Temp. var. resistor) • Flex-sensors • Pressure sensors • Piezo Elements: can act as knock sensors – SIMULATED ANALOG SENSORS: complex sensors offering a simple interface to microcontrollers. • ACCELEROMETERS: to measure tilt, and movement • InfraRed: to measure distances from 1mm to 80cm • Humidity
  • 4. COMPLEX SENSORS Their main characteristic are that they communicate using either digital pins with PWM, serial communication, I2C or SPI (FYI: the last two methods are special types of serial communication) There are many sensors within this group of complex sensors: – ACCELEROMETERS: the classic is the MEMSIC2125 broadly used in prototypes, lately people are hacking Wii controllers – GPS: sends strings over a Serial connection – PING, SRF04/05: ultrasound devices measuring the distance to objects using sonar technology – Precise Temperature sensors
  • 5. SENSOR vs. ACTUATOR Keep in mind the following statement: EVERY ANALOG SENSOR CAN BE USED AS AN ACTUATOR AND VICEVERSA •For instance the piezo element that will also act as knock sensor •This can be applied at low level only (simple sensors), so this does NOT apply for complex sensors and simulated analog sensors •Actuators will also act as sensors, e.g. a DC motor is also a dynamo, what makes it into an analog sensor to detect movement
  • 6. A COUPLE OF TRICKS If, after connecting your components to an Arduino board... •you lack some digital inputs for your buttons, you can always use analog inputs and detect values over/under 512 instead of HIGH or LOW •you lack some analog inputs for an analog sensor that you only use with a threshold, you can put it into a digital input, knowing that you will only read HIGH or LOW and that the threshold will be at 2,5 Volts, to change it, you can use a potentiometer instead of a pull-up resistor for your sensor •you lack pins in general, to use as inputs, you can always use multiplexer circuits to add extra inputs. A recommended circuit to use is the 4051, which is broadly documented, or the tlc5940 which has some very nice libraries and is also well documented
  • 7. PRESENCE vs. DISTANCE • Many projects aim to determine whether there are people or not in a space • Other projects try to determine the distance of people to objects • Different types of sensors allow to measure both presence and distance • However we have to keep in mind that: – presence implies to distinguish animated from inanimate objects: THIS IS VERY COMPLICATED – distance implies multi-resolutive systems: THIS IS VERY COMPLICATED • As designers we just make prototypes and we look into some features from sensors that allow us to simulate the desired functionality ... BUT WE WON'T MAKE IT WORK FOR REAL!
  • 8. DISTANCE There are different types of sensors that act very well depending on the distance (range) we want to measure: – InfraRed is very precise under 1m, there are some sensors that concentrate in just 3cm!! – Ultrasound is very precise up to 10m, but it is a slow technology, we can only measure 5 samples/second with the kind of technology we use for prototyping (empirical values when using the sensor data in software programs) – LDRs can be used for rough measuring of touch (many use it in their projects to simulate touch sensors) or distances smaller than 5cm, but it has very low accuracy
  • 9. ACCELEROMETER • Accelerometers are sensors that can measure different things, among others they can measure the tilt of an object carrying the sensor, if the object moves, how quick it moves, etc. • Accelerometers are very noisy sensors, therefore their data is not very accurate, however with a correction it is possible to make them very useful for 3-D positioning • An example of a corrected sensor is the Wiimote, or basic Wii's game controller. It contains a 3-D accelerometer with an infrared camera that will measure the position of the screen correcting the possible errors made by the accelerometer • Even if noisy, accelerometers can be very useful for quick prototypes within interaction design
  • 10. ACCELEROMETER • The accelerometer we are using (MMA7260QT XYZ-axis accelerometer) can measure 3 dimensions of the movement that we call axis X, Y and Z • The information comes in three analog pins which can be measured with a microcontroller • The device operates at 2.2 V to 3.6 V, which can make interfacing difficult for microcontrollers operating at 5 V. • Pololu IMAGES © 2009 http://www.pololu.com
  • 11. ACCELEROMETER • Each of the three outputs is an analog voltage that ranges from 0 to Vcc. For 5 V applications, the outputs will range from 0 to 3.3 V • The 3.3 V output can be used as a reference for analog-to-digital converters to gain full resolution samples. • The way how this particular sensor works is through a moving bubble of gas inside the chip. Other types of accelerometers use other micro and nano techniques to measure the sensor's tilt and acceleration PICTURE © 2005 ParallaxInc
  • 12. Both jumpers on selects a range of +/-1.5g; GS1 jumper on and GS2 jumper off selects: +/-2g; GS1 jumper off and GS2 jumper on selects: +/-4g; both jumpers off selects a range of +/-6g. ACCELEROMETER
  • 13. EXERCISE ►ACCELEROMETER • Connect one of the Accelerometer sensors to your Arduino board • Test to see if it works • Modify the code so that it sends the following strings to the computer: “LEFT”, “RIGHT”, “UP”, “DOWN” ... basically you should transform your Arduino into a tilt-pad
  • 14. ULTRASOUND • Ultrasound is a technology used for submarines, accurate measuring of forms through human tissue, etc. • Technically it is called SONAR • We will use a cheap sensor (either PING or SRF05) to measure the distance to objects • The basic functionality works like this: – the sensor emits a burst (signal) – it enters listening mode – the burst bounces on any objects and the signal travels back – the sensor estimates the time it takes for the signal to come back – it sends a pulse to the microprocessor which width is in relation to the signals flying time and therefore to the distance to the object
  • 15. ULTRASOUND The signals of the SRF05 sensor look like this:
  • 16. ULTRASOUND The signals of the PING sensor look like this:
  • 17. The difference between the SRF05 and the PING))) sensor is in the amount of pins they have: – the SRF02 sensor has one input and one output pin, as well as a mode pin that allows to use it as the PING sensor – the PING sensor only has three pins: 5V, GND, signal and therefore it requires to use a pin both as input and as output ULTRASOUND
  • 19. ULTRASOUND: COVERAGE • The concept of coverage of a sensor is used to determine the physical range where it will gather data • E.g. a remote control will only communicate if it is pointing towards the TV, this means that the coverage area of the remote is only in front of it. • Each sensor has a characteristic (unique) coverage range • The coverage area of ultrasound sensors is not very narrow. They have an opening angle of 20-60 degrees depending on the type. The ones we use in class have an angle of about 50 degrees • This means that we have to be careful when mounting the sensor. It has to be almost sticking out of the object we mount it on
  • 20. ULTRASOUND: COVERAGE • The following diagram represents the typical coverage of an Ultrasound sensor • You can see how it reaches furthest in front of the sensor while it goes less far on the sides PICTURE © 2006 Devantech
  • 21. A matrix is used in LED displays to control many outputs (LED’s) with few pins Showing something on the LED display is done by using a special pattern This pattern makes use of the LEDs polarity (Its ability to only conduct electricity in one direction) LED displays are expandable by linking them to each other Instructables has a good instruction on how to do this MULTIPLE OUTPUTS
  • 23. Turning one row of LED’s HIGH and one column LOW will light up one LED Switch between the rows really fast and the human eye will think all of them are on all the time. MULTIPLE OUTPUTS Source: http://letsmakerobots.com/node/23980 Source: http://tacticaldesign.mit.edu/page/2
  • 24. Multiple outputs • You can create an LED display and interact with it using an accelerometer. • This can be done with either The Dawn board or a Matrix board
  • 25. USEFUL RESOURCES • Shops: – Sparkfun – Electrokit – Elfa – Adafruit • Information: – Arduino – Arduino playground – Led wizard – Instructables – Resistor Calculator – Analog Circuits – Educypedia • Inspiration: – Youtube – Flickr – Google – Yanko design – We make money not art – FFFFF – Graffiti Research Lab

Notes de l'éditeur

  1. Encourage people to interrupt you so you can help them immediately. Explain they do you a favor. It’s good to time the duration of the presentation.
  2. Analog sensors use a difference in resistance to generate values. Complex sensors use some form of communication protocol. With an ordinary analog sensor you read the values directly from the sensor. I2C is a one wire communication protocol also known as master and slave communication The master can communicate to all slave devices.
  3. An accelerometer actually transfers a digital signal into an analog sensor, the same with the infrared sensor.
  4. GPS returns two strings: longitude and latitude. NTC’s give resistive value. Temperature sensors give the temperature as value.
  5. Complex sensors only work as sensors. D/C motors can be used to generate movement. If you connect them the other way around they generate power. The dynamo on your bike is actually a dc motor. If you would apply power to it it would actually spin by itself.
  6. Tilt sensors are basically buttons which are activated by tilting them.
  7. Distance is to measure distance between two points. Multi-resolutive systems: making a grid of sensors to detect motion Faking is good.
  8. Ultrasound is good for up to 10 meters. Infra red is good for up two 1 meter. LDR’s are good for measuring shadow level.
  9. Accelerometers are used for 3D positioning. You can use them to track the speed and direction an object is moving in and to determine where an object is in space. But this last thing is difficult to do because you have to calibrate it’s starting position.
  10. Only use the 3.3 volt power pin to power the accelerometer otherwise you will fry it. You have to connect the SLEEP pin to 3.3 volt to HIGH (3,3volt) aswell otherwise it not work It’s called active HIGH, it’s used to save power.
  11. When it’s level the value is 350, when you tilt it the value becomes higher or lower. The accelerometer can only measure 180 degrees. If you turn it upside down it will go back to 350 again. You have to use a marker variable to track if it’s upside down or not when calculating the rotation.
  12. GS1 and GS2 have to do with higher or lower G forces.
  13. Change this slide to an InfraRed sensor slide Sharp IR sensor from electrokit. Find a tutorial. Write a similar explanation on how it works, how to hook it up. Tell them they have to recalculate the values from the sensor to centimeters. Introduce the ‘map’ function here, do the calculation the old school way with some flexible rulers. There is an explanation of the map function in lab 6 or another one.
  14. It sends out infrared light. When it sees something, it blinks at a super high speed. It measures the difference in time between sending the signal and seeing the dot. Change title to IR sensor Switch pictures.
  15. Change to closeup picture of IR sensor ports
  16. Change to: compare ultrasonic sensor to ir sensor in coverage area. Ultrasound would not be able to see a pole in front of a wall because the sound bounces of the round pole. IR sensor does work on the pole.
  17. The bad thing is, you can only have one LED on at a time. The good thing is that the Arduino can perform a few million instructions per second. This is why when you take a picture of a bus sign you will see half of the dots missing. It only works with diodes because the power can only run in one direction. LED’s are diodes. Don’t do the example, just explain the concept. If someone needs to do it, help them out side of class.
  18. Change to: assignment with LED’s and accellerometers. 4 LED’s which burn depending on the movement direction of the accelerometer.