Raspberry Pi 3

I got a Pi 3 for my birthday.
Installed OSMC and just started our new Media Center.
It works so fine and smooth.
Casing is with fan included.

picasing

But with the Pis GPIO, there is only 3.3V OUT and no 150 mA.
What to do, to let this fan run?
(And not constant on, yes, I could connect it to 5V adn GND, but I want the Pi running 24/7 and not the fan)
Well, I just transitored it:

schaltplan
(Pic I found on the net)

And here starts my trouble.
As you can see, there is a 6k Ohm resistor used.
Doesn’t work for me, my transistor is a N2222.
With the power of the internet, I calculated following values:
1,7k Ohm
0.5M Ohm
and 47 Ohm
Yes, 3 different values.
Started with 1k Ohm.
Not running.
220 Ohm, there you go.
So I settled with 470 Ohm, just because.
If anyone can explain, how to calculate it properly, I would be so glad!

Some soldering, and hacking it into the casing later, it is running!
And here is my dirty script:

#!/usr/bin/env python
import RPi.GPIO as GPIO 
import time
GPIO.setmode(GPIO.BCM) 
GPIO.setup(14, GPIO.OUT,initial=GPIO.LOW) 
def getTemp():
        f = open("/sys/class/thermal/thermal_zone0/temp", "r")
        temperature = f.read()
        cleantemp = temperature.rstrip()
        return int(cleantemp)

fanset = False
hightemp = 70000
lowtemp = 60000
try:
 while(True):
  curtemp = getTemp()
  if(curtemp>hightemp and not fanset):
    fanset = True
    GPIO.output(14,fanset)
  elif(curtemp < lowtemp and fanset):
    fanset = False
    GPIO.output(14,fanset)
  time.sleep(30)

finally:
 GPIO.cleanup()

and the real miracle..it works!
starting at hightemp = 70000 (70°C) and stopping, if below lowtemp = 60000 (60°C)

Veröffentlicht unter Initializing /dev/chaos | Hinterlasse einen Kommentar

Geschenke

T shirt und Pizza cutter :))))

image

Veröffentlicht unter Initializing /dev/chaos | Hinterlasse einen Kommentar

Vatertag

Been on the road with beer and my daughter.
It was quite the hike uphill to the Fernsehturm here in Stuttgart :))

image

Veröffentlicht unter Initializing /dev/chaos | Hinterlasse einen Kommentar

Ein Sommernachtstraum Overtüre

I just discovered Mendelssohn Bartholdy.
How could that have slipped my ears so far?
Just listen to that piece.
It is so perfect..

Veröffentlicht unter Initializing /dev/chaos | Hinterlasse einen Kommentar

Ingenieurporn

Wer schon immer mal wissen wollte, was der Wendelstein-x7 ist, weshalb er so fantastisch ist und was es sowieso und überhaupt damit auf sich hat..
Der sollte mal in die neuste Ausgabe Alternativlos, Folge36, reinhören!
🙂

Veröffentlicht unter Initializing /dev/chaos | Hinterlasse einen Kommentar

Independence Day: Resurgence

Veröffentlicht unter Initializing /dev/chaos | Hinterlasse einen Kommentar

Namenstag

As every year on 23. April
It is my names day, day of book and beer.
I got something special today:))

image

Veröffentlicht unter Initializing /dev/chaos | Hinterlasse einen Kommentar

Talk Salad and Scrambled Eggs

Talk Salad and Scrambled Eggs (Frasier Reconsidered w/ Matt Mira and Kevin Smith)

As a huge Frasier fan, I just discovered this podcast.
(You can find it on itunes or Feedburner)
Kevin Smith and Matt Mira talk about every episode of Frasier.
But wait, there is more.
20% is coverage of an episode.
The rest is talking on cinema and different related topics.
They both have a huge knowledge on TV and names and shit.
But didn’t know, what a Michelin star is.
Well, Matt knew a bit.
Wow, even without my French wife, I did know that
🙂

But if you like Frasier, you have to listen to those guys.

Currently I am at 010 and cannot stop laughing, they are hilarious.
And I am not even a big fan of Smith.
🙂

Veröffentlicht unter Initializing /dev/chaos | Hinterlasse einen Kommentar

Game of Thrones Season 6

Veröffentlicht unter Initializing /dev/chaos | Hinterlasse einen Kommentar

ROGUE ONE

Veröffentlicht unter Initializing /dev/chaos | Hinterlasse einen Kommentar