måndag 2 mars 2015

Raspberry PI and the DS18B20 one-wire temprature sensor

So, Raspberry PIs are fun to tinker with and what is easy to start with?

Checking the current temperature, of course!
So I got myself a Dallas Semiconductor DS18B20 on a little board by Keyes.
This is a thing the sell as an add-on for the Arduino.
The good thing with it is that it comes with the required pull-up resistor on the board. It also has a little LED that flashes when it is communicating. So, pretty easy to wire up, three wires like this.

To get going you login to the raspberry and make sure you load some w1 modules.
The permanent way of doing it is to edit the /etc/modules file and add the lines
w1-gpio
w1-therm
at the end of the file. This will load the modules at the next start.

you could also give the commands at the command prompt:
> sudo modproble w1-gpio
> sudo modproble w1-therm

After this it should be possible to go to the /sys/bus/w1/devices folder and list the directory contents.
My was totally empty.
After a lot of googling I found this site that had the solution to the problem:
edit /boot/config.txt and add the lines

# 1-wire settings
dtoverlay=w1-gpio,gpiopin=4

to the end of the file.

RESTART and hey presto! It works!

The previous mentioned site also had a link to http://www.raspberrypi.org/forums/viewtopic.php?p=675658#p675658 where the reasoning about this is well described.

onsdag 19 december 2012

Blue Tooth

Kapten blåtand och hans fränder står på tå och borstar tänder.
Så tror jag att den gick, den gamla barnversen av Hellsing.

Jag har idag köpt ett blutooth tangentbord, som funkar riktigt bra med min nexus 7.
Tangetbordet är ju förvissa större än skärmen, och känns lite litet. Men jag tror att det
kanske får följa med om man ska åka bort en tid.
Kanske att det skulle duga till att programmera på tillochmed.

lördag 25 februari 2012

Lightpost sun set


Lightpost sun set, originally uploaded by AndersLindgren.

Lightpost sun set

torsdag 20 oktober 2011

Galleries / Street Art / Burning Light Painting | Fubiz™

Jag har sett dom här bilderna förrut men nu fick jag också veta hur man gör dom. Coolt. Måste testa nån gång.

Galleries / Street Art / Burning Light Painting | Fubiz™

måndag 29 augusti 2011

anderslindgren/installation-home-locator - GitHub

Hej,

long time, no see!

Nu är jag tillbaka på bloggen som jag glömt.

Jag har roat mig med att skaffa lite Git kunskaper och då även ett Git konto.

Där har jag även lagt upp ett litet projekt som förhoppningsvis underlättar för någon nån gång.
Det är ett litet lib som hjälper dig att ta reda på i vilken katalog som ditt projekt har
blivit installerat i. Går ju naturligtvis att lösa med några start script, men det blir ju så
tråkigt att underhålla både ett bash script för Unix folket och ett Bat script för Windows folket.
Mac har jag aldrig kört, så jag vet inte riktigt om dom har något tredje sätt att starta
Java appar på.

Go get it at:
anderslindgren/installation-home-locator - GitHub

tisdag 15 februari 2011

söndag 3 oktober 2010

Terracotta armen på ostasiatiska museet

 
Har varit på museum idag. Väldigt häftigt att se lergubbarna från kina som är 2000+ år gammla.

Helt klart värt att gå det att titta på
Posted by Picasa