<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JulietMikeBravo &#187; wetenschap/science</title>
	<atom:link href="http://www.julietmikebravo.nl/index.php/category/wetenschapscience/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.julietmikebravo.nl</link>
	<description>keratoconus – electronica – amateur radio  - etc.</description>
	<lastBuildDate>Sun, 22 Jan 2012 20:43:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Kneiterharde audio-onzin</title>
		<link>http://www.julietmikebravo.nl/index.php/2012/01/22/kneiterharde-audio-onzin/</link>
		<comments>http://www.julietmikebravo.nl/index.php/2012/01/22/kneiterharde-audio-onzin/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 20:28:52 +0000</pubDate>
		<dc:creator>Johan</dc:creator>
				<category><![CDATA[Electronica]]></category>
		<category><![CDATA[skeptisch/sceptical]]></category>
		<category><![CDATA[vermaak/entertainment]]></category>
		<category><![CDATA[wetenschap/science]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[onzin]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[sceptisch]]></category>
		<category><![CDATA[vermaak]]></category>

		<guid isPermaLink="false">http://www.julietmikebravo.nl/?p=1002</guid>
		<description><![CDATA[&#160; Een vriend stuurde mij op een chatkanaal de volgende pagina toe: http://www.kempelektroniks.com/General/Tweaks.aspx Ik dacht eerst bij een Nederlandstalige parodie op een doorgeschoten hifispecialist te zijn gekomen, maar naar enig gescroll kwam ik erachter dat alles op deze site gemeend was. Genoeg andere Nederlandse sites met &#8220;speciale&#8221;, enorm dure kabels welke, ondanks keiharde tegenargumenten uit [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;">&nbsp;</p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/xtl/2120396550/in/photostream/"><img class="  aligncenter" src="http://farm3.staticflickr.com/2051/2120396550_4494160a72.jpg" alt="Don't cross the streams! by realblades, on Flickr" width="405" height="324" /></a></p>
<p>Een vriend stuurde mij op een chatkanaal de volgende pagina toe:</p>
<p><a href="http://www.kempelektroniks.com/General/Tweaks.aspx" target="_blank">http://www.kempelektroniks.com/General/Tweaks.aspx</a></p>
<p>Ik dacht eerst bij een Nederlandstalige parodie op een doorgeschoten hifispecialist te zijn gekomen, maar naar enig gescroll kwam ik erachter dat alles op deze site gemeend was. Genoeg andere Nederlandse sites met &#8220;speciale&#8221;, enorm dure kabels welke, ondanks <a href="http://www.breem.nl/" target="_blank">keiharde tegenargumenten</a> uit de natuurkunde een enorme geluidsverbetering zouden moeten brengen.</p>
<p>Ik heb altijd vermaak gehad aan de hilarische, pretentieuze claims op vele audiofiele websites en aan hoe men <a href="http://www.randi.org/site/index.php/jref-news/102-blake-withdrawls-from-pear-cable-challenge.html">terugkrabbelt</a> als er door sceptici een zgn. dubbelblinde test van de gepromote produkten wordt voorgesteld.De site van Kemp Elektroniks, echter, presenteert een aantal voor mij nieuwe audiofiele &#8220;uitvindingen&#8221; waarbij ik geestelijk heen en weer werd getrokken tussen schaterlachen en alle vertrouwen in de mensheid verliezen.</p>
<p><strong>Let op: Alleen verder lezen als je dit geestelijk aankan!<span id="more-1002"></span></strong></p>
<p>Hieronder een bloemlezing van een aantal produkten op de website:</p>
<p><img class="alignnone" src="http://www.kempelektroniks.com/getfile/10f79842-a903-45fd-aa79-7de3c4674a51/cd_slijper_kl-gif.aspx?width=250&amp;height=272" alt="" width="250" height="272" /></p>
<p><em>De <a href="http://www.audiodesksysteme.de/index.php?kat=1_3_1" target="_blank">Audiodesk CD Sound Improver</a> freest – onder  een hoek van 36 graden – een randje af van uw CD, DVD  of SACD. Het resultaat is  een aanzienlijke verbetering in de weergave  van uw muziek- en DVD-collectie. Na  behandeling zal uw muziek boeiender  en echter klinken</em>.</p>
<p>Het duurde niet lang en de eerste pseudowetenschappelijke claims komen langs:</p>
<p><em><strong>Empirisch</strong> is vastgesteld dat een  hoek van  36 graden klankmatig optimaal is.</em></p>
<p><em>Echter in de praktijk is gebleken uit <strong>empirische metingen</strong> dat deze  verontreinigd zijn met ferro (magnetische) materialen zoals ijzer,  nikkel of kobalt waardoor zij de laserstraal kunnen afbuigen.</em></p>
<p>Empirisch? Ik geloof er geen snars van. Het zou me niks verbazen als het genoemde apparaat de onbalans in een CD juist verergert. Waarom zouden fabriekslijnen na decennia CD&#8217;s te hebben geperst nog met een dergelijk probleem zitten? De uitgebreide foutcorrectiemethodes in CD&#8217;s DVD&#8217;s, BD&#8217;s zorgen er sowieso al voor dat fouten door onbalansen en krassen worden geminimaliseerd. Sporen van ferrometalen welke laserlicht afbuigen? Serieus?</p>
<p>Voor optische media heeft Kemp een heel assortiment producten en tips. Men spreekt over het polijsten (niet eens zo&#8217;n gek idee) demagnetiseren (natuurkundig absoluut niet van toepassing op optische media), het elemineren van Argon van het produktieproces en als klapstuk het <strong>invriezen</strong> van CD&#8217;s!</p>
<p>De eigenaar van Kemp Elektroniks zegt in een <a href="http://www.hifi.nl/artikel/2297/Hi-Visit-Kemp-Electronics-Hi-Visit-Kemp-Electronics.html" target="_blank">interview</a> op Hifi.nl het volgende:</p>
<p><em>Momenteel is er incidenteel nog wat discussie op fora die veelal worden  bevolkt door mensen die mijn producten helemaal niet hebben geprobeerd  en die soms niet eens over een goede installatie beschikken. Mijn echte  klanten zijn over het algemeen zeer tevreden; ik heb zeker niet te  klagen over belangstelling en waardering.</em></p>
<p>Juist,.we moeten dus eerst stervensdure spullen aanschaffen en over een &#8220;goede installatie&#8221; beschikken alvorens we een oordeel over de produkten van Kemp Elektroniks mogen vellen. Natuurlijk zijn de klanten tevreden, waarom zouden ze twijfels hebben in een aanschaf welke eigenlijk uit een <strong>geloofsovertuiging</strong> is gedaan?<br />
<strong>Nergens</strong> op de site van Kemp Elektroniks worden claims onderbouwd, er wordt puur gegrossierd in aannames, tot <a href="http://www.kempelektroniks.nl/#/234" target="_blank">absurditeiten</a> als het toevoegen van Schumann frequenties aan netspanning toe!</p>
<p>Ik heb een mooie naam in gedachte voor dit alles: <strong>audiofiele homeopathie</strong>. Net zoals homeopathie werkt het niet, wordt er geen noemenswaardige schade aangericht en wordt er uiteindelijk alleen geld van goedgelovige mensen gescheiden.</p>
<p>Goede audio hoeft niet duur te zijn. Een goede versterker, degelijke speakers, voldoende dikke kabels er naar toe en een degelijke verbindingskabel naar je audiobron is alles wat je nodig hebt. Er zijn grotere gevaren voor audio dan goedkope spullen, zoals bijvoorbeeld <a href="http://www.julietmikebravo.nl/index.php/2009/08/27/metallica-zuigt-nog-steeds/" target="_blank">hedendaagse producers</a> welke mastering zien als een proces waarbij de naald continu bij de 0 dB moet blijf hangen.</p>
<p>Ik link als laatste nog voor de tweede keer in dit artikel de website welke al jaren de vloer aanveegt met audio onzin, het onovertroffen <a href="http://www.breem.nl/" target="_blank">breem.nl </a>.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.julietmikebravo.nl/index.php/2012/01/22/kneiterharde-audio-onzin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some tech frustrations</title>
		<link>http://www.julietmikebravo.nl/index.php/2012/01/14/some-tech-frustrations/</link>
		<comments>http://www.julietmikebravo.nl/index.php/2012/01/14/some-tech-frustrations/#comments</comments>
		<pubDate>Sat, 14 Jan 2012 14:42:47 +0000</pubDate>
		<dc:creator>Johan</dc:creator>
				<category><![CDATA[Electronica]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[wetenschap/science]]></category>
		<category><![CDATA[zendamateur/ham radio]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[radioactivity]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[usenet]]></category>
		<category><![CDATA[yahoo groups]]></category>

		<guid isPermaLink="false">http://www.julietmikebravo.nl/?p=987</guid>
		<description><![CDATA[Just some venting, Why on earth is every interesting technical discussion forum on Yahoo Groups? I absolutely loathe its design. When requesting the main forum it presents you with unthreaded, ungrouped messages by date. To group messages by thread you have to click a link, and even then you have to click each message separately [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.julietmikebravo.nl/static/images/soldeerbouthand.jpg"><img class="aligncenter" src="http://www.julietmikebravo.nl/static/images/soldeerbouthand.jpg" alt="" width="450" height="336" /></a></p>
<p>Just some venting,</p>
<p>Why on earth is every interesting technical discussion forum on Yahoo Groups? I absolutely loathe its design. When requesting the main forum it presents you with unthreaded, ungrouped messages by date. To group messages by thread you have to click a link, and even then you have to click each message separately just to view it. It&#8217;s 2012 damnit, stupid threaded message boards should be a thing of the past!<span id="more-987"></span></p>
<p>It absolutely puzzles me why <a href="http://tech.groups.yahoo.com/group/CDV700CLUB/">certain</a> <a href="http://tech.groups.yahoo.com/group/GeigerCounterEnthusiasts/">technical</a> <a href="http://groups.yahoo.com/group/FRG-7/">stuff</a> <a href="http://uk.groups.yahoo.com/group/FUNcube/">ends</a> up on Yahoo Groups. Especially hamradio and geiger counter stuff seems to end up on Yahoo Groups by default. Maybe people setting up these groups favor the usenet style interface because they are somewhat older than me and continue to use the annoying, threaded usenet-style interface because that is what they initially came in contact with when first using the net. Don&#8217;t get me started on search results&#8230;</p>
<p>(BTW, I found a <a href="http://radioactivity.forumcommunity.net/">modern message board </a>focused on geiger counters and all kinds of radiation detection stuff, guess what, it&#8217;s only in Italian!)</p>
<p>Another annoyance of me lately has been expensive USB to TTL serial adapters. Most are based on the well known FTDI chip which is used on Arduino boards. Simple adapters using this chip have prices ranging in the €/$10-25 range, just for a simple device presenting a serial port to the host operating system and outputting TTL levels.<br />
I guess the CEO of FTDI gets a nice bonus each year, selling loads of these chips for $3 when they likely cost pennies to make.</p>
<p>I&#8217;m still looking into a decent alternative, €15 TTL adapters suck!</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.julietmikebravo.nl/index.php/2012/01/14/some-tech-frustrations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nieuwe Triops / New Triops</title>
		<link>http://www.julietmikebravo.nl/index.php/2011/11/26/nieuwe-triops-new-triops/</link>
		<comments>http://www.julietmikebravo.nl/index.php/2011/11/26/nieuwe-triops-new-triops/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 16:49:06 +0000</pubDate>
		<dc:creator>Johan</dc:creator>
				<category><![CDATA[biologie/biology]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[wetenschap/science]]></category>
		<category><![CDATA[aquarium]]></category>
		<category><![CDATA[triops]]></category>

		<guid isPermaLink="false">http://www.julietmikebravo.nl/?p=962</guid>
		<description><![CDATA[English summary below Via Ebay wat eitjes van Triops cancriformis besteld, de europese ondersoort. Ik heb eerder deze soort proberen te kweken maar de eitjes kwamen niet uit. Nu dus een nieuwe poging en er is leven in mijn kweekbakje. Eitjes lijken wat langzamer uit te komen en ook de ontwikkeling van de larven verloopt [...]]]></description>
			<content:encoded><![CDATA[<p><object style="height: 390px; width: 640px;"><param name="movie" value="http://www.youtube.com/v/f8FABetLTAE?version=3&amp;feature=player_detailpage" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><embed type="application/x-shockwave-flash" width="400" height="360" src="http://www.youtube.com/v/f8FABetLTAE?version=3&amp;feature=player_detailpage" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
<p><strong>English summary below</strong></p>
<p>Via Ebay wat eitjes van <em>Triops cancriformis</em> besteld, de europese ondersoort. Ik heb eerder deze soort proberen te kweken maar de eitjes kwamen niet uit. Nu dus een nieuwe poging en er is leven in mijn kweekbakje. <span id="more-962"></span> Eitjes lijken wat langzamer uit te komen en ook de ontwikkeling van de larven verloopt minder snel dan bij <em>T. longicaudatus</em>. Nu is het wachten op verdere ontwikkeling en hopelijk veel eitjes, want veel leek er niet tussen het zand te zitten&#8230;</p>
<p>On Ebay I scored some <em>Triops cancriformis</em> eggs, of the European subspecies. I tried breeding this species earlier but it failed for some reason. So, I tried again and now there is life in the hatching tank. Eggs seem to hatch somewhat slower than <em>T. longicaudatus</em> and development also seems slower. Now it&#8217;s waiting for further growth and hopefully harvesting of some eggs as the package I received didn&#8217;t seem to contain that many eggs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.julietmikebravo.nl/index.php/2011/11/26/nieuwe-triops-new-triops/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino/Cacti Geiger counter update</title>
		<link>http://www.julietmikebravo.nl/index.php/2011/09/06/arduinocacti-geiger-counter-update/</link>
		<comments>http://www.julietmikebravo.nl/index.php/2011/09/06/arduinocacti-geiger-counter-update/#comments</comments>
		<pubDate>Tue, 06 Sep 2011 18:22:24 +0000</pubDate>
		<dc:creator>Johan</dc:creator>
				<category><![CDATA[computers-networking]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[wetenschap/science]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[cacti]]></category>
		<category><![CDATA[geiger counter]]></category>
		<category><![CDATA[radioactiviteit]]></category>
		<category><![CDATA[radioactivity]]></category>

		<guid isPermaLink="false">http://www.julietmikebravo.nl/?p=921</guid>
		<description><![CDATA[My online geiger counter which I described earlier has been offline for some time. During that time I experimented with a standalone Arduino with the goal of making a dedicated board for the setup. I have now completed the board shown in the picture below. In the picture you can see the HV generator on [...]]]></description>
			<content:encoded><![CDATA[<p>My online geiger counter <a href="http://www.julietmikebravo.nl/index.php/2011/04/02/online-geiger-counter-using-arduino-and-cacti/">which I described earlier</a> has been offline for some time. During that time I experimented with a standalone Arduino with the goal of making a dedicated board for the setup. I have now completed the board shown in the picture below.</p>
<p style="text-align: center;"><a href="http://www.julietmikebravo.nl/static/images/gmcounterserial.jpg"><img class="aligncenter" title="Serial Geiger Counter" src="http://www.julietmikebravo.nl/static/images/gmcounterserial.jpg" alt="" width="387" height="258" /></a></p>
<p>In the picture you can see the HV generator on the top of the board, on the lower left the Arduino standalone parts along with a MAX232 as a level converter for easy serial hookup and on the right two tubes connected in parallel, a SI-29BG (beta and gamma) and a SI-12B for added alpha sensivity. Also shown are the USB&gt;Serial adapter and a separate USB connector to provide 5V to the board. <span id="more-921"></span></p>
<p>I have had it running for some weeks with a Russian <a href="http://www.gstube.com/data/2484/" target="_blank">SI-29BG</a> hard beta and gamma tube. These are nice, very sturdy tubes to experiment with. They easily detect natural background radiation and K-40 from a bag of Potassium Chloride.As I already explained I have connected two tubes in parallel. There wasn&#8217;t that much variation in background radiation, (see below) even after heavy rainfall so I am now going to watch whether alpha sensivity makes any difference.</p>
<p><a href="http://ruthenium.dyndns.org/graphs/graph_61.html"><img class="aligncenter" src="http://www.julietmikebravo.nl/static/images/radcacti.png" alt="" width="470" height="223" /></a></p>
<p>Also, the SI-12B is kind of useless on its own, it is not very sensitive to beta and gamma but is able to detect alpha quite well due to its mica window.</p>
<h2>Scripting</h2>
<p>I have also changed my scripting on both Linux and Arduino to make everything easier to test and make it fail gracefully when the counter stops functioning for some reason. It also now works in Cacti with a GAUGE type of data, not a counter. This prevents spikes when the counter is reset or temporarily disconnected or offline. The script is as follows:</p>
<pre>#!/bin/bash
# serial gmcounter update &amp; log script
LOGFILE=/var/log/gmcount.log

function getcounts {
# display last 5 minute counts
# check if log was updated within 6 minutes
if [ `find $LOGFILE -mmin -6` ]
then
# print last 5 minute count
tail -n 1 $LOGFILE | awk {' print $5'}
else
echo "Error - logfile too old"
fi
}

function log {
# read counts from serial and write to logfile
read LINE &lt; /dev/ttyUSB0
echo $(date) &gt;&gt; $LOGFILE
echo $LINE &gt;&gt; $LOGFILE
}

# check arguments and display or log data
if [ "$1" = "" ]
then
echo 'Use "getcounts" to display counts or "log" to log counts'
fi

if [ "$1" = "getcounts" ]
then
getcounts
fi

if [ "$1" = "log" ]
then
log
fi</pre>
<p>I have put everything in one script and created functions to log the counts over  the last 5 minutes or display the last logged 5 minute count. If the logfile wasn&#8217;t updated properly it will return an error, causing Cacti to not record a value and show the error in its logfile. The script is connected to SNMP as described in my original article.</p>
<p>The Arduino script is as follows:</p>
<pre>unsigned long counts = 0;
unsigned long fivemcount = 0;
long timer = 0;
long fivemtimer = 0;

void setup() {
Serial.begin(9600);
Serial.println("serial gm counter v1.0 starting...");
attachInterrupt(1, counter, FALLING);

}

void loop(){

if (millis() - fivemtimer &gt; 300000){
 fivemcount = counts;
 counts = 0;
 fivemtimer = millis();
}
 if (millis() - timer &gt; 10000){
 Serial.print("counts, cur: ");
 Serial.print(counts);
 Serial.print(" total: ");
 if (fivemcount == 0){
 Serial.println("n/a");
 }
 else {
 Serial.println(fivemcount);
 }
 timer = millis();
 }

}

void counter()
{
 counts++;
 tone(8,5000,1);
}</pre>
<p>Basically, it counts the pulses, outputs the last five minute count every 10 seconds using the serial port and clears the counter after 5 minutes preventing any overflows of the unsigned long value (very unlikely). It also gives a very short tone with each interrupt which results in a little clicking sound. The random clicking helps me get to sleep quicker <img src='http://www.julietmikebravo.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<p>BTW, the current graph can be found <a href="http://ruthenium.dyndns.org/graphs/graph_61.html" target="_blank">here</a>.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.julietmikebravo.nl/index.php/2011/09/06/arduinocacti-geiger-counter-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CPM to Sv/R conversion and workings of GM tubes</title>
		<link>http://www.julietmikebravo.nl/index.php/2011/06/18/cpm-to-svr-conversion-and-workings-of-gm-tubes/</link>
		<comments>http://www.julietmikebravo.nl/index.php/2011/06/18/cpm-to-svr-conversion-and-workings-of-gm-tubes/#comments</comments>
		<pubDate>Sat, 18 Jun 2011 15:04:04 +0000</pubDate>
		<dc:creator>Johan</dc:creator>
				<category><![CDATA[Electronica]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[wetenschap/science]]></category>

		<guid isPermaLink="false">http://www.julietmikebravo.nl/?p=905</guid>
		<description><![CDATA[(picture: &#8220;Geiger Tube&#8221; by &#8220;dh&#8221; on Flickr, showing Russian SBM-20 hard beta and gamma GM tube) On the internet there lots of DIY people showing off their homebuilt Geiger counter circuits, complete with microprocessors and LCD&#8217;s calculating and displaying count rates and often the dose rate in microsieverts/roentgen per hour. The last thing surely makes [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Geiger Tube by dh, on Flickr" href="http://www.flickr.com/photos/daijihirata/5699841704/"><img src="http://farm3.static.flickr.com/2560/5699841704_74109a1b8c.jpg" alt="Geiger Tube" width="400" height="266" /></a></p>
<h6>(picture: &#8220;Geiger Tube&#8221; by &#8220;dh&#8221; on Flickr, showing Russian SBM-20 hard beta and gamma GM tube)</h6>
<p>On the internet there lots of DIY people showing off their homebuilt Geiger counter circuits, complete with microprocessors and LCD&#8217;s calculating and displaying count rates and often the dose rate in microsieverts/roentgen per hour.</p>
<p>The last thing surely makes a project look more impressive with the floating point number with a weird unit that most people are unfamiliar with. It&#8217;s not a big deal with DIY setups but there are lots of mentions of sending projects to Japan to help people over there &#8220;measure&#8221; contamination. <span id="more-905"></span></p>
<p>I would like to explain something I think is overlooked when implementing these projects:</p>
<p><strong>You cannot convert counts per minute accurately to sieverts or roentgen per hour</strong></p>
<p>If you look up information of a tube it will often specify how sensitive it is to gamma radiation of a certain isotope. For example, the specification of the widely used <a href="http://www.lndinc.com/products/711/" target="_blank">LND712</a> end window tube reads:</p>
<p>Gamma sensitivity:  18 counts per second = 1 mR/hr (Co60)</p>
<p>The tube is calibrated against a known gamma source, and the counts per minute to R/hr is only valid for gamma radiation emitted by Co-60.</p>
<p>In real life,  all kinds of radiation of different isotopes cause GM tube discharges. A GM tube does not give information about the particle/ray energy, it only indicates that something was able to ionize the gas in the tube. It doesn´t matter whether the tube detected a high energy secondary cosmic ray, or some weak beta particle just being able to penetrate the tube, it will give the same loud click.</p>
<p>However, this does not mean GM tubes are useless. They will detect most beta and gamma radiation and alphas (pancake, end window tubes) so most of the time they will give you information about whether something is radioactive or not, and how radioactive,  relative to the background. For example. I was able to measure that a <a href="http://www.flickr.com/photos/julietmikebravo/5697079711/in/photostream" target="_blank">porcelain mug</a> I have is very slightly above background.</p>
<p>There are also other purposes for geiger counters in experiments. If you make an <a href="http://www.hardhack.org.au/cosmic_ray_telescope" target="_blank">array of tubes</a> and connect them to a microcontroller you can actually count particles that come from a certain direction, from space for example. It should also be possible to detect radon daughters decaying by pushing air through a filter and measure the radioactivity of the filter afterwards.</p>
<p>So, even with a  `simple` geiger muller tube you can perform interesting experiments.</p>
<p><span style="text-decoration: underline;">Disclaimer: </span>I am not a scientist. When you want to accurately measure radiation for some official purpose, consult a nuclear physicist.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.julietmikebravo.nl/index.php/2011/06/18/cpm-to-svr-conversion-and-workings-of-gm-tubes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Opportunism</title>
		<link>http://www.julietmikebravo.nl/index.php/2011/04/21/opportunism/</link>
		<comments>http://www.julietmikebravo.nl/index.php/2011/04/21/opportunism/#comments</comments>
		<pubDate>Thu, 21 Apr 2011 21:23:30 +0000</pubDate>
		<dc:creator>Johan</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[skeptisch/sceptical]]></category>
		<category><![CDATA[wetenschap/science]]></category>
		<category><![CDATA[radioactiviteit]]></category>
		<category><![CDATA[radioactivity]]></category>
		<category><![CDATA[sceptisch]]></category>

		<guid isPermaLink="false">http://www.julietmikebravo.nl/?p=870</guid>
		<description><![CDATA[With the developing nuclear disaster in Japan, I discovered that there is lots of money being made selling geiger counters. Prices of geiger counters on Ebay and various other places seem to have tripled instantly. Well, you could say that&#8217;s the free market in action. But it wouldn&#8217;t surprise me if prices are driven up [...]]]></description>
			<content:encoded><![CDATA[<p>With the developing nuclear disaster in Japan, I discovered that there is lots of money being made selling geiger counters. Prices of geiger counters on Ebay and various other places seem to have tripled instantly.</p>
<p>Well, you could say that&#8217;s the free market in action. But it wouldn&#8217;t surprise me if prices are driven up by people not actually needing geiger counters but buying them anyway out of fear while they are not likely to experience any effects of the disaster.</p>
<p>Today I saw something much worse, <a href="http://cgi.ebay.nl/Geigerzahler-Geiger-Zahler-Geiger-counter-Strahlen-/130510664262?pt=Mess_Pr%C3%BCftechnik&amp;hash=item1e630ab246" target="_blank">some German on Ebay</a> trying to sell a &#8220;geiger counter&#8221; which actually is a high range survey meter, a <a href="http://www.civildefensemuseum.com/cdmuseum2/radkits/cdv715.html" target="_blank">CDV715</a> according to the picture.<span id="more-870"></span></p>
<p>This person is even recommending this device to Japanese people. I would say that is a <strong>very bad recommendation</strong> because:</p>
<ul>
<li>this meter is high range, if the needle moves you are likely in the exclusion zone around the reactors where one shouldn&#8217;t be anyway.</li>
<li>it will not measure smaller amounts of radiation, you cannot use it to check whether food or water has been contaminated or not, or compare contamination levels.</li>
<li>it will mostly detect gamma radiation, so it won&#8217;t properly detect the beta radiation coming from the Iodine-131 release from the reactors which is something you <em>really</em> want to be able to measure.</li>
</ul>
<p>It kind of sickens me that there are people trying to make money of this disaster while thousands of Japanese died and more are homeless, and have to cope with possible effects of fallout from the leaking reactors.</p>
<p>Finally, €199 is <strong>way overpriced</strong> for a survey meter, I bought a German made one for a mere €10. An original Civil Defense CDV715 should cost €100 at most.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.julietmikebravo.nl/index.php/2011/04/21/opportunism/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy and cheap CDV-700 tube adapter</title>
		<link>http://www.julietmikebravo.nl/index.php/2011/04/19/easy-and-cheap-cdv-700-tube-adapter/</link>
		<comments>http://www.julietmikebravo.nl/index.php/2011/04/19/easy-and-cheap-cdv-700-tube-adapter/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 17:11:23 +0000</pubDate>
		<dc:creator>Johan</dc:creator>
				<category><![CDATA[Electronica]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[wetenschap/science]]></category>
		<category><![CDATA[civil defense]]></category>
		<category><![CDATA[geiger counter]]></category>
		<category><![CDATA[radioactiviteit]]></category>
		<category><![CDATA[radioactivity]]></category>

		<guid isPermaLink="false">http://www.julietmikebravo.nl/?p=859</guid>
		<description><![CDATA[I own a CDV-700 geiger counter of which the tube stopped working. It turns out that replacement tubes are both hard to find and expensive. The simplest option is to buy the LND 720 which basically is a drop-in replacement that should cost about $100. It&#8217;s also possible to use cheaper, easier to find tubes [...]]]></description>
			<content:encoded><![CDATA[<p>I own a CDV-700 geiger counter of which the tube stopped working. It turns out that replacement tubes are both hard to find and expensive. The simplest option is to buy the <a href="http://www.lndinc.com/products/345/" target="_blank">LND 720</a> which basically is a drop-in replacement that should cost about $100.</p>
<p>It&#8217;s also possible to use cheaper, easier to find tubes with the CDV-700.  I found the following <a href="http://tech.dir.groups.yahoo.com/group/CDV700CLUB/message/18593" target="_blank">post</a> from radio amateur K0FF on the &#8220;Geiger Counter Enthousiasts&#8221;  group on Yahoo groups. It describes a simple circuit to adapt tubes of varying voltage to the CDV-700. I built one, and it works! <span id="more-859"></span></p>
<p>I created a schematic to help people build this very handy circuit:</p>
<p style="text-align: center;"><a href="http://www.julietmikebravo.nl/static/images/cdv700adpt.gif"><img class="aligncenter" title="CDV-700 Adapter" src="http://www.julietmikebravo.nl/static/images/cdv700adpt.gif" alt="" width="441" height="245" /></a></p>
<p style="text-align: left;"><strong>Parts:</strong></p>
<p>R1 = 3.3 megaohms resistor 0.25 watts<br />
R2= 1.8 megaohms resistor 0.25 watts<br />
C1 = 10 nanofarad capacitor, rated 2 kilovolts<br />
D1 &#8211; D3 = any number of zener diodes, the values added together  should be the desired voltage to regulate to</p>
<p>You can build this circuit in any way you want, keep in mind that there is high voltage involved, make sure that everything is properly insulated and that bare conductors are not closer to eachother than 2mm to prevent any arcing.</p>
<p style="text-align: left;">This circuit is basically a voltage regulator such as a 7805 built with discrete components and for higher voltages. To regulate to 500V for example, I used one 200V and two 150 zener diodes. 500V is a common voltage used by GM tubes.</p>
<p style="text-align: left;">With this circuit you are no longer limited to the more rare 900V tubes and you can connect all kinds of tubes to the CDV-700.  Keep in mind, however, that the CDV-700 may no longer display correct measurements in milliRöntgens per hour since the scale is calibrated for use with the 6993 tube.</p>
<p style="text-align: left;">&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.julietmikebravo.nl/index.php/2011/04/19/easy-and-cheap-cdv-700-tube-adapter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Online geiger counter using Arduino and Cacti</title>
		<link>http://www.julietmikebravo.nl/index.php/2011/04/02/online-geiger-counter-using-arduino-and-cacti/</link>
		<comments>http://www.julietmikebravo.nl/index.php/2011/04/02/online-geiger-counter-using-arduino-and-cacti/#comments</comments>
		<pubDate>Sat, 02 Apr 2011 16:21:45 +0000</pubDate>
		<dc:creator>Johan</dc:creator>
				<category><![CDATA[Electronica]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[wetenschap/science]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[cacti]]></category>
		<category><![CDATA[geigercounter]]></category>
		<category><![CDATA[radioactiviteit]]></category>
		<category><![CDATA[radioactivity]]></category>
		<category><![CDATA[solderen]]></category>

		<guid isPermaLink="false">http://www.julietmikebravo.nl/?p=832</guid>
		<description><![CDATA[I have always had an above average interest in radioactivity.  It&#8217;s a subject with political, sociological and scientific aspects. I have been mostly interested in the scientific part, but I also closely follow any news and other developments. With the earthquake in Japan and the following nuclear disaster the discussion about nuclear energy has  been [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://ruthenium.dyndns.org/graphs/"><img class="aligncenter" src="http://www.julietmikebravo.nl/static/images/cactirad.png" alt="" width="414" height="173" /></a></p>
<p>I have always had an above average interest in radioactivity.  It&#8217;s a subject with political, sociological and scientific aspects. I have been mostly interested in the scientific part, but I also closely follow any news and other developments. With the earthquake in Japan and the following nuclear disaster the discussion about nuclear energy has  been fired up after being quite silent for years. In the Netherlands there was talk about building a new reactor next to the existing plant in Borssele. Well, I guess it will be a bit harder now to get support for this plan&#8230;</p>
<p>To be honest, watching the developments with the damaged reactors in Japan got me thinking again. Is nuclear energy a proper way of generating electricity? Sure,  for the immediate surroundings it is very clean. There are virtually no CO2 emissions and with proper shielding and maintenance you&#8217;ll need some pretty advanced equipment to measure any radioactivity coming from a reactor. Still, uranium mining is not very nice for the environment and there is no clear solution for storage of waste. And, if a reactor malfunctions there is the possibility of widespread contamination as currently seen in Japan. So, while I am not against nuclear energy my support for it has weakened somewhat.</p>
<p>Anyway, enough rambling, how to monitor radiation with your computer!</p>
<p>Update 18/4: Guess I am not the only one doing some monitoring: <a href="http://radgoes.blogspot.com" target="_blank">http://radgoes.blogspot.com</a></p>
<p>&nbsp;</p>
<p><span id="more-832"></span></p>
<h2>Geiger counter setup</h2>
<p style="text-align: center;"><a href="http://www.julietmikebravo.nl/static/images/radsetup.jpg"><img class="aligncenter" title="Setup" src="http://www.julietmikebravo.nl/static/images/radsetup.jpg" alt="" width="410" height="307" /></a></p>
<p>I earlier built a geiger counter using the following circuit: <a href="http://letsmakerobots.com/node/18220" target="_blank">http://letsmakerobots.com/node/18220</a> It&#8217;s an easy circuit because apart from high voltage capacitors and diodes most parts are fairly standard. The circuit has a 555 pulse shaper that converts the pulses from the tube into nice 0-5V signals. It&#8217;s also adjustable, not completely in the way I wanted, but by using the variable resistor and tapping into the end or the middle of the high voltage cascade I can get various voltages for different tubes. Most tubes will run at 400-500 volts.</p>
<p>I acquired tubes by buying an old German FH40T counter. It didn&#8217;t work properly anymore so I disassembled it for the parts, mainly the three tubes that come with it. The €40 it cost me is a nice deal even if you only get the tubes which can cost up to €23 separately. It comes with 2 low range (1R/hr)  tubes and one high range tube (50R/hr). The high range tube is of course less interesting but still a working tube for testing purposes. The sensitive tubes have the part number FH76V. Actually, according to the CDV-700 Club on Yahoo they are repackaged LND713 tubes. Specifications can be found <a href="http://www.lndinc.com/products/332/" target="_blank">here</a>.</p>
<p>To connect the tubes to the circuit I had to get +500V out of it. At the end of the cascade the voltage was too high so I tapped into the middle of the high voltage cascade and with R5 and a high voltage adapter for my DMM I adjusted the supply to the correct voltage. To measure HV properly with your DMM you can build a HV probe cheaply using the <a href="http://cdtsys.com/HVProbe.html">following circuit</a>.</p>
<p><strong>By the way, watch out with high voltages. Even if the circuit is off, capacitors will retain charge, so discharge capacitors by shorting them before working on the circuit!</strong></p>
<p>The circuit didn&#8217;t trigger the 555 properly so I made some modifications. I soldered a 50K potmeter over R12 to adjust the voltage of the pulsed fed into the 555. If everything is working, each pulse will be shaped and converted into nice pulses of 0V since the circuit inverts the signal from the tube. This seems to be a best practice for supplying pulses to a microcontroller because it provides a test signal, if there are no pulses the signal will be 5V, proving that the counter is actually on.</p>
<h2>Arduino and Linux interfacing</h2>
<p>If everything is working OK you can connect it to the Arduino. Since the circuit runs on 5V I was able to power it from the 5V supply of the Arduino itself.  Counts from pin 3 of the 555 are connected to pin 3 of  the Arduino, interrupt 1. The Arduino runs the following program:</p>
<pre>long count = 0;
long timer = 0;

void setup() {
Serial.begin(9600);
attachInterrupt(1, counter, FALLING);

}

void loop() {
 lcd.setCursor(0,0);
 if (millis() - timer &gt; 5000){
 Serial.println(count);    
 timer = millis();
 }

}

void counter()
{
 count++;
}</pre>
<p>This simple program increments a counter each time the interrupt is triggered. Each 5 seconds it  prints this counter to the virtual serial port of the Arduino. If you monitor the serial port you should see the counter being printed each 5 seconds.</p>
<p><strong>Note:</strong> this is a simple program, the <strong>long</strong> value <em>count </em>will overflow after 2147483647 counts. This number will be reached more quickly when measured radiation is higher. It shouldn&#8217;t be a big problem,  it will overflow after 510 years with my current measured background radiation.</p>
<p><strong>Another note:</strong> To prevent the Arduino from resetting when the serial port is read, put a 10 microfarad capacator between the RESET and GND pins on the Arduino.</p>
<p>To log the value on my Linux server the following script waits for output from the serial port (will be autodetected when Arduino is connected) and logs the count with a timestamp, This script is run permanently by starting it with <em>/usr/local/bin/getcountserial&amp;</em></p>
<p>Script at <em>/usr/local/bin/getcountserial</em></p>
<pre>#!/bin/bash</pre>
<pre>while true
do
read LINE &lt; /dev/ttyUSB0
echo $(date) &gt;&gt; /var/log/gmcount.log
echo $LINE &gt;&gt; /var/log/gmcount.log
done</pre>
<p>To make interfacing with Cacti easy, I made another script that reads out the last line of the script:</p>
<p>Script at <em>/usr/local/bin/getcount</em></p>
<pre>#!/bin/bash</pre>
<pre>value=$(tail -1 /var/log/gmcount.log)</pre>
<pre>echo $value</pre>
<p>This script is coupled to SNMP by adding the following line to <em>/etc/snmp/snmpd.conf</em>:</p>
<pre>extend .1.3.6.1.4.1.2021.2000.4 gmc /usr/local/bin/getcounts</pre>
<p>When this OID is read by snmpwalk, you will get the following output (rest of output snipped) :</p>
<pre>UCD-SNMP-MIB::ucdavis.2000.4.4.1.2.3.103.109.99.1 = STRING: "32129"</pre>
<p>Again, as in my <a href="http://www.julietmikebravo.nl/index.php/2010/10/04/ds1820-temp-monitoring-using-linux-and-cacti/" target="_blank">Cacti temperature monitoring setup</a>, use the most unique OID to get the value.</p>
<p>If the counts are properly registered, the rest is quite simple. Create a graph of a single OID, an instruction can be found <a href="http://www.cacti.net/downloads/docs/html/graph_snmp_oid.html" target="_blank">here</a>. There is a small change. The graph assumes data is per second, while the counts are measured over 5 minutes and need to be expressed in CPM, counts per minute. To get proper values I did the following: I duplicated the Generic OID template and named it CPM &#8211; Counts per Minute. I created a CDEF to convert the values from counts per second to CPM. I then coupled this CDEF to all the graph elements in the graph template.  I also added a comment to roughly convert CPM to microSieverts per hour.</p>
<p>You can find the live graph here: <a href="http://ruthenium.dyndns.org/graphs/graph_61.html" target="_blank">http://ruthenium.dyndns.org/graphs/graph_61.html</a></p>
<p><strong>Final note:</strong> This is a crude setup and after completing it discovered it needs some tuning. It can be made more robust by getting the Arduino put out the actual measured CPM instead of the counts. That way the server still gets proper values even when it is restarted. When the Arduino is reset the counter will be reset to zero and Cacti will record a nice &#8220;radiation spike&#8221;  because it will see a large difference between the last recorded count and the zero value.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.julietmikebravo.nl/index.php/2011/04/02/online-geiger-counter-using-arduino-and-cacti/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Triops, update en links</title>
		<link>http://www.julietmikebravo.nl/index.php/2010/11/06/triops-update-en-links/</link>
		<comments>http://www.julietmikebravo.nl/index.php/2010/11/06/triops-update-en-links/#comments</comments>
		<pubDate>Sat, 06 Nov 2010 17:00:40 +0000</pubDate>
		<dc:creator>Johan</dc:creator>
				<category><![CDATA[biologie/biology]]></category>
		<category><![CDATA[wetenschap/science]]></category>

		<guid isPermaLink="false">http://www.julietmikebravo.nl/?p=810</guid>
		<description><![CDATA[Momenteel hou ik mij nog steeds bezig met het houden en kweken van Triops. Ik heb de afgelopen maanden wat generaties opgekweekt en weer zien sterven en ik heb eitjes weten af te scheiden om voor toekomstige generaties te kunnen zorgen. Op het moment ben ik wat aan het experimenteren om een bak met Triops [...]]]></description>
			<content:encoded><![CDATA[<p>Momenteel hou ik mij nog steeds bezig met het houden en kweken van Triops. Ik heb de afgelopen maanden wat generaties opgekweekt en weer zien sterven en ik heb eitjes weten af te scheiden om voor toekomstige generaties te kunnen zorgen.</p>
<p>Op het moment ben ik wat aan het experimenteren om een bak met Triops wat represenatiever te maken met de dingen die je normaliter in aquaria voor vissen ziet. Ik heb grind gebruikt om waterplanten goed te kunnen laten wortelen, en een stuk kienhout op de bodem gelegd. <span id="more-810"></span></p>
<p>Grind is niet bijzonder geschikt voor Triops heb ik gemerkt. Ze hebben niet voldoende kracht om in fijn grind te graven. Daarom heb ik voorin de bak een gedeelte van het grind weggeheveld en het vervangen door zand. Zo hoop ik dat de planten goed kunnen groeien en de Triops goed kunnen graven om eitjes te leggen. Als het goed is zouden de eitjes zich voorin de bak moeten concentreren aangezien ze alleen daar goed kunnen graven.</p>
<div class="wp-caption aligncenter" style="width: 430px"><img src="http://upload.wikimedia.org/wikipedia/commons/6/63/Triops_cancriformis2.jpg" alt="(Imagen del artrópodo Triops cancriformis Author: Photographed by Stijn Ghesquiere (www.applesnail.net), May 2006 http://en.wikipedia.org/wiki/Image:Triops_cancriformis2.jpg Category:Arthropoda Category:Crustacea )" width="420" height="136" /><p class="wp-caption-text">T. cancriformis</p></div>
<p style="text-align: center;">
<p>Ik heb bij een Duitse postorder de soorten Triops cancriformis en T. australiensis besteld om daar eens mee aan de gang te gaan. Vooral T. cancriformis lijkt me erg interessant aangezien deze soort ook in Nederland voorkomt. Deze soort schijnt wel een wat lagere temperatuur nodig te hebben en groeien in een ander tempo dus waarschijnlijk zijn ze niet samen te houden met T. longicaudatus. Het is ook de bedoeling om ze apart te houden, dan blijven de eitjes ook zoveel mogelijk apart.</p>
<p style="text-align: center;">
<div class="wp-caption aligncenter" style="width: 430px"><a href="http://en.wikipedia.org/wiki/File:Triops_australiensis.jpg"><img class=" " src="http://upload.wikimedia.org/wikipedia/commons/f/f4/Triops_australiensis.jpg" alt="" width="420" height="158" /></a><p class="wp-caption-text">T. australiensis</p></div>
<p>Tot slot nog een tweetal interessante links voor mensen die zich verder willen inlezen:</p>
<p><a href="http://www.triopsguys.com/" target="_blank">http://www.triopsguys.com/</a> (Engelstalige site, weblog opzet)</p>
<p><a href="http://www.urzeitkrebse.at/" target="_blank">http://www.urzeitkrebse.at/ </a>(Engels/Duits, over alle grote diertjes van de order Branchiopodia)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.julietmikebravo.nl/index.php/2010/11/06/triops-update-en-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DS1820 Temp. monitoring using Linux and Cacti</title>
		<link>http://www.julietmikebravo.nl/index.php/2010/10/04/ds1820-temp-monitoring-using-linux-and-cacti/</link>
		<comments>http://www.julietmikebravo.nl/index.php/2010/10/04/ds1820-temp-monitoring-using-linux-and-cacti/#comments</comments>
		<pubDate>Mon, 04 Oct 2010 13:23:37 +0000</pubDate>
		<dc:creator>Johan</dc:creator>
				<category><![CDATA[computers-networking]]></category>
		<category><![CDATA[Electronica]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[wetenschap/science]]></category>
		<category><![CDATA[cacti]]></category>
		<category><![CDATA[ds1820]]></category>
		<category><![CDATA[sensor]]></category>
		<category><![CDATA[temperature]]></category>

		<guid isPermaLink="false">http://www.julietmikebravo.nl/?p=772</guid>
		<description><![CDATA[This article will try to explain how to monitor and graph temperatures remotely using Dallas Semiconductor DS18xx sensors, SNMP and Cacti. DS18xx sensors are relatively cheap, accurate and multiple sensors can be connected to a single bus. This guide is based on Ubuntu, so YMMV on other Linux/Unix based systems and may need modification to [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.julietmikebravo.nl/static/images/cactitemp.png"><img class="aligncenter" title="cactitemp" src="http://www.julietmikebravo.nl/static/images/cactitemp.png" alt="" width="425" height="171" /></a></p>
<p>This article will try to explain how to monitor and graph temperatures remotely using <a href="http://www.maxim-ic.com/datasheet/index.mvp/id/2815" target="_blank">Dallas Semiconductor DS18xx sensors</a>, SNMP and <a href="http://www.cacti.net/" target="_blank">Cacti</a>. DS18xx sensors are relatively cheap, accurate and multiple sensors can be connected to a single bus.</p>
<p>This guide is based on Ubuntu, so YMMV on other Linux/Unix based systems and may need modification to work properly.</p>
<p><span id="more-772"></span></p>
<h2>Interfacing and software</h2>
<p>To directly read out DS18xx sensors you need the following things:</p>
<p>- a Linux server running the software package <a href="http://www.digitemp.com/" target="_blank">digitemp </a>(available on various platforms) and <a href="http://net-snmp.sourceforge.net/" target="_blank">net-snmp</a></p>
<p>- a serial to <a href="http://en.wikipedia.org/wiki/One_wire" target="_blank">1-wire</a> adapter (DS9097 or build one yourself with the following <a href="http://www.instructables.com/image/FBRANFGG8B8VUFO/1-wire-communication-interface.jpg" target="_blank">schematic</a>)</p>
<p>- an installation of<a href="http://www.cacti.net/" target="_blank"> cacti</a> running on a remote or local server</p>
<p>Setting up the hardware of the 1-wire network is outside the scope of the article. You can find lots of  guides to cabling and building interfaces on Google.</p>
<h2>Testing and reading out sensors</h2>
<p>When everything is connected properly you can try to read out the sensors. Make sure digitemp is installed and enter the following command  (this command assumes your first serial port is /dev/ttyS0, for USB serial adapters try /dev/ttyUSB0)</p>
<pre>digitemp_DS9097 -w -s /dev/ttyS0</pre>
<p>Digitemp should search (walk, hence the &#8220;-w&#8221;) the network and find sensors if they are connected:</p>
<pre>DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane
GNU Public License v2.0 - http://www.digitemp.com
Turning off all DS2409 Couplers
..
Devices on the Main LAN
10A67CF501080074 : DS1820/DS18S20/DS1920 Temperature Sensor
10DF7DF5010800B7 : DS1820/DS18S20/DS1920 Temperature Sensor</pre>
<p>In the example above two DS18xx sensors are found. If no sensors are found, check your cabling and sensors. It is also best to run as root to make sure there are no permission issues.</p>
<p>To make digitemp remember the sensors you have to store the settings in a configuration file. You can do a walk and configuration using the following command:</p>
<pre>digitemp_DS9097 -i -s /dev/ttyS0</pre>
<p>It should report the connected devices and confirm that it wrote a configuration file:</p>
<pre>DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane</pre>
<pre>GNU Public License v2.0 - http://www.digitemp.com</pre>
<pre>Turning off all DS2409 Couplers</pre>
<pre>..</pre>
<pre>Searching the 1-Wire LAN</pre>
<pre>10A67CF501080074 : DS1820/DS18S20/DS1920 Temperature Sensor</pre>
<pre>10DF7DF5010800B7 : DS1820/DS18S20/DS1920 Temperature Sensor</pre>
<pre>ROM #0 : 10A67CF501080074</pre>
<pre>ROM #1 : 10DF7DF5010800B7</pre>
<pre>Wrote .digitemprc</pre>
<p>It is best to move the configuration file to a central location, for example I use <em>/etc/digitemp/digitemp.conf</em>.  If you have multiple sensors you might be confused which sensor is which.  A simple way to check which sensor you are measuring is to hold it in your hand and probe the sensor indexes using the following command:</p>
<pre>digitemp_DS9097 -t 1 -c /etc/digitemp/digitemp.conf</pre>
<p>In this example, the sensor with index &#8220;1&#8243; is measured. In the configuration file, the unique adresses of the sensors are listed so you can look them up or change the index of a device.</p>
<h2>Interfacing with SNMP</h2>
<p>To make interfacing with SNMP easy I wrote a script that reads out a sensor based on the index number and returns the temperature:</p>
<pre>#!/bin/bash
# digitemp readout script

CONFFILE=/etc/digitemp/digitemp.conf

digitemp_DS9097 -t $1 -c $CONFFILE  | awk {' print $7'}| tail -n 1</pre>
<p>This script takes the index as an argument and returns the temperature for that sensor, with all the other info stripped off. The <strong>awk</strong> command only prints the 7th column and that is piped to <strong>tail</strong> to only display the line the temperature was displayed on.</p>
<p>To couple this script to SNMP you have to add the following lines to <em>/etc/snmpd.conf</em>:</p>
<pre>extend .1.3.6.1.4.1.2021.2000.1 temp0 /usr/local/bin/checktemp 0
extend .1.3.6.1.4.1.2021.2000.2 temp1 /usr/local/bin/checktemp 1</pre>
<p>Shown here are two scripts coupled to different SNMP OIDs, both returning the script output for one of the connected sensors. <strong>Make sure the SNMP daemon has sufficient rights to access the serial port! </strong>On my Ubuntu 10.04 system I had to add the user &#8220;snmp&#8221; to the group &#8220;dialout&#8221; in the <em>/etc/group</em> file.</p>
<p>To test the scripts coupled to the SNMP OIDs, read them out using snmpwalk:</p>
<pre>snmpwalk -v1 -c public localhost .1.3.6.1.4.1.2021.2000.2</pre>
<pre>UCD-SNMP-MIB::ucdavis.2000.2.1.0 = INTEGER: 1</pre>
<pre>UCD-SNMP-MIB::ucdavis.2000.2.2.1.2.5.116.101.109.112.49 = STRING: "/usr/local/bin/checktemp"</pre>
<pre>UCD-SNMP-MIB::ucdavis.2000.2.2.1.3.5.116.101.109.112.49 = STRING: "1"</pre>
<pre>UCD-SNMP-MIB::ucdavis.2000.2.2.1.4.5.116.101.109.112.49 = ""</pre>
<pre>UCD-SNMP-MIB::ucdavis.2000.2.2.1.5.5.116.101.109.112.49 = INTEGER: 5</pre>
<pre>UCD-SNMP-MIB::ucdavis.2000.2.2.1.6.5.116.101.109.112.49 = INTEGER: 1</pre>
<pre>UCD-SNMP-MIB::ucdavis.2000.2.2.1.7.5.116.101.109.112.49 = INTEGER: 1</pre>
<pre>UCD-SNMP-MIB::ucdavis.2000.2.2.1.20.5.116.101.109.112.49 = INTEGER: 4</pre>
<pre>UCD-SNMP-MIB::ucdavis.2000.2.2.1.21.5.116.101.109.112.49 = INTEGER: 1</pre>
<pre>UCD-SNMP-MIB::ucdavis.2000.2.3.1.1.5.116.101.109.112.49 = STRING: "24.25"</pre>
<pre>UCD-SNMP-MIB::ucdavis.2000.2.3.1.2.5.116.101.109.112.49 = STRING: "24.25"</pre>
<pre>UCD-SNMP-MIB::ucdavis.2000.2.3.1.3.5.116.101.109.112.49 = INTEGER: 1</pre>
<pre>UCD-SNMP-MIB::ucdavis.2000.2.3.1.4.5.116.101.109.112.49 = INTEGER: 0</pre>
<pre>UCD-SNMP-MIB::ucdavis.2000.2.4.1.2.5.116.101.109.112.49.1 = STRING: "24.25"</pre>
<pre>End of MIB</pre>
<p>For some reason the output of the script is displayed multiple times. I always use the most unique OID (in this case the last OID on the output) and it seems to work all the time, no problems whatsoever. If SNMP is running and accessible by either the localhost or a remote server running cacti, you can read out the temperature from Cacti.</p>
<h2>Graphing the output in Cacti</h2>
<p>To graph a single temperature in Cacti is quite simple. Generate a new data source using the<em> SNMP -  Generic OID</em> template, fill in the OID and Cacti will poll the data every 5 minutes. To graph the data source, create a graph using the <em>SNMP &#8211; Generic OID</em> graph template. Under <em>Graph Item Fields</em> you can select the data source containing the SNMP data. Save the settings (Cacti could ask for a min and max value, enter something between -20 and 100 ) and the temperature should now be graphed. You can find additional Cacti documentation on this subject <a href="http://www.cacti.net/downloads/docs/html/graph_snmp_oid.html" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.julietmikebravo.nl/index.php/2010/10/04/ds1820-temp-monitoring-using-linux-and-cacti/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

