概要
Gigazineでも紹介されている、2013年12月からずっと待ちに待ったAirPiが届いたので、作りました。
AirPiは、Raspberry PiのI/Oにあわせて作られた気象センサー(Weather Station)です。
Weather Stationがこの値段で手に入るのはかなりお得です。普通、3万とか4万とかしちゃうので。しかも、Raspberry Piでデータが取れるのでLinux上でプログラミング言語を使用してデータの加工が可能になります。
緑のLEDを手元にあった、青色LEDに交換してあります。
実装自体は1時間ぐらいで終わります。
実験
以下、実行例。まだ、v1.4のセンサーにソフトウェアが対応していないけど、こんな感じでデータを取得出来ます。
matsu@raspberrypi ~/AirPi $ sudo python airpi.py
[sudo]
password for matsu: Success: Loaded sensor plugin BMP085-temp Success: Loaded sensor plugin BMP085-pres Success: Loaded sensor plugin MCP3008 Success: Loaded sensor plugin DHT22 Success: Loaded sensor plugin LDR Success: Loaded sensor plugin MiCS-2710 Success: Loaded sensor plugin MiCS-5525 Success: Loaded sensor plugin Mic Success: Loaded output plugin Print Check wiring for the MiCS-2710 measurement, no voltage detected on ADC input 2 Check wiring for the ABM_713_RC measurement, no voltage detected on ADC input 4 Time: 2014-06-08 14:05:34.196998 Temperature: 31.0 C Pressure: 998.65 hPa Relative_Humidity: 56.9000015259 % Light_Level: 2819.54887218 Ohms Carbon_Monoxide: 102200000.0 Ohms Uploaded successfully Check wiring for the MiCS-2710 measurement, no voltage detected on ADC input 2 Check wiring for the MiCS-5525 measurement, no voltage detected on ADC input 3 Check wiring for the ABM_713_RC measurement, no voltage detected on ADC input 4 Time: 2014-06-08 14:05:39.197454 Temperature: 31.0 C Pressure: 998.68 hPa Relative_Humidity: 56.7999992371 % Light_Level: 6770.49180328 Ohms Carbon_Monoxide: None Ohms Uploaded successfully Check wiring for the MiCS-2710 measurement, no voltage detected on ADC input 2 Check wiring for the ABM_713_RC measurement, no voltage detected on ADC input 4 Time: 2014-06-08 14:05:44.196216 Temperature: 31.0 C Pressure: 998.71 hPa Relative_Humidity: 56.0 % Light_Level: 3621.83754993 Ohms Carbon_Monoxide: 102200000.0 Ohms Uploaded successfully Check wiring for the MiCS-2710 measurement, no voltage detected on ADC input 2 Check wiring for the ABM_713_RC measurement, no voltage detected on ADC input 4 Time: 2014-06-08 14:05:49.196660 Temperature: 31.1 C Pressure: 998.73 hPa Relative_Humidity: 56.0 % Light_Level: 3513.87054161 Ohms Carbon_Monoxide: 102200000.0 Ohms Uploaded successfully Check wiring for the MiCS-2710 measurement, no voltage detected on ADC input 2 Check wiring for the ABM_713_RC measurement, no voltage detected on ADC input 4 Time: 2014-06-08 14:05:54.196689 Temperature: 31.1 C Pressure: 998.68 hPa Relative_Humidity: 56.0 % Light_Level: 3149.10025707 Ohms Carbon_Monoxide: 102200000.0 Ohms Uploaded successfully Check wiring for the MiCS-2710 measurement, no voltage detected on ADC input 2 Check wiring for the ABM_713_RC measurement, no voltage detected on ADC input 4
雨が降っていたので気圧が低いですね。温度は、基板上での実装なので数度高く出ますね。Ohmsで出ているのは、自分でセンサの仕様見て変換しろって事でしょうか・・・
Comments