[RaspPi] Really poor mans DS18B20 Temperature Sensor

As I had to quickly come up with two DS18B20 Sensors for the Raspberry Pi, I decided to built them "quick and dirty" without any breadboard. It is not the most beautiful nor the best way, but it works out quite well. With one exception: It seems like the sensor is too near to the Pi and picks up heat from it :/. Anyway, here are some photos:

2014-03-24 15.22.32
That is how it would look like later.

2014-03-24 15.26.00
Adding some female header to the base. We need 5 Pins for that. The first pin is going to be connected to 3,3V, the fourth to the GPIO Pin 4 and the fifth to ground. So just cut the pins 2 and 3 from that header.

2014-03-24 15.26.21
Add an resistor to pull the Data Pin high to 3,3V. You should use an 4,7k Ohm, but anything between 4,7k - 10k Ohm should work out. I used an 10k Ohm here.

2014-03-24 15.27.08
Solder the two pins of the resistor to Pin 1 and Pin 4. Do NOT short with Pin 5!

2014-03-24 15.27.48
Add some silver wire to the fifth Pin.

2014-03-24 15.31.24
Solder the DS18B20 to the Pins. Watch out for the curved side of the Sensor, it has to face upwards!

2014-03-25 07.49.59
I choose to secure the whole sensor against short circuits and stuff with hot glue. Looks ugly, but does the trick.

2014-03-25 07.50.28
Last thing is installing the sensor in the left upper corner of the GPIO Pins of your Raspberry Pi.

After booting you have to activate the One Wire protocol like this:
sudo modprobe w1-gpio
sudo modprobe w1-therm

Then you can read your sensor by using this command:
cat /sys/bus/w1/devices/28*/w1_slave

If you want to get your reading nicely formatted, you should install bc with
sudo apt-get install bc

and use this code:
echo "`cat /sys/bus/w1/devices/28*/w1_slave | grep t | cut -d= -f2`/1000" | bc -l | awk '{printf "%.2f \n", $1}'

[RaspPi] OpenWRT Trunk with latest Raspberry Pi 3.10.32+ #648 Kernel – as Image download

As a lot of people asked for the OpenWRT / Raspberry Pi Images, I decided to make a new version which replaces the old one from this post ([RaspPi] OpenWRT Trunk with latest Raspberry Pi 3.10.18+ #585 Kernel – as Image download).

That said, the rules haven't changed:
- It is the trunk version of OpenWRT, injected with the latest Raspberry Pi Kernel
- opkg list does contain the current stable package list for the OpenWRT RPi port of the latest stable release and will work out of the box (opkg update, opkg install..) Most packages like apache should work out of the box – but kernel moduls could/will probably fail. I won’t build an package mirror and won’t build packages because of limitied time. Sorry!
- Other than the normal behavior, the RPi does use DHCP to get its IP Adress. To connect for the first time, use nmap to find your RPi in your network. (Then connect via telnet, set an password with passwd and you’re good to use SSH finally!)
- The main partition size has been changed from 48 MB to 64 MB – giving you additional space

You can just download and use the (7zip-ed) image here: rpi_openwrt_2.7z [ 6.1 MB ]

I WON'T BUILD PACKAGES!
This is for the fact that I neither got enough time, nor CPU power at hand.
Sorry :(!