2015년 2월 20일 금요일

Everyone likes Lego.

If we have no proper case, lego is always perfect choice.

I build house for my sensors.

Problem is the light, my baby turn off all light when she go to bed.  





2015년 2월 16일 월요일

Test DHT11 and SEN0018 raspberry

Actually I am not familiar with hardware, so I bought sensors which are already output the digital signal.

Follow pictures are DHT11 and SEN0018. The first one DHT11 can collect humanity and degree information. The second one SEN0018 can collect movement human body using ultra ray.

<Front of SEN0018>

<Back of SEN0018>

<Front of DHT11> 

<Back of DHT11>


I connect these sensor's signal line to GPIO G04 (DHT11) and G18(SEN0018).  DHT11 needs 3V input and SEN0017 needs 5V input. The connection is done like following pictures.

<Raspberry PI>

<Connection Setup>


Following is DHT11 test code which can easily getting from web site. For example "http://www.uugear.com/portfolio/dht11-humidity-temperature-sensor-module/".


And Following code for SEN0018 codes which is made by me. I cannot find any open source code for SEN0018. So I make the code.

Each of codes are works fine.

Data not good, skip
Humidity = 41.0 % Temperature = 25.0 *C (77.0 *F)
Data not good, skip
Data not good, skip
Humidity = 40.0 % Temperature = 25.0 *C (77.0 *F)
Humidity = 40.0 % Temperature = 25.0 *C (77.0 *F)
Data not good, skip
Data not good, skip
Data not good, skip
Data not good, skip
Humidity = 40.0 % Temperature = 25.0 *C (77.0 *F)
^Cpi@raspberrypi ~ $ 


pi@raspberrypi ~ $ sudo ./test.o 
Sensor start
state = 1
state = 0
state = 1


Next time I will merge these code and save the log data to db in raspberry PI.


2015년 2월 7일 토요일

2015 Project #1. Motion, Humanity, and Degree monitoring with Raspberry pi and Data analysis with baby cold symptom.

I have 2 years old baby. She take a cold very frequently.

So I decide to make the  monitoring tool in her sleeping room.

I will get motion, humid and degree information from raspberry pi and analysis it.

If I found some meaningful relationship, I will make a iPhone alert application for mother.

I will post

1. How to make a sensor logger with raspberry pi.
2. Logging policy and make an databases.
3. Analysis the logs.

Is it working?


RPI is not good handling DHT11

Hello? This is failure story about converting c code to python. There is GPIO controlling library on Python such as RPI, wiringPI. But...