Passive refresh

I’ve bought and installed that Heat Dissipation for Raspberry.

Active refresh

I’ve installed a little fan, which is powered in continue by 3.3V of Raspberry.

To report out the temperature level inside the case, I’ve two LEDS (one green and one red), which are set on or off, controlled by a BASH script below, with GPIO Pins, as a function of measured temperature.

The surveillance of the temperature is run every minutes by Cron :

* * * * * bash /path/to/script/LED_Temp.sh > /dev/null

Fritzing of the wiring :

A missing blog post image

#!/bin/bash

# Author: Horloge-Skynet
# Date: Begun 01/26/2014
# Objective: Light up colored LED as a function of temperature

temp=$(/opt/vc/bin/vcgencmd measure_temp);

/usr/local/bin/gpio mode 4 out # Red LED
/usr/local/bin/gpio mode 6 out # Green LED

if [${temp:5:2} -gt 30]; then

	/usr/local/bin/gpio write 6 0 # Shutdown green LED
	/usr/local/bin/gpio write 4 1 # Light up red LED

else

	/usr/local/bin/gpio write 4 0 # Shutdown red LED
	/usr/local/bin/gpio write 6 1 # Light up green LED

fi