Samuel's Website

Refresh System [Active + Passive]

Samuel Forestier — 29 January 2014
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 "Status" of Temperature inside the Case, I've two LEDS (one Green and one Red), which are On or Off, controlled by one BASH script below, with GPIO Pins, as a function of measured Temperature.

The surveillance of the Temperature is relaunch every minutes by Cron :
* * * * * bash /home/.../LED_Temp.sh > /dev/null
Fritzing of the wiring:
#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


/usr/local/bin/gpio write 4 0 #Shutdown Red LED
/usr/local/bin/gpio write 6 1 #Light up Green LED