sensor workshop

Upload: nicole-baker

Post on 03-Jun-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/12/2019 Sensor Workshop

    1/14

    Sunday, April 27, 2008Sensor Report - MQ3 Gas sensor

    1. MQ3 Gas SensorThis is an alcohol sensor from futurlec, named MQ-3, which detectsethanol in the air. It is one of the straightforward gas sensors so itworks almost the same way with other gas sensors. It costs$6.90.Typically, it is used as part of the breathalyzers or breathtesters for the detection of ethanol in the human bre ath.

    2. DatasheetHere is a datasheet, only 2 pages. It shows features, applications,specifications and configurations etc. It is a pretty simple datasheet.Since this datasheet was not prepared in English, the translation isnot very accurate.

    3. How it looks like :Basically, it has 6pins, the cover and the body. Even though it has 6pins, you can use only 4 of them. Two of them are for the heatingsystem, which I call H and the other 2 are for connecting power and

    Blog Archive

    2008 (8)

    April (2)

    Sensor Report - MQ3 Gas

    sensor

    Actions, Events and Filtering

    March (1)

    February (5)

    About Me

    E U N J U N G PA RK

    View my completeprofile

    Sensor Workshop

    Share 0 More Next Blog Create Blog Sign In

    http://2.bp.blogspot.com/_akeJ3-mIZOc/SBS3UHkvBbI/AAAAAAAAAiU/s_-rGoXBVv0/s1600-h/2.jpghttp://2.bp.blogspot.com/_akeJ3-mIZOc/SBS3UHkvBbI/AAAAAAAAAiU/s_-rGoXBVv0/s1600-h/2.jpghttp://2.bp.blogspot.com/_akeJ3-mIZOc/SBS3UHkvBbI/AAAAAAAAAiU/s_-rGoXBVv0/s1600-h/2.jpghttp://2.bp.blogspot.com/_akeJ3-mIZOc/SBS3UHkvBbI/AAAAAAAAAiU/s_-rGoXBVv0/s1600-h/2.jpghttp://2.bp.blogspot.com/_akeJ3-mIZOc/SBS3UHkvBbI/AAAAAAAAAiU/s_-rGoXBVv0/s1600-h/2.jpghttp://2.bp.blogspot.com/_akeJ3-mIZOc/SBS3UHkvBbI/AAAAAAAAAiU/s_-rGoXBVv0/s1600-h/2.jpghttp://2.bp.blogspot.com/_akeJ3-mIZOc/SBS3UHkvBbI/AAAAAAAAAiU/s_-rGoXBVv0/s1600-h/2.jpghttp://2.bp.blogspot.com/_akeJ3-mIZOc/SBS3UHkvBbI/AAAAAAAAAiU/s_-rGoXBVv0/s1600-h/2.jpghttp://2.bp.blogspot.com/_akeJ3-mIZOc/SBS3UHkvBbI/AAAAAAAAAiU/s_-rGoXBVv0/s1600-h/2.jpghttp://2.bp.blogspot.com/_akeJ3-mIZOc/SBS3UHkvBbI/AAAAAAAAAiU/s_-rGoXBVv0/s1600-h/2.jpghttp://www.blogger.com/http://www.blogger.com/http://www.blogger.com/home#createhttps://www.blogger.com/next-blog?navBar=true&blogID=6884882976005704090http://www.blogger.com/profile/05295335691197523673http://sensorworkshop.blogspot.kr/2008_02_01_archive.htmlhttp://void%280%29/http://sensorworkshop.blogspot.kr/2008_03_01_archive.htmlhttp://void%280%29/http://sensorworkshop.blogspot.kr/2008/04/actions-events-and-filtering.htmlhttp://sensorworkshop.blogspot.kr/2008/04/sensor-report-mq3-gas-sensor.htmlhttp://sensorworkshop.blogspot.kr/2008_04_01_archive.htmlhttp://void%280%29/http://sensorworkshop.blogspot.kr/search?updated-min=2008-01-01T00:00:00-08:00&updated-max=2009-01-01T00:00:00-08:00&max-results=8http://void%280%29/http://www.blogger.com/profile/05295335691197523673http://2.bp.blogspot.com/_akeJ3-mIZOc/SBS3UHkvBbI/AAAAAAAAAiU/s_-rGoXBVv0/s1600-h/2.jpghttp://4.bp.blogspot.com/_akeJ3-mIZOc/SBS3PnkvBaI/AAAAAAAAAiM/Sni1dvCnHzE/s1600-h/1.jpghttp://www.futurlec.com/Alcohol_Sensor.shtmlhttp://www.futurlec.com/Gas_Sensors.shtmlhttp://sensorworkshop.blogspot.kr/2008/04/sensor-report-mq3-gas-sensor.html
  • 8/12/2019 Sensor Workshop

    2/14

    ground, which I called A and B.

    If you look at the inside of the sensor, you will find the little tube.Basically, this tube is a heating system that is made of aluminumoxide and tin dioxide and inside of it there are heater coils, whichpractically produce the heat. And you can also find 6 pins. 2 pinsthat I called Pin H are connected to the heater coils and the otherones are connected to the tube.

    4. How it works :How does it work? The core system is the cube. As you can see inthis cross-sectional view, basically, it is an Alumina tube cover bySnO2, which is tin dioxide. And between them there is an Aurumelectrode, the black one. And also you can see how the wires areconnected. So, why do we need them? Basically, the alumina tubeand the coils are the heating system, the yellow, brown parts andthe coils in the picture.

    http://1.bp.blogspot.com/_akeJ3-mIZOc/SBS5c3kvBcI/AAAAAAAAAic/dNwk0SPCjaE/s1600-h/pins.jpg
  • 8/12/2019 Sensor Workshop

    3/14

    5. Working Process :If the coil is heated up,

    SnO2 ceramics will become the semi - conductor, so there are moremovable electrons, which means that it is ready to make morecurrent flow.

    Then, when the alcohol molecules in the air meet the electrode thatis between alumina and tin dioxide, ethanol burns into acetic acidthen more current is produced. So the more alcohol molecules thereare, the more current we will get. Because of this current change,we get the different values from the sensor.

    http://3.bp.blogspot.com/_akeJ3-mIZOc/SBS7mXkvBgI/AAAAAAAAAi8/dpB8hb8LJmI/s1600-h/explain2+copy.jpg
  • 8/12/2019 Sensor Workshop

    4/14

  • 8/12/2019 Sensor Workshop

    5/14

    7. Typical BehaviorIf you blow, it will react. Depending on the environment, it givesyou little bit of different values. But in my case, it gives me 200 asthe lowest value and 1000 as the highest value. And when it detectsthe alcohol in the air, actually it is pretty sensitive, the value getshigher very quickly but you have to wait for about 1 to 5 minutes toreset it. So that means getting values is fast but resetting is soslow. And the sensitivity of this sensor is affected by time span.

    When I used an old sensor, the range of value was smaller than thenew one's.

    8. Code Sample and DemoHere is the sample codes for the arduino and processing.ArduinoProcessing

    **Actually, I could not drink whenever I wanted to test it so I usedthe hand gel, which is really strong instead of drinking. You can justrub your hands the hand gel and blow it.

    http://3.bp.blogspot.com/_akeJ3-mIZOc/SBS-QXkvBmI/AAAAAAAAAjs/RvGvr6dIxk4/s1600-h/sensorPin.jpghttp://itp.nyu.edu/~ejp291/sensor_workshop/processing.htmlhttp://itp.nyu.edu/~ejp291/sensor_workshop/arduino.html
  • 8/12/2019 Sensor Workshop

    6/14

    I made a simple demo with this sensor. So when users blow theirbreath to the sensor and the sensor detects the alcohol then my face

    in the screen is getting red.

    codes for processing and arduino

    Also I did the events, actions and filtering assignment with thissensor. I think this one might be a better demo. Here is a video. Ifthe users blow their breath to the sensor, the foam of beer will goup and after a while it will go down itself. And you can see moredetails here.

    code for arduino

    Posted by Eun Jung Park at 10:22 AM13 comments:

    http://www.blogger.com/comment.g?blogID=6884882976005704090&postID=4048506474647995334http://sensorworkshop.blogspot.kr/2008/04/sensor-report-mq3-gas-sensor.htmlhttp://www.blogger.com/profile/05295335691197523673http://1.bp.blogspot.com/_akeJ3-mIZOc/SBTVc3kvBoI/AAAAAAAAAj8/hqIK7HmWNqo/s1600-h/hand.jpghttp://itp.nyu.edu/~ejp291/sensor_workshop/beer_servo.htmlhttp://sensorworkshop.blogspot.com/2008/04/actions-events-and-filtering.htmlhttp://itp.nyu.edu/~ejp291/sensor_workshop/drunken_arduino.htmlhttp://itp.nyu.edu/~ejp291/sensor_workshop/drunken.html
  • 8/12/2019 Sensor Workshop

    7/14

    Actions, Events and Filtering

    For this assignment, I made a new demo of the sensor that I used for my

    sensor report, which is the gas sensor. Basically, this sensor detects the

    alcohol in the air and is usually the part of the breathalysers. So I wanted to

    make a funny demo that is related to this property. There were many ideas that

    I liked but I chose the one that fit the actions, events and filtering assignment.

    Here is an Idea : Bear and Foam!

    I made a cup of beer and inside of the cup, there was a foam made of the foam

    board, which is attached to the servo. In the code I set the threshold to make

    the servo turn so if the sensor detects a certain amount of alcohol in the air, theservo will turn and the foam is going to go up. Usually, after the sensor detects

    alcohol, it takes about 30 seconds so if the sensing value is smaller than the

    threshold, the servo will go back to the initial position and the foam will go down

    as well.

    The orange one is the alcohol sensor.

    Left photo is when there is no alcohol in the air or the detected alcohol is

    smaller than threshold and right one is when the alcohol is detected.

    In these photos, you can see the servo under the cup and the foam board that

    is attached the servo.

    http://3.bp.blogspot.com/_akeJ3-mIZOc/SBSwUXkvBYI/AAAAAAAAAh8/IG1mp3TkUxA/s1600-h/2.jpghttp://4.bp.blogspot.com/_akeJ3-mIZOc/SBSwYnkvBZI/AAAAAAAAAiE/mpxQNceGorM/s1600-h/1.jpghttp://sensorworkshop.blogspot.kr/2008/04/actions-events-and-filtering.html
  • 8/12/2019 Sensor Workshop

    8/14

    Here is the video. When you blow your breath after drinking..

    http://2.bp.blogspot.com/_akeJ3-mIZOc/SBSwQHkvBXI/AAAAAAAAAh0/aS29dGl_Q2g/s1600-h/3.jpg
  • 8/12/2019 Sensor Workshop

    9/14

    Posted by Eun Jung Park at 8:46 AM7 comments:

    Sunday, March 23, 2008

    Data logging

    I worked on it with Seungran and Sunghun. We ordered a DOSon chip and a

    micro SDcard from sparkfun( DOSon CHIP). Here is a picture of it.

    And we c onnected it to an arduino. First, we tried to use a toggle s witch for a

    reset button but for some reasons it was not working so I made a circuit without

    it. And we also connected a pot to an analog pin 0 to get some value.

    http://1.bp.blogspot.com/_akeJ3-mIZOc/R-cyJlEdn8I/AAAAAAAAAg0/i6jLoSPn1H8/s1600-h/shem.jpghttp://3.bp.blogspot.com/_akeJ3-mIZOc/R-cr8FEdn7I/AAAAAAAAAgs/3pznasuQxrQ/s1600-h/dosonchip.jpghttp://www.sparkfun.com/commerce/product_info.php?products_id=8215http://sensorworkshop.blogspot.kr/2008/03/data-logging.htmlhttp://www.blogger.com/comment.g?blogID=6884882976005704090&postID=150466985312208951http://sensorworkshop.blogspot.kr/2008/04/actions-events-and-filtering.htmlhttp://www.blogger.com/profile/05295335691197523673
  • 8/12/2019 Sensor Workshop

    10/14

    We tried data logging with a sample code from the Sensor Wiki

    which was named 4dSystems xD Datalogger (Arduino-Processing).We got some data from the pot but it did not seem reliable becausevalues were so unstable and also we could not save any data in thecard. We were so confused, because we thought that as long as anarduino got some value (no matter if it was garbage value), it wassupposed to be saved in the card. However, data file was saved inthe computer.

    Here are the text files.Text 1Text 2

    We were trying to figure out what was wrong, so kept doing samethings over and over but the more we tried , the more confused wewere. Then Steve brought the new code that he got from Jeff. Hechanged the delay value in the code and finally we could makeArduino communicate to the chip then save some data to the chip.(Thanks Steve!)

    Here are the code for Arduino and the results.CodeResult 1 , Result 2

    Posted by Eun Jung Park at 9:17 PM1 comment:

    http://www.blogger.com/comment.g?blogID=6884882976005704090&postID=4333156372760293028http://sensorworkshop.blogspot.kr/2008/03/data-logging.htmlhttp://www.blogger.com/profile/05295335691197523673http://3.bp.blogspot.com/_akeJ3-mIZOc/R-crwFEdn5I/AAAAAAAAAgc/o1gnQpLGO54/s1600-h/whole+wiring.jpghttp://1.bp.blogspot.com/_akeJ3-mIZOc/R-cr2lEdn6I/AAAAAAAAAgk/i4mOuZlePU0/s1600-h/RX-TX.jpghttp://itp.nyu.edu/~sk2745/sensor/DATA5.TXThttp://itp.nyu.edu/~ejp291/sensor_workshop/result1.htmlhttp://itp.nyu.edu/~ejp291/sensor_workshop/code.htmlhttp://itp.nyu.edu/~ejp291/sensor_workshop/text2.htmlhttp://itp.nyu.edu/~ejp291/sensor_workshop/text1.htmlhttp://itp.nyu.edu/physcomp/sensors/Code/4dSystemsByte
  • 8/12/2019 Sensor Workshop

    11/14

    Sunday, February 24, 2008

    Sensors and Time

    I chose a photocell for visualizing a sensor because I have never used it. The

    circuit was simple but it was not easy to connect arduino and processing. So I

    started with a really simple code and made them talk to each other first then

    kept developing them based on the code from the sensor wiki. After I did it, the

    photocell was giving pretty stable values as the amount of light.

    Posted by Eun Jung Park at 5:30 PMNo comments:

    Sensors and Time_Arduino code

    int photocellPin = 0int value = 0

    void setup() {

    Serial.begin(9600)

    pinMode(photocellPin,INPUT)

    }

    void loop() {

    value = analogRead(0)/2

    http://sensorworkshop.blogspot.kr/2008/02/sensors-and-timearduino-code.htmlhttp://www.blogger.com/comment.g?blogID=6884882976005704090&postID=1436041198802121416http://sensorworkshop.blogspot.kr/2008/02/sensors-and-time.htmlhttp://www.blogger.com/profile/05295335691197523673http://3.bp.blogspot.com/_akeJ3-mIZOc/R8IQgb-FRCI/AAAAAAAAAfs/HH1f-GzDgQ0/s1600-h/photocell-arduino.jpghttp://1.bp.blogspot.com/_akeJ3-mIZOc/R8IQk7-FRDI/AAAAAAAAAf0/Hyz92G0TImY/s1600-h/photocell.jpghttp://sensorworkshop.blogspot.kr/2008/02/sensors-and-time.html
  • 8/12/2019 Sensor Workshop

    12/14

    Serial.print("photocell:")Serial.println(value)delay(10)

    }

    Posted by Eun Jung Park at 5:25 PMNo comments:

    Sansors and Time

    Version 1.

    Processing Code for version 1.

    Version 2.

    Processing Code for version 2.

    Version 3.

    http://itp.nyu.edu/~ejp291/sensor_workshop/sensor2.htmlhttp://itp.nyu.edu/~ejp291/sensor_workshop/sensor1.htmlhttp://sensorworkshop.blogspot.kr/2008/02/sansors-and-time.htmlhttp://www.blogger.com/comment.g?blogID=6884882976005704090&postID=7225505838411353883http://sensorworkshop.blogspot.kr/2008/02/sensors-and-timearduino-code.htmlhttp://www.blogger.com/profile/05295335691197523673
  • 8/12/2019 Sensor Workshop

    13/14

    Processing Code for version 3.

    Posted by Eun Jung Park at 3:58 PMNo comments:

    Sunday, February 10, 2008Sensor Walk

    Heating systemtemperature sensor or thermometer outside of windows of my room to

    control the heater. - On a really cold day, heater is stronger.

    Fire alarm - smoke sensor

    Elevatorweight sensor (scale?) when the elevator gets overweight, it makes

    warning sounds.

    Cf. Escalators at the subway station There are two ways escalator:

    going up and going down. So if you enter to opposite way, it would warn.And if the escalator is empty, it will stop.

    ATMtouch screen it might be a basic question, how does it work?

    Bookstorebarcode reader

    Auto flushed toilets in a public bathroom IR sensor

    Auto sinks in a public bathroom IR sensor

    Security sensor barsat the store magnetic sensor(?)

    Automatic doors at the grocery store IR sensor

    Barcode scanner- Barcode

    Conveyor beltIR sensor(?) - this belt looks like moving automatically. When there is

    some stuff at the edge of the belt, it stops and in the same situation but

    suff is far from the edge of the belt, it starts moving.

    Irontemperature sensor the little light on the top of the iron is turned on

    when it is heated

    enough.

    Nintendo DStouch screen / thermometer for the blowing option.

    Night light light sensor When the room is bright, it is dimmed butwhen the room is dark it is getting brighter.

    http://sensorworkshop.blogspot.kr/2008/02/sensor-walk.htmlhttp://www.blogger.com/comment.g?blogID=6884882976005704090&postID=6290668126531851817http://sensorworkshop.blogspot.kr/2008/02/sansors-and-time.htmlhttp://www.blogger.com/profile/05295335691197523673http://itp.nyu.edu/~ejp291/sensor_workshop/sensor3.html
  • 8/12/2019 Sensor Workshop

    14/14

    Older Posts

    (Can timers be sensors? If they can,)

    Auto turning off system of my camera - timer

    Sleeping function of my lap-top - timer

    Alarm clock - timerCf. Speaking of an alarm clock, one of my friends have funny alarm

    clock. When it is ringing, to stop it you should make a sound like a voice

    or clapping instead of hitting a button.

    People I sensed people, and they did also.I have been thinking about the humans as sensors. When I called my

    mother she notices my mood, whether I have good news or I am tired

    just hearing my voice and its tone. At this point I want to talk more about

    sensing emotions than the five senses such as sight, smell, hearing,

    touch and taste. Sensing emotions could be related to intuition which is

    called our sixth sense. We can detect peoples feeling easily even

    unintentionally and react following what we detect. Sometimes it is wrong

    but I grantee, over 90 percent, it is right. We have such a good sensor. I

    cant stop thinking about an emotion sensor. Is there a sensor that

    detects emotions except humans? If there is no sensor like it, how could

    I make it?

    Posted by Eun Jung Park at 9:06 PM3 comments:

    Home

    Subscribe to: Posts (Atom)

    http://sensorworkshop.blogspot.com/feeds/posts/defaulthttp://sensorworkshop.blogspot.kr/http://www.blogger.com/comment.g?blogID=6884882976005704090&postID=1456968811713482312http://sensorworkshop.blogspot.kr/2008/02/sensor-walk.htmlhttp://www.blogger.com/profile/05295335691197523673http://sensorworkshop.blogspot.kr/search?updated-max=2008-02-10T21:06:00-08:00&max-results=7