AE EP#53 a DS18B20 based Temperature Sensor Module

Hello, its been a while 🙂 Fortunately the friendly people from icstation.com contacted me to have a look at this DS18B20 breakout board:

Use the code “claics” until the 20th Feb, 2014 to get a 10 % discount on your order!

Basically it is nothing more than that, a breakout board but it is very conveniet to have the filter-cap and pull-up resistor ready in place. The board has vias besides the DS18B20 which should allow it to be soldered to a plate. Also it comes with a handy hole to to screw it down. The package comes with a three-lead jumper wire and is childsplay to connect with arduino.

To get rolling I put this library in my “/usr/share/arduino/libraries/” (Ubuntu) found at playground.arduino.cc/Learning/OneWire. The lib already comes with a fitting example in its examples folder.
But for your copy & paste easy here a stripped-down version:

///based on http://playground.arduino.cc/Learning/OneWire

#include

OneWire ds(2); // initialize onewire to data/out connected on pin 2

int HighByte, LowByte, TReading, SignBit, Tc_100, Whole, Fract;
byte i;
byte present = 0;//is it there?
byte data[12];//temperature, max resolution
byte addr[8]; //the devices address

void setup(void) {
Serial.begin(9600); //initialize the serial

if ( !ds.search(addr)) {
Serial.print("No more addresses.\n");
ds.reset_search();
return;
}
Serial.print("R=");
for( i = 0; i < 8; i++) {
Serial.print(addr[i], HEX);//device found at
Serial.print(" ");
}

}

void loop(void) {

if ( OneWire::crc8( addr, 7) != addr[7]) {
Serial.print("CRC is not valid!\n");
return;
}

ds.reset();
ds.select(addr);
ds.write(0x44,1); // start conversion, with parasite power on at the end

delay(1000); // maybe 750ms is enough, maybe not
// we might do a ds.depower() here, but the reset will take care of it.

present = ds.reset();
ds.select(addr);
ds.write(0xBE); // Read Scratchpad

Serial.print("P=");
Serial.print(present,HEX);
Serial.print(" ");
for ( i = 0; i < 9; i++) { // we need 9 bytes
data[i] = ds.read();
Serial.print(data[i], HEX);
Serial.print(" ");
}
Serial.print(" CRC=");
Serial.print( OneWire::crc8( data, 8), HEX);
Serial.println();

LowByte = data[0];
HighByte = data[1];
TReading = (HighByte << 8) + LowByte;
SignBit = TReading & 0x8000; // test most sig bit
if (SignBit) // negative
{
TReading = (TReading ^ 0xffff) + 1; // 2's comp
}
Tc_100 = (6 * TReading) + TReading / 4; // multiply by (100 * 0.0625) or 6.25

Whole = Tc_100 / 100; // separate off the whole and fractional portions
Fract = Tc_100 % 100;

if (SignBit) // If its negative
{
Serial.print("-");
}
Serial.print(Whole);
Serial.print(".");
if (Fract < 10)
{
Serial.print("0");
}
Serial.print(Fract);

Serial.print("\n");

}

Just paste into the Arduino IDE and hit that upload button, if connected correctly, data should show up a second or so after you opened Tools/Serial Monitor. Thanks for watching 😀 and give them a shot!

Vienna High Altitude Balloon

I’ve been quiet for some time again becaus I became a member of the vieHAB Project. It was started about 4 years ago by Erwin (OE1FEA) but remained dorment for the most of this time. We met at the monthly Metafunk amateur radio meeting where I attended a course to get my ham radio license.
Basically I wanted to do such a project for a long time but never got around doing it. So I jumped the opportunity and became hardware guy. The whole project will be published as OSHW. For our first start vieHAB-1 we will use ready to use modules like an arduino and ublox gps on breakout boards with a backplane.
It is planned to have 2 cams, 2 temperature and preassure sensors, 2m and 70cm radio, GPS and SD-card on board for the first start. I will keep you posted on progress every now and then.

AE EP#47 Raspberry First Steps

Sooo, I finallly got around setting up my raspberry, nothing too special but maybe it helps some people.

The thing with the screen was rather easily resolved (if only I could have been able to see something :).

It involves pretty much tinkering and the trapezoid picture of the tube didn’t help.
In the end I added to the /boot/config.txt file to this:

overscan_left=18
overscan_left=10
overscan_left=-1
overscan_left=-25

The framebuffer_width/height are set back to normal.

There shall be booze!

And I had some more time on my hand to visit the legen-wait for it-dairy roböxotica. Where a lot of fine folks work on making Asimov’s vision come true.
So lets just start at the entrance:
The Cock’s Bar was right behind the door after you ascended to the second floor.

I only saw this later this evening, therefor not so many tech-pix, more the sheer coolness of the robots:

Bodysnatchers anyone?

The whole thing didn’t just looks as creepy as these pics:) I liked the machine (they had a very sophisticated set-up only the drink was a little too sweet and too strong for my taste but they made up by manually manually tweaking my drink. No! not what you mean the guy at the MASCHIENENKONSOLE (sorry folks, couldn’t keep names that night 😉 put some numbers in his laptop and there i got some extra orange juice!

Then my lady and me stumbled across the LoveBot 4000 where we got cranberry-vodka shots when we kissed before it. Awesome idea Folks!
Sorry folks, the only pic I got shows two friends of mine and I don’t show their image without consent.

Next up was the MELMACC, and I had at least 4 drinks made by it and I have to say, the night went blurry from there on.

Sheer awesomeness.

And not only does it make your drink it like above, no no no, it makes it anti-Bond style with an extra: The straw gets a sticker with the drinks name on it and if you ordered from facebook you’d get your username on it too!

…and it’s brains are running on some fpga and an eee-PC. Where could you go wrong? Some guy said that they were rocking the party for years with this incredible machine.

And finally the weirdest of all: Reverse Miracle by Veronika Krenn and Oliver Kellow.

They made the miracle of converting perfectly good wine to water possible. In a two-step process first the alcohol is evaporated chilled through a water-cooled pipe and collected in a glass container. When the evil spirits are gone, a little turntable turns and purified water leaves the pipe: Reverse miracle!

Tough I had a great time, I had to move on to a birthday party – and well lets just say I only had two beers there :)….

sk7cas mobile electronic lab — check it out!

sk7ca made up a great portable electronics lab (with /A LOT/ of arduino-stuff) in an old laptop case and a small road case. I am so thrilled about this, that I asked him if I could feature his build on my blog and here it is:

He found some really good use for these old computers that no-one seems to throw away but isn’t using it either. Note the VME-bus connectors used to interface the BB to the plugs – really nice.

In this case is all you would need to have some fun on the road – a ton of chips, a small MM and a bunch of wires!

Didn’t I promise a load of Arduino add-ons? Just a lot of bits of hardware that make prototyping fast and clean – just like you would want it on a portable lab.

Be sure to not only check out sk7cas video on this but also his youtube channel! There is a lot of stuff ranging from amiga music to water plasma in a jar….

More pics right here.

For me this is a definite /want/ – this old laptop on my shelf seems like it could use some modding …..:)

AE EP#20 Industrial Controller Teardown & Homebrew Scope Ideas

Hi, I just started a dream project: Building an oscilloscope from scratch. Originally I wanted to use a russian 13LO37I but it turend out to be too bulky so I went and scored a waaay smaller 3KP1 / DG 7-113 from ebay.
I’ll put up a high res Photo of the tubes weiring system at my website.

One of the first portable TV-sets: http://www.radiomuseum.org/r/pilot_candid_tv_tv37.html

The DG 7-113 / 3KP1’s wiring system:

The russians 13LO37I / 13ЛО4И:

I found the first plans at Jogis Röhrenbude: http://www.jogis-roehrenbude.de/Bastelschule/Miniszill/Miniszill.htm