User Tools

Site Tools


Navigation Menu

Flight-Control

<
Previous mounth
03/19/2024
>
Next mounth
SMTWFTS
12
17
17
18
18
19
19
20212223
1324252627282930
1431010203040506
1507080910111213
1614151617181920









Hot Projects

SEEDStack

SEEDStack - Open 3D printable seed/sprouting systemDIY Food Hacking

UCSSPM

UCSSPM - Unified Clear-Sky Solar Prediction ModelOpen Solar Power

picoReflow

picoReflow - DIY PID Reflow Oven Controller based on RaspberryPiDIY Reflow Soldering

PiGI

PiGI - DIY Geiger Counter based on RaspberryPiRasPi Geiger Counter

DIY ARA-2000

Active Wideband Receiver Antenna for SDR - ARA-2000Wideband Antenna

DSpace

DSPace - Map everythingMap everything!

Mission-Tags

Spark-Core Hacking: Read MQ2 sensor data

The aquarius needs a galley in order to prepare and cook food but due to unforeseen personal circumstances I had to invest into this infrastructure way before than it was actually necessary - since the base trailer for the LM isn't available yet. So I've started to build a prototype kitchen with all that is needed for functional and fun food hacking. One of the primary energy carriers selected for cooking is gas. That can be either LPG (Propane/Butane) or Methane (delivered by utility gas lines).

Since gases can be tricky and risky energy carriers and their combustion process also creates potentially harmful by-products like Carbon-Monoxide (CO), it seemed prudent to have an autonomous environmental monitoring and gas leakage detection system, in order to minimize the risk of an undetected leak, which could lead to potentially harmful explosions or a high concentration of CO, which could also lead to unconsciousness and death. Monitoring the temperature and humidity might also help in preventing moisture buildup which often leads to fungi problems.

To cover everything, a whole team of sensors monitors specific environmental targets and their data will then be fused to form a basis for air quality analysis and threat management to either proactively start to vent air or send out warnings via mail/audio/visual.

spark-core-mq2-mq7-test-setup.jpg

Sensor Target Description Placement
MQ7 CO Carbon-monoxide (Combustion product) Top/Ceiling
MQ4 CH4 Methane (Natural Gas) Top/Ceiling
MQ2 C3H8 Propane (Camping Gas Mix) Bottom/Floor
MQ2 C4H10 Butane (Camping Gas Mix) Bottom/Floor
SHT71 Temp/Humidity Room/Air Temperature & Humidity Monitoring Top

As a platform for this project a spark-core was selected, since it's a low power device with wireless network connectivity, which has to be always on, to justify its existence. The Spark-Core docs claim 50mA typical current consumption but it clocked in here with 140mA (Tinker Firmware - avg(24h)). After setting up a local spark cloud and claiming the first core it was time to tinker with it.

The default firmware (called tinker) already get's you started quickly with no fuss: You can read and control all digital and analog in- and outputs. With just a quick GNUPlot/watch hack I could monitor what a MQ2 sensor detects over the period of one evening, without even having to hack on the firmware code itself (fast bootstrapping to get a first prototype/concept).

Hardware

  • Spark-Core + SC Breadboard
  • Sainsmart MQ2/MQ4/MQ7 el cheapo sensor boards
  • Sensirion SHT71 Temperature & Humidity Sensor
  • 6 Resistors (Voltage Divider Rx/Ry: 10k/33k
  • Adafruit 7-Segment LED Display with HT16K33 controller

Software

MQ2 Sensor data via spark-core over a period of one evening

Have a look at the local spark-cloud howto, to get an easy start with spark-cores without having to use the official. You can also repeat the following procedures using the official cloud server too, then you only need to install Spark-CLI and add your global cloud account settings to its configuration.

This is an example how to read ADC input A0 through the API, connected to the MQ2 sensor in this case:

#!/bin/bash

while :
do
    VAL=$(spark call 1234567890abcdef analogread "A0")
    TS=$(date +%s)
    echo "${TS} ${VAL}"
    echo "${TS} ${VAL}" >> mq2-test.txt
    sleep 1
done;

$ vi mq2-gnuplot.parm
set terminal pngcairo background "#383734" size 900,500 enhanced font 'Arimo,12'
set output "mq2-chart.png"

set title "Mapping MQ2 Sensor Data over one evening" textcolor ls 2 font 'Arial,16'
set grid
set lmargin 9 

set style line 1 lc rgb '#75890c' lt 1 lw 0.5 pt 7 ps 0.75 
set style line 2 lt 2 lc rgb "#d8d3c5" pt 6

set ylabel "ADC Read Value" tc ls 2 offset 1,0

set xtics textcolor linestyle 2 rotate
set ytics textcolor linestyle 1
set tics nomirror

set xdata time
set timefmt "%s"
set format x "%H:%M"

set border linewidth 1 linestyle 2  

unset key

plot "mq2-test.txt" using 1:2 with linespoints ls 1

quit
$ watch --interval=1 gnuplot mq2-gnuplot.parm

You can use Ristretto or any other image viewer to look at the resulting png. Ristretto automatically redraws the image, as soon as gnuplot finishes the next one.

Discussion

yanmaneee, 2023/11/05 09:18

http://www.kd14.org http://www.kd12.us.com http://www.supreme.com.co http://www.kobe-shoes.us.com http://www.supremesoutlet.us.com http://www.kd14shoes.com http://www.bape.us.org http://www.yeezy-shoes.us.org http://www.offwhite-shoes.us.org http://www.kd12.org http://www.paulgeorge.us.com http://www.goyardhandbag.us.org http://www.kd15shoes.com http://www.hermes-outlets.com http://www.kyrie7shoes.us http://www.goyardshandbag.com http://www.yeezyboost380.us.com http://www.jordan1shoes.us http://www.abathingapeofficial.com http://www.cheapjordan.us http://www.adidasyeezyboost350.us.com http://www.jordan11retro.us.com http://www.jordanssneakers.us.com http://www.supreme-newyork.us.org https://www.fearofgodoutlet.com http://www.off-whiteclothing.us.org http://www.golden-goosesoutlet.com http://www.supreme-clothing.us.org http://www.curry9.us http://www.shoes-yeezy.us http://www.jordan4.us.com http://www.travisscotjordan.com http://www.supremenewyork.us.org http://www.off-whiteshoes.us.com http://www.offwhitetshirt.us.com http://www.offwhitehoodies.us http://www.off--white.us.com http://www.kyrie-7.com http://www.goldengoosesonline.com http://www.supremenewyork.us.com http://www.jordanstoreonline.com https://www.supremeoutlet.us.com http://www.goldengooseonlinestore.com http://www.palmangels.us.com http://www.goyardsstoreonline.com http://www.kyrie-8.com http://www.golden-gooses.com http://www.adidasyeezyuk.com http://www.jordan12.us.com http://www.supremes-clothing.us.com http://www.travisscotjordan.us http://www.kd13shoes.us http://www.offwhitexjordan.com http://www.gaps.us.com http://www.palmangels-clothing.com http://www.hermesbirkins.com http://www.bathing-ape.us http://www.jordansforcheap.us.com http://www.jordanshoesstore.us.com https://www.air-jordanoutlet.com http://www.goldengoosesale.us.org http://www.palmangelsoutlet.us.com http://www.bape-shoes.com http://www.jordansshoes.us.org http://www.hermesbagsonline.com http://www.offwhitexnike.com http://www.goyardbags.us.com http://www.bape-clothing.us http://www.offwhite.us.org http://www.kd15.us https://www.palmangelsonline.com http://www.bapeshoodie.com https://www.hermesoutlets.com http://www.bapes.us.org http://www.paulgeorgeshoes.us.com http://www.off-whiteclothing.us.com http://www.kyrie5spongebob.us http://www.air-jordan.us.com http://www.bapesclothing.com http://www.bapehoodie.us http://www.fearofgodoutlet.us.com http://www.bape-clothing.com http://www.jordanxtravisscott.com http://www.goyardoutlets.us http://www.yeezy-350.us.com http://www.supremeclothingstore.com http://www.goyardshandbags.us.org https://www.hermesonlineshop.com http://www.bapesoutlet.com http://www.supremeclothings.com http://www.kyrie7.us http://www.bape-shirt.us.com http://www.jordan13.us.com http://www.goldengooseoutletus.com http://www.fearofgod-clothing.com http://www.supreme.us.org http://www.kyrie9.com https://www.offwhitesoutlet.com http://www.goldengoosedeluxebrand.us.com http://www.supreme-clothings.us.com http://www.goyardsoutlet.com http://www.off--whiteclothing.com http://www.gapyeezy.org http://www.shoesjordan.us.com http://www.goldengooseshoes.us.org http://www.russellwestbrookshoes.us http://www.michaeljordanshoes.us.com http://www.fearofgodhoodie.com http://www.kyrie6.org http://www.kyrie9.us http://www.bapesonline.com http://www.fearofgod.us.com http://www.chromeheartstoreonline.com http://www.yeezy350boost.us.com http://www.off-whiteoutlet.us.com http://www.cheapjordanshoes.us.com http://www.bape-hoodie.com http://www.jordan-retro.us.com http://www.offwhitesonline.com http://www.supremes.us.org http://www.curry9shoes.com https://www.goldengoosessale.com http://www.curry-8.us https://www.off-whiteonline.com http://www.goldengoose.us.org https://www.kyrieirving-shoes.us.com http://www.off--whiteoutlet.com http://www.hermesoutletsonline.com http://www.birkinbag.us.com http://www.stephcurry.us http://www.bapesta.us.com http://www.giannisantetokounmposhoes.us http://www.bape-stas.com http://www.yeezy-500.us.com http://www.offwhitexjordan1.com http://www.goldengooseofficial.com http://www.yeezy700.us.com http://www.curry6.net http://www.palmangels-hoodie.com http://www.kobe.us.com http://www.supremeclothing.us.org http://www.kd-shoes.us http://www.supremesonline.com http://www.off---whiteshoes.com http://www.supremeclothings.us.com http://www.kyrieirvingshoes.us http://www.goyard-outlet.com http://www.jordansshoes.us.com http://www.kevindurantshoes.us.com http://www.kyrie8shoes.com http://www.supremeshirt.us.com http://www.off-whitehoodie.com http://www.yeezysneakers.us.org http://www.jordans-shoes.us.org http://www.sbdunk.us http://www.yeezyboost.us http://www.fearofgodessential.com http://www.goldengoosesneakerssale.us.com http://www.ggdb.us.com http://www.kyrie8.us http://www.offwhiteoutlet.us.org http://www.jordantravisscott.com http://www.cheapjordanss.us.com http://www.goldengooseoutletstore.com http://www.goyardshandbag.us https://www.off-whites.us http://www.hermes-handbags.us.com http://www.goldengoosesstore.com http://www.hermesbelts.us.org

OKBet, 2023/12/13 02:24

There's no doubt i would fully rate it after i read what is the idea about this article. You did a nice job. 7 Proven Strategies para sa Online Casino

Call Girls in Betul, 2024/01/18 10:38

We completely understand the companionship needs of our clients and therefore, commit to provide the best service, exceeding their expectations. Betul City Escorts is one of the known cities in India and people keep visiting this place either for personal reasons or business purposes.

Call Girls in Goa, 2024/01/19 05:20

Your experience with us will be memorable for a lifetime and this is something we can say with full confidence. Visit our official site for more information! Escort services are popular worldwide and most people enjoy these services with great excitement in their life. Let’s talk about high-class services offered by Goa’s leading escort agency “Luxury Escorts Services”.

jili slot, 2024/01/26 07:42

Napakabisa ng artikulong ito para sa akin bilang manunulat; gayunpaman, nais ko ring mabigyang-pansin ang aking mga artikulo.

Kaabir Singh, 2024/01/31 09:16

To relieve you of all tension and pressure, the escort girl would be a perfect choice. Our South Delhi Escorts will be available for you in many different ways. Our agency can provide Russian escort in South Delhi girl hire, so you don’t have to worry.

online bingo, 2024/02/08 06:08

Excellent to the point article and news.. Well appreciated, My sites: online bingo

25fox, 2024/02/12 23:32

Buy a driver's license Hello, welcome to the world's largest online driver's license organization. We sell authentic and registered driving licenses and we have several driving schools with which we collaborate.

https://origineelrijbewijskopen.com/

https://origineelrijbewijskopen.com/2023/11/10/rijbewijs-kopen-telegram/

https://origineelrijbewijskopen.com/2023/10/24/rijbewijs-kopen-nederland/ https://origineelrijbewijskopen.com/2023/11/01/rijbewijs-kopen-belgie/

https://origineelrijbewijskopen.com/2023/11/07/rijbewijs-a-kopen/

https://origineelrijbewijskopen.com/2023/11/07/rijbewijs-kopen-prijs/

https://origineelrijbewijskopen.com/2023/11/07/rijbewijs-te-koop-belgie/

https://origineelrijbewijskopen.com/2023/11/10/belgisch-rijbewijs-kopen/

https://origineelrijbewijskopen.com/2023/11/10/rijbewijs-kopen-duitsland/ https://origineelrijbewijskopen.com/2023/11/10/rijbewijs-examens-kopen/

https://origineelrijbewijskopen.com/2023/11/10/rijbewijs-kopen-hongarije/

What a nice post! I'm so happy to read this. What you wrote was very helpful to me. Thank you. Actually, I run a site similar to yours. If you have time, could you visit my site? Please leave your comments after reading what I wrote. If you do so, I will actively reflect your opinion. I think it will be a great help to run my site. Have a good day.

https://cf-cc-qualitylab.com/

https://cf-cc-qualitylab.com/product/american-dollars-for-sale/

https://cf-cc-qualitylab.com/product/buy-counterfeit-aud-online/

https://cf-cc-qualitylab.com/product/buy-fake-british-pounds-online/

https://cf-cc-qualitylab.com/product/buy-fake-euro-banknotes-online/

https://cf-cc-qualitylab.com/product/buy-new-zealand-dollars-online/ https://cf-cc-qualitylab.com/product/buy-undetected-canadian-dollars/

It is incredibly average to see the best inconspicuous components presented in a basic and seeing way Thank you. Actually, I run a site similar to yours. If you have time, could you visit my site? Please leave your comments after reading what I wrote. If you do so, I will actively reflect your opinion. I think it will be a great help to run my site. Have a good day.

https://cf-cc-qualitylab.com/product/paypal-flip/

https://cf-cc-qualitylab.com/product/western-union-flip/

https://cf-cc-qualitylab.com/product/cash-app-flip/ https://cf-cc-qualitylab.com/product/western-union-flip-sale/

https://cf-cc-qualitylab.com/product/legit-paypal-flip/

https://cf-cc-qualitylab.com/product/legit-cash-app-flip/ https://cf-cc-qualitylab.com/product/buy-cloned-cards/

https://cf-cc-qualitylab.com/product/buy-credit-card-dumps-online/

https://cf-cc-qualitylab.com/product/cloned-credit-cards-for-sale/ https://cf-cc-qualitylab.com/product/legit-paypal-money-transfer/

https://cf-cc-qualitylab.com/product/legit-paypal-money-transfer/

https://cf-cc-qualitylab.com/product/western-union-money-flip/

https://cf-cc-qualitylab.com/product/hacked-cash-app/

Such an especially significant article. To a great degree charming to examine this article.I should need to thank you for the undertakings you had made for creating this astonishing article. https://cf-cc-qualitylab.com/product/automated-money-developer-machines/

https://cf-cc-qualitylab.com/product/high-quality-automatic-solution/ https://cf-cc-qualitylab.com/product/ssd-chemical-solution-packaging-materials/

https://cf-cc-qualitylab.com/product/vector-paste-ssd-solution/ https://cf-cc-qualitylab.com/product/humine-activation-powder/

https://cf-cc-qualitylab.com/product/99-99-pure-gallium-metal-alloy-for-mercury-replacement/ https://cf-cc-qualitylab.com/product/automated-money-developer-machines/

I am another client of this site so here I saw different articles and posts posted by this site,I inquisitive more enthusiasm for some of them trust you will give more data on this points in your next articles.

https://cf-cc-qualitylab.com/2024/02/01/western-union-uberweisen-umdrehen/ https://cf-cc-qualitylab.com/2024/02/01/kaufen-sie-western-union-umdrehen/

https://cf-cc-qualitylab.com/product/automated-money-developer-machines/

https://cf-cc-qualitylab.com/2024/02/01/koop-western-union-omzet/

https://cf-cc-qualitylab.com/2024/01/31/acquistare-lanciare-western-union/

https://cf-cc-qualitylab.com/2024/01/31/contanti-ribaltabili-della-western-union/

https://cf-cc-qualitylab.com/2024/01/30/volteo-de-dinero-de-western-union/

https://cf-cc-qualitylab.com/2024/01/30/comprar-voltear-de-western-union/

https://cf-cc-qualitylab.com/2024/01/28/transfert-dargent-western-union/

https://cf-cc-qualitylab.com/2024/01/28/retournement-de-western-union/

https://cf-cc-qualitylab.com/2024/01/27/online-kredietkaart-dumps-kopen/

https://cf-cc-qualitylab.com/2024/01/27/gekloonde-kredietkaarten-te-koop/

https://cf-cc-qualitylab.com/2024/01/27/gekloonde-kaarten-kopen/ https://cf-cc-qualitylab.com/2024/01/27/kaufen-sie-kreditkarten-dumps-online/

https://cf-cc-qualitylab.com/2024/01/27/geklonte-karten-dumps-zum-verkauf/

All things considered I read it yesterday yet I had a few musings about it and today I needed to peruse it again in light of the fact that it is extremely elegantly composed.

https://cf-cc-qualitylab.com/2024/01/27/kaufen-sie-geklonte-karten/

https://cf-cc-qualitylab.com/2024/01/27/acquistare-scarico-di-carte-di-credito-in-linea/ https://cf-cc-qualitylab.com/2024/01/27/carte-di-credito-clonate-in-vendita/ https://cf-cc-qualitylab.com/2024/01/27/carte-clonate-in-vendita/ https://cf-cc-qualitylab.com/2024/01/26/comprar-volcados-de-tarjetas-de-credito/

https://cf-cc-qualitylab.com/2024/01/26/tarjetas-de-credito-clonadas-a-la-venta/ https://cf-cc-qualitylab.com/2024/01/25/comprar-tarjetas-clonadas/ https://cf-cc-qualitylab.com/2024/01/25/acheter-des-dumps-de-cartes-de-credit-en-ligne/

https://cf-cc-qualitylab.com/2024/01/25/cartes-de-credit-clonees-a-vendre/

https://cf-cc-qualitylab.com/2024/01/25/cartes-clonees-a-vendre/ https://cf-cc-qualitylab.com/2024/01/23/requisitengeld-zum-verkauf/ https://cf-cc-qualitylab.com/2024/01/23/falschgeld-kaufen/

https://cf-cc-qualitylab.com/2024/01/23/gefalschter-euro-zum-verkauf/

https://cf-cc-qualitylab.com/2024/01/21/koop-valse-polymeerbiljetten/ https://cf-cc-qualitylab.com/2024/01/21/koop-valse-bankbiljetten/

 Actually, I run a site similar to yours. If you have time, could you visit my site? Please leave your comments after reading what I wrote. If you do so, I will actively reflect your opinion. I think it will be a great help to run my site. Have a good day.

https://cf-cc-qualitylab.com/2024/01/21/koop-valse-euro-bankbiljetten/

https://cf-cc-qualitylab.com/2024/01/21/comprar-dinero-falso-en-linea/

https://cf-cc-qualitylab.com/2024/01/21/comprar-dinero-falso/

https://cf-cc-qualitylab.com/2024/01/21/billetes-de-euro-a-la-venta/

https://cf-cc-qualitylab.com/2024/01/17/soldi-realistici-in-vendita/

https://cf-cc-qualitylab.com/2024/01/17/acquistare-denaro-falso/ https://cf-cc-qualitylab.com/2024/01/17/banconote-in-euro-in-vendita/ https://cf-cc-qualitylab.com/2024/01/17/argent-accessoire-a-vendre/ https://cf-cc-qualitylab.com/2024/01/17/acheter-des-billets-indetectables/ https://cf-cc-qualitylab.com/2024/01/17/faux-euros-a-vendre-en-ligne/

https://cf-cc-qualitylab.com/2024/01/09/buy-euros-online-cyprus/

https://cf-cc-qualitylab.com/2024/01/09/fake-polymer-notes-for-sale/

https://cf-cc-qualitylab.com/2024/01/09/counterfeit-money-for-sale/

https://cf-cc-qualitylab.com/2024/01/09/buy-fake-dollar-bills/

https://cf-cc-qualitylab.com/2024/01/09/buy-prop-money-canada/

https://cf-cc-qualitylab.com/2024/01/09/buy-fake-polymer-notes/

Akshat, 2024/02/16 11:29

Bold and beautiful women are serving as VIP Escorts in Mukherjee Nagar. Women are passionate, classy, elegant, and educated to serve the elite class of society. Get the royal treatment and pampering in a meeting with our classic VIP escorts in Mukherjee Nagar.

shivani, 2024/02/27 11:25

Many Delhi models actively use social media to share their journey, behind-the-scenes glimpses, and collaborations, thereby increasing their visibility and influence. [url=https://www.nehachopra.in/pune-call-girls.html]Pune Call Girls[/url] [url=https://www.nehachopra.in/surat-call-girls.html]Surat Call Girls[/url] [url=https://www.nehachopra.in/bhopal-call-girls.html]Bhopal Call Girls[/url] [url=https://www.nehachopra.in/goa-call-girls.html]Goa Call Girls[/url] [url=https://www.nehachopra.in/jaipur-call-girls.html]Jaipur Call Girls[/url] [url=https://www.nehachopra.in/manali-call-girls.html]Manali Call Girls[/url] [url=https://www.nehachopra.in/udaipur-call-girls.html]Udaipur Call Girls[/url] [url=https://www.nehachopra.in/gwalior-call-girls.html]Gwalior Call Girls[/url] [url=https://www.nehachopra.in/zirakpur-call-girls.html]Zirakpur Call Girls[/url] [url=https://www.nehachopra.in/shimla-call-girls.html]Shimla Call Girls[/url] [url=https://www.nehachopra.in/ahmedabad-call-girls.html]Ahmedabad Call Girls[/url] [url=https://www.nehachopra.in/aerocity-call-girls.html]Aerocity Call Girls[/url] [url=https://www.nehachopra.in/south-ex-call-girls.html]South Ex Call Girls[/url] [url=https://www.nehachopra.in/vikaspuri-call-girls.html]Vikaspuri Call Girls[/url] [url=https://www.nehachopra.in/chanakyapuri-call-girls.html]Chanakyapuri Call Girls[/url] [url=https://www.nehachopra.in/greater-kailash-call-girls.html]Greater Kailash Call Girls[/url] [url=https://www.nehachopra.in/karol-bagh-call-girls.html]Karol Bagh Call Girls[/url] [url=https://www.nehachopra.in/laxmi-nagar-call-girls.html]Laxmi Nagar Call Girls[/url] [url=https://www.nehachopra.in/munirka-call-girls.html]Munirka Call Girls[/url] [url=https://www.nehachopra.in/paharganj-call-girls.html]Paharganj Call Girls[/url] [url=https://www.nehachopra.in/south-delhi-call-girls.html]South Delhi Call Girls[/url]

Enter your comment. Wiki syntax is allowed:
W L Z Z P