Raspberry Pi Experiment 13: Thermal sensor and more

Goals:

– to accomplish the anemometer assembling and to connect it to the sensors prepared earlier

– provide additional 5V DC power source for the times when development is done; this power source will also eliminate the need to unseal the box for batteries recharge; this power source is planned to be removed completely after the solar and wind power sources will provide sufficient recharge along with anemometer’s adaptive behavior for power consumption optimization.

– enable reading of temperature data from the additional sensor

–  live publishing of the temperature data

Related Experiments:

Components:

– Temperature sensor DS18B20: waterproof version (ebay)

4.7K Ohm resistor (ebay)

Software:

temperature_resolver class at 05_wind_speed_meter.py

Schematics:

Electrical_02_T

Testing Temperature sensor manually through One-Wire interface:
1) by means of Advanced configuration settings at ‘sudo raspi-config’ enable i2c and spi
Also possible through direct editing of /boot/config.txt (command ‘sudo nano  /boot/config.txt’)
dtparam=i2c_arm=on
dtparam=spi=on

2) Then add One Wire interface at /boot/config.txt (use command ‘sudo nano  /boot/config.txt’)
dtoverlay=w1-gpio-pullup, gpiopin=4
3) Initialize modprobe
sudo modprobe w1-gpio
sudo modprobe w1-therm

4) Find your thermometer device (should be 28-XXXXXXXX) as so:
ls -l /sys/bus/w1/devices

5) The data we will need to translate to Celsius/Fahrenheit may be seen as so:
cat /sys/bus/w1/devices/28-<your device id>/w1_slave

Pictures:

– long wires were attached to relevant RPi pins

IMG_20150320_205742

– then the wires were led outside through specially made breach in the box which was then sealed

IMG_20150320_210647 IMG_20150320_210732 IMG_20150320_211042 IMG_20150320_223654

– this how it looked before connection to the sensors

IMG_20150320_223911

– then all was interconnected and fastened on the windowsill

IMG_20150321_075854 IMG_20150321_075915

– this is the view from my improved  observation camera

hybrid01

References

DS18B20 Temperature Sensor With Raspberry Pi
Connect Multiple Temperature Sensors With Raspberry Pi
I2C, SPI, I2S, LIRC, PPS
DS18B20 and 30-Jan firmware
DS18B20DS18B20 Wiring
(Ger) DS18B20 Temperatursensoren an RasberryPi
Raspberry Pi – GPIO & Python (7/9) – Temperature sensor

One thought on “Raspberry Pi Experiment 13: Thermal sensor and more

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s