The sensor is actually fairly easy to wire - it just needs a variable resistor, connections to power and ground, and a connection to the arduino analog input. We used a potentiometer as our variable resistor, at the suggestion of the ITP sensor workshop page on gas sensors. The pot is connected to pin 2 of the sensors and the analog input pin 0 of arduino. We read values into Arduino with the following code:int gasSensor = 0; // select input pin for gasSensor
int val = 0; // variable to store the value coming from the sensor
void setup() {
Serial.begin(9600);
}
void loop() {
val = analogRead(gasSensor); // read the value from the sensor
Serial.println( val );
delay(500);
}
int val = 0; // variable to store the value coming from the sensor
void setup() {
Serial.begin(9600);
}
void loop() {
val = analogRead(gasSensor); // read the value from the sensor
Serial.println( val );
delay(500);
}
Since one of the gases the 2602 is supposed to sense is ammonia, we bought some Lemon Ammonia from our friendly neighborhood Kmart (only $1.30 for 64 FL OZ - what a bargain!) and stuck the sensor near the top of the bottle. The readings in Arduino skyrocketed from around 90-100 to 590-600. We have yet to translate that into something meaningful, such as parts per million. Also, the values vary pretty radically depending on the resistance of the potentiometer.Next on the to-do list is to hookup the 2442 sensor and get readings from it. Christian is working on getting the XBees to transmit the data from the sensors, and I'm going to try to power the Xbees and sensors from recharable batteries, which are in turn powered from solar panels.
8 comments:
I recently started with some expreiments with an Arduino Uno board.
I was planning to use it for measuring carbon monoxide.. and.. than came your post!
Seems like i'm on the right way...
Thanks!
budapest travel packages http://icej.eu/window/easter-window-thermometors coastal travel packages [url=http://icej.eu/siding/manufactures-stone-siding]manufactures stone siding[/url]
moon travel guides http://icej.eu/floor/how-to-build-your-own-floor-trusses airfloat travel trailers [url=http://icej.eu/kitchens/custom-mibile-feeding-kitchens-company]phoenix travel agencys[/url]
jim travel http://icej.eu/decoration/easter-string-lights-for-decoration bank of america government travel card account info [url=http://icej.eu/room/vanities-room]vanities room[/url]
holmdel hornets travel softball http://icej.eu/storage/sulfameth-storage crdentia travel nursing [url=http://icej.eu/bathrooms/painting-ideas-for-kids-bathrooms]travel expense software[/url]
convention travel subsidy guidelines http://icej.eu/bathroom/bathroom-wall-covering hp usb travel mouse [url=http://icej.eu/kitchen/crafts-to-make-kitchen-safe]crafts to make kitchen safe[/url]
travel agent liverpool uk http://icej.eu/bathrooms/men-stroking-themselves-in-public-bathrooms harlingen texas travel trilers for sale [url=http://icej.eu/bathrooms/utopia-bathrooms]travel between southampton and warmister[/url]
maui travel http://uhas.eu/search-mobiles/mobile-home-bill-of-sale-arkansas travel discount services htm [url=http://uhas.eu/mobile-phone/walmart-phone-jacks]walmart phone jacks[/url]
travel times distances kauai hawaii http://uhas.eu/search-mobiles bead travel pillow [url=http://uhas.eu/cell-phone/reverse-cell-phone-directory-free]air travel deals to jamaica[/url]
pilot travel bag http://uhas.eu/search-mobiles/sexy-mobile-wallpaper travel ideas with kids [url=http://uhas.eu/mobile-phones/find-a-name-by-the-phone-number]find a name by the phone number[/url]
american autostop travel plaza http://uhas.eu/mobile/boulder-city-mobile-homes canadian travel writer careers [url=http://uhas.eu/mobile-gsm/bpl-mobile-rates]budget senior travel packages caribbean[/url]
travel trailer roof replacemrnt http://uhas.eu/phones/how-to-get-your-phone-to-ring-louder last minute long distance travel deals from uk [url=http://uhas.eu/phone/phone-ogg-codecs]phone ogg codecs[/url]
elderly travel insurance uk http://uhas.eu/i-mobile/cookhill-mobile-disco small travel pouches [url=http://uhas.eu/phone/anthony-kelley-new-phone-listing]travel and africa[/url]
I love browsing your blog because you can constantly get us fresh and cool stuff, I feel that I ought to at least say a thank you for your hard work.
- Henry
This is such a great resource that you are providing and you give it away for free. I enjoy seeing websites that understand the value of providing a prime resource for free. I truly loved reading your post. Thanks!
I am impressed! Blog low-down posted here is absolutely my friend. I just after to guess keep up with comments and prominence work. IE browser bookmarks to your blog just now, I l be involved a arise finance to fathom my friends more in the future! The color of the layout is not lousy, it is easy on the eyes.
Useful blog website, keep me personally through searching it, I am seriously interested to find out another recommendation of it.
cheap travel long stay insurance us http://ejfu.info/adult/lulu-adult lulu adult [url=http://ejfu.info/orgasm/self-women-squirting-orgasm]self women squirting orgasm[/url]
http://ejfu.info/fetish/flexible-girls-fetish-pictures flexible girls fetish pictures fleetwood mac screensaver [url=http://ejfu.info/lesbian/rock-video-lesbian]rock video lesbian[/url]
[url=http://ejfu.info/porn/free-clothed-dress-porn-video]free clothed dress porn video[/url] bourne supremacy movie props http://ejfu.info/mature/ddd-mature-vids ddd mature vids
foreign office travel advice http://ejfu.info/lesbian/robin-givens-lesbian robin givens lesbian [url=http://ejfu.info/oral/oral-sex-and-gonorrhea]oral sex and gonorrhea[/url]
http://ejfu.info/lesbian/robin-givens-lesbian robin givens lesbian sprint bandits live audio webcast [url=http://ejfu.info/pornstar/streaming-video-of-delta-white-pornstar]streaming video of delta white pornstar[/url]
Post a Comment