Intel Do-It-Yourself Challenge Sensors Nicolas Vailliet Intel Software 2014-02-01.

Slides:



Advertisements
Similar presentations
Intel Do-It-Yourself Challenge Networking
Advertisements

Intel Do-It-Yourself Challenge Lab 5: Controlling Galileo from a webpage Nicolas Vailliet
Win8 on Intel Programming Course Win8 for developers, in detail Cédric Andreolli Intel.
Win8 on Intel Programming Course Desktop : Introduction Cédric Andreolli Intel Software.
Win8 on Intel Programming Course Desktop : WPF Cédric Andreolli Intel Software
Intel Do-It-Yourself Challenge Arduino Motor Shield Nicolas Vailliet Intel Software.
Intel Do-It-Yourself Challenge node.js
The State Transition Diagram
Win8 on Intel Programming Course Desktop : Sensors Cédric Andreolli Intel Software
Intel Do-It-Yourself Challenge Intel Galileo and Edison Paul Guermonprez Intel Software.
Internet of Things with Intel Edison Getting started with your board Pierre Collet Intel.
Internet of Things with Intel Edison Web controller
Intel Do-It-Yourself Challenge Lab 3: A demo with LED and sensor
Internet of Things with Intel Edison GPIO on Edison
Win8 on Intel Programming Course Win8 and Intel Paul Guermonprez Intel Software
Why Should I Sketch? Chapter 1.2 in Sketching User Experiences: The Workbook.
Intel Do-It-Yourself Challenge Pololu USB Controller Nicolas Vailliet Intel Software.
Intel Do-It-Yourself Challenge : Let’s build an autonomous drone Paul Guermonprez Intel.
The Keyboard Study Lecture /slide deck produced by Saul Greenberg, University of Calgary, Canada Notice: some material in this deck is used from other.
1 Boe-Bot Parts BOE-BOT Lecture #1b DE - Digital Electronics.
Intel Do-It-Yourself Challenge Arduino sketches and full SD image Nicolas Vailliet Intel.
The Branching Storyboard Chapter 4.3 in Sketching the User Interface: The Workbook Image from:
Internet of Things with Intel Edison Presentation Paul Guermonprez Intel Software
Win8 on Intel Programming Course Desktop : Perceptual Computing Cédric Andreolli Intel.
ESE Einführung in Software Engineering X. CHAPTER Prof. O. Nierstrasz Wintersemester 2005 / 2006.
Internet of Things with Intel Edison Led sensor lab
“Power Supply” Controls Voltage Difference in Voltage is set Output Current is “as requested” by attached device.
Introduction.
Embedded Programming and Robotics Lesson 1 Basic Electricity and Electronics Transistor Basics Lesson 1 -- Basic Electricity1.
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
Sequential Storyboards Chapter 4.1 in Sketching the User Interface: The Workbook Image from:
Intel Do-It-Yourself Challenge Hello World with the Arduino IDE Nicolas Vailliet Intel.
Intel Do-It-Yourself Challenge Lab 1: Intel Galileo’s Arduino side Nicolas Vailliet
Embedded Programming and Robotics Introduction and Overview Presented by John Cole Senior Lecturer in Computer Science The University of Texas at Dallas,
CPSC 581 Human Computer Interaction II Interaction Design Lecture /slide deck produced by Saul Greenberg, University of Calgary, Canada Notice: some material.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
Intel Do-It-Yourself Challenge Lab 2: Intel Galileo’s Linux side Nicolas Vailliet Intel.
Collecting Images & Clippings Chapter 2.3 in Sketching User Experiences: The Workbook.
Week 10 Today 1.Homework presentations and critique. 2.Review digital and analog inputs. 3.DIY - jumpers, soldering etc.
Graphical Screen Design Part 1: Contrast, Repetition, Alignment, Proximity Lecture /slide deck produced by Saul Greenberg, University of Calgary, Canada.
Win8 on Intel Programming Course Modern UI : Sensors Cédric Andreolli Intel Software.
Win8 on Intel Programming Course Modern UI : Features Cédric Andreolli Intel Software.
Intel Do-It-Yourself Challenge OpenCV
Win8 on Intel Programming Course The challenge Paul Guermonprez Intel Software
Programming Concepts (Part B) ENGR 10 Introduction to Engineering 1 Hsu/Youssefi.
Win8 on Intel Programming Course Modern UI HelloWorld in HTML5/JS Cédric Andreolli Intel.
What is a sketch? Chapter 1.2 addendum Sketching User Experiences: The Workbook.
Internet of Things with Intel Edison Compiling and running Pierre Collet Intel Software.
BBBK Programming Notes Rudra Dutta CSC , Fall, 2013.
The Animated Sequence Chapter 5.1 in Sketching User Experiences: The Workbook.
Intel Do-It-Yourself Challenge Wi-Fi Nicolas Vailliet Intel Software
Internet of Things with Intel Edison CylonJS Pierre Collet Intel Software
Overview What is Arduino? What is it used for? How to get started Demonstration Questions are welcome at any time.
Physics 2225: Working With Electronic Equipment Purpose  Learn how to use basic electronic equipment: Digital multi meter Oscilloscope Function generator.
Sketching Vocabulary Chapter 3.4 in Sketching User Experiences: The Workbook Drawing objects, people, and their activities.
Win8 on Intel Programming Course Paul Guermonprez Intel Software
Design of Everyday Things Part 2: Useful Designs? Lecture /slide deck produced by Saul Greenberg, University of Calgary, Canada Images from:
PHY 235 Robotics Workshop Day 4 Robotic Behaviors, Light Sensing, Voltage Dividers, LCD-MOD.
The Narrative Storyboard Chapter 4.4 in Sketching User Experiences: The Workbook.
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.
Python Programming Module 4 Sensors and Loops Python Programming, 2/e1.
Build on a Breadboard Simulator
Sketching Vocabulary Chapter 3.4 in Sketching User Experiences: The Workbook Drawing objects, people, and their activities.
Agenda Video pre-presentations Digital sketches & photo traces
Methodology Overview 2 basics in user studies Lecture /slide deck produced by Saul Greenberg, University of Calgary, Canada Notice: some material in this.
Arduino Uno and sensors
Analog Input through POT
Visual Instructions.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
Arduino Uno circuit basics
Presentation transcript:

Intel Do-It-Yourself Challenge Sensors Nicolas Vailliet Intel Software

Interacting with sensors Digital and Analog sensors Lots of sensors are available. It’s important to know which ones are compatible with Galileo : do they need extra components to work ? Get information from sensors Galileo can communicate with digital pins and analog inputs with sensors.

We’ll use … An Intel Galileo board and network connectivity We assume you are familiar with communicating with the embedded OS and performing GPIO commands. Advance sensor set for Arduino (by DFRobot) A set of 30 sensors and accessories for Arduino. &product_id=725 &product_id=725 Jumper wires F/M and M/M and prototyping board To easily plug sensors and accessories on your Galileo.

Digital and Analog Sensors

Digital sensors A digital sensor interacts with the physical environment and returns us a binary information. For example, a digital push button is pressed, or not. It has two states, 0 or 1. Three wires can be connected : -A black one, for the ground. -A red one, for input voltage. -A green one, transmitting the information.

An analog sensor interacts with the physical environment and sends us a physical value, which is almost always a voltage. For example, an analog linear temperature sensor is a circuit involving a resistor. Its value changes linearly with the temperature. According to Ohm’s law, voltage also changes and this is the value we get and measure. As a digital sensor, common analog sensors have three pins: -As usual, black on ground and red on voltage input. -And a blue one, corresponding to the voltage returned by the sensor. Analog sensors

Which sensor to choose? Our first set of sensors : Advance sensor set for Arduino by DFRobot. Pros: -Variety of sensors. -Easy to use, just plug them. -Good enough to start or for prototyping. Cons: -Not exactly what you need for your project. -Not flexible and scalable

What else do I need? Jumper wires Female/Male and Male/Male are useful to connect various components to the Galileo. Prototyping board keeps things tidy ! This is the minimum for prototyping. See our slides on Advanced sensors and Project integration to go further.

A first circuit

Our goal is to get familiar with simple sensors, wires and the board connectivity. Important facts: -We’ll use the 5V pin as input voltage for all sensors and accessories in this course. -Next to the 5V pin is the ground pin we will connect to all our sensors too. -Don’t connect directly these two pins together ! It would damage your board.

A first circuit You’ll need: -Intel Galileo Board -A LED module -Ambient light sensor -Wires -A prototyping board Move your hand slowly over the light sensor. Intensity of LED light should vary. Connect these components, refering to the following figure:

A first circuit Explanations The light sensor forwards its input voltage to the LED control pin according to the ambient light intensity. A lower light intensity will reduce voltage sent to the LED. From the LED module point of view, current is sent to the LED according to the voltage value on the control pin. Try another sensor instead of the ambient light sensors, it will work the same !

A first circuit

Get Informations from Sensors

Get information from sensors Let’s implement this circuit: You’ll need: -Intel Galileo Board -The Joystick module -Wires -A prototyping board X axis signal is connected to analog input 1. Y axis signal is connected to analog input 2.

Get information from sensors Read information Create a bash file on your computer touch joystick_info.sh Copy/Paste the code from the next slide and save your file Send your file to the Galileo board scp joystick_info.sh Connect to your Intel Galileo embedded system with SSH ssh Change access right on your file to run it chmod 755 joystick_info.sh./joystick_info.sh Move the joystick and you’ll see voltage input values on your screen! The program will terminate if you push the joystick to the max x value. The same program can be used to test accelerometers and gyroscopes. The same program can be written in a C program instead of a bash script. The z axis on the joystick is a push button.

Get information from sensors #! /bin/bash # please refer to slides about GPIO for pin mapping echo -n "36" > /sys/class/gpio/export echo -n "23" > /sys/class/gpio/export echo -n "out" > /sys/class/gpio/gpio36/direction echo -n "out" > /sys/class/gpio/gpio23/direction echo -n "strong" > /sys/class/gpio/gpio36/drive echo -n "strong" > /sys/class/gpio/gpio23/drive echo -n "0" > /sys/class/gpio/gpio36/value echo -n "0" > /sys/class/gpio/gpio23/value xvolt=`cat /sys/bus/iio/devices/iio\:device0/in_voltage1_raw` yvolt=`cat /sys/bus/iio/devices/iio\:device0/in_voltage2_raw` #while xvolt value is lower than 4V while [ $xvolt -le 4000 ] do #Print values echo "xvolt" $xvolt echo "yvolt" $yvolt echo " " #Update values xvolt=`cat /sys/bus/iio/devices/iio\:device0/in_voltage1_raw` yvolt=`cat /sys/bus/iio/devices/iio\:device0/in_voltage2_raw` #Wait 500ms usleep done echo -n "36" > /sys/class/gpio/unexport echo -n "23" > /sys/class/gpio/unexport

Other Sensors

Here’s how they work Digital tilt sensor: put the sensor on a table, wait a minute, hit the table. Digital magnetic sensor: move a magnet close to the sensor. Flame sensor: switch on a lighter, at 20cm of the sensor. Analog linear temperature sensor: read the value with an analog input. Piezo disk vibration sensor: read the value with an analog input. Soil moisture sensor: soak extremities of the two bands in a glass of water. Analog gaz sensor: use the screw to adapt the sensibility. To test, approach the sensor to the top of a bottle of medical alcohol at 70%. Set the sensor sensibility to its max value. Relay module: voltage is between NO and COM when voltage is present on green wire. Otherwise, voltage is between NC and COM? Analog voltage divider: scale the input voltage from range 0-25V to an Arduino compatible range of value (0-5V).

License Creative Commons – By 3.0 You are free: to Share — to copy, distribute and transmit the work to Remix — to adapt the work to make commercial use of the work Under the following conditions: Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work). With the understanding that: Waiver — Any of the above conditions can be waived if you get permission from the copyright holder. Public Domain — Where the work or any of its elements is in the public domain under applicable law, that status is in no way affected by the license. Other Rights — In no way are any of the following rights affected by the license: – Your fair dealing or fair use rights, or other applicable copyright exceptions and limitations; – The author's moral rights; – Rights other persons may have either in the work itself or in how the work is used, such as publicity or privacy rights. Notice — For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a link to this web page.