Browsed by
Month: October 2014

First Raspberry Pi Project

First Raspberry Pi Project

Temperature Sensor: Just got my self a DS18D20 and I thought it will be good to build a controller to record temperature. I am using these two websites to help me start: http://raspberrywebserver.com/cgiscripting/rpi-temperature-logger/building-an-sqlite-temperature-logger.html https://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/temperature/ In the second website I understood the basic to connect a DS18B20 Then the code in python to get the readings: #!/usr/bin/env python import os import glob import time # load the kernel modules needed to handle the sensor os.system(‘modprobe w1-gpio’) os.system(‘modprobe w1-therm’) # find the path…

Read More Read More