• Tag Archives geiger counter
  • Interfacing the Uradmonitor with the Internet of Things, MQTT and Pimatic

    Intro

    For some time I have owned a Uradmonitor model A unit. This is a radiation monitoring solution which measures radiation and makes it available on a website. Connect it to your local network, and it will automatically get an IP address and start logging to www.uradmonitor.com. There you can find the stations and associated readings on a map.

    Since the Uradmonitor has a webinterface it is easy to scrape the data and send it elsewhere. For example, the CPM can be displayed on a VFD display or displayed in domotics applications.

    At home I try to make any sensor reading available using Mosquitto/MQTT. It is a lightweight, easy to use protocol to distribute dynamic data. Besides the Uradmonitor, multiple NodeMCU ESP8266 units running ESP Easy publish their sensor readings to the local MQTT server. All of this is done by Mosquitto running on my Debian ARM NAS and a Raspberry Pi running Raspbian and Pimatic.

    Scraping and publishing to MQTT

    First off I scrape the data from the Uradmonitor webpage using curl. Then, after some awk and html2text processing it is published to my local MQTT server using the mosquitto_pub MQTT publishing client.

    #!/bin/bash
    uradmonitorcpm=$(curl -s http://<ip of uradmonitor/ | html2text | grep radiation | egrep -o '[0-9.]*')
    mosquitto_pub -m $uradmonitorcpm -t /uradmonitor/cpm

    This bash script runs every minute using /etc/crontab and updates the local MQTT server with the latest measurement. The command ends with the MQTT topic which is the “address” of the dynamic value on the MQTT server.  Please note that mosquitto_sub does not need an IP address when publishing to localhost/127.0.0.1 since that is a default of the client. To specify a host, use the -h <ip address of mqtt server> option. Continue reading  Post ID 3185


  • Trinket powered geiger counter

    Lately I have been messing around a bit with microprocessor powered geiger counters. One smart guy came up with the idea of generating high voltage using PWM signals from the microprocessor itself. With some additional external parts a HV supply and negative going pulse suitable for microprocessors is easy to make. Here is a schematic I came up with:

    gm counter interface

    The circuit works as follows: A ~1 Khz squarewave turns the MPSA44 high voltage transistor on and off, generating high voltage when the  inductors current is shut off. The voltage depends on the pulse width of the square wave which can be tweaked in software. The 1N4007 diode rectifies this voltage, and the HV cap removes most of the ripple on this voltage. The resistor limits current to the GM tube. The current pulses from the tube generate a voltage drop over the 100K resistor which turns on the BC546. When this happens the voltage through the 10K resistor is pulled to ground, generating a negative going pulse each time the GM tube detects an ionizing ray or particle.

    To drive this circuit I used my new Adafruit Trinket, a small board with a Attiny85 microprocessor. Using the tutorials on the Adafruit website it is easy to work with from the Arduino environment. Here is the code:

    void setup() {
     analogWrite(0, 30); //starts PWM on pin 0, generates about 400V
     analogWrite(1, 255); // needed to get LED to full brightness
     attachInterrupt(0,countPulse,FALLING); // attach interrupt to pin 2
     }
    void loop() {
     //nothing much really
     }
    void countPulse(){
     //pulse led
     digitalWrite(1, HIGH);
     delay(100);
     digitalWrite(1,LOW);
     }

    And here is a video of the setup in use:

     

    Of course it is rather wasteful to only use the microprocessor to generate PWM and flash a LED. I plan on implementing counting and serial output in software later. Unfortunately the Trinket does not have native serial USB capability but bit banging a serial signal on one of the pins should work fine according to several sites. Then it is just a matter of adding a cheap PL2303 serial to USB adapter.

    Update 18/4/2014

    Added serial logging capability. Using a tx only software serial library, the Trinket outputs the measurements in CPM each 10 seconds on pin 4. New code:

    // Trinket GM counter by Johan/dynode.nl
    
    //counting vars
    long count = 0;
    long countPerMinute = 0;
    
    // init softserial only tx on pin 4
    #include <SendOnlySoftwareSerial.h>
    SendOnlySoftwareSerial mySerial (4);
    
    void setup() {
      mySerial.begin(9600); // init serial 9k6
      analogWrite(0, 30); //starts PWM on pin 0, generates about 400V
      analogWrite(1, 255); // needed to get LED to full brightness
      attachInterrupt(0,countPulse,FALLING); // attach interrupt to pin 2
      mySerial.println ("Trinket GM counter starting..."); 
    }
    
    void loop() {
      delay(10000); //the count is incrementing during this delay
      countPerMinute = 6 *count;
      mySerial.println (countPerMinute);
      count=0; //reset the count
    }
    
    void countPulse(){
        count++;
        //pulse led when count is increased
        digitalWrite(1, HIGH);
        delay(100);
        digitalWrite(1,LOW);
      }

    Example serial output using cheap eBay USB<>TTL serial adapter:

    Trinket GM counter starting...
    84
    12
    6
    0
    402        <--- thorium bearing mantle held next to GM tube
    996
    1218
    1146
    1074
    1104
    
    

    There still need to be some tweaking done, the circuit is quite susceptible to electromagnetic interference which causes erroneous counts.


  • PMTs and scintillation probes

    quickprobe

    temporary probe with NaI(Tl) crystal, PMT, socket with voltage divider and BNC socket

    Following is a little guide to using photomultiplier tubes in DIY scintillation probes.

    Photomultipliers are vacuum tubes that convert light into electrons and multiply the resulting current up to millions of times. They are used to detect the minute flashes of light generated by scintillators, materials that convert gamma and x-rays into visible light.

    How to use these tubes? There are some things you need to remember when working with PMTs.

    Continue reading  Post ID 3185


  • Ludlum Model 2A 500K cpm mod

    ludlum500krange

     

    I recently bought a Ludlum Measurements model 2A survey meter on eBay from Obtanium. This is a nice meter which features the well known rugged Ludlum design, adjustable HV and 3 ranges of 500, 5000 and 50000 counts per minute.

    Using a scintillation probe the meter easily saturates on the 500 cpm scale, and the 5k and 50k ranges are also overloaded with certain sources.

    So I thought of adding a 500k cpm range. I already read the manuals and associated schematics to find out how to do this.

    Ludlum model 2 and 3 offer about the same functionality and basically share the same PCB, circuit, knobs and switches. Depending on age and model there are certain differences, but a lot of the stuff and functionality is the same. Continue reading  Post ID 3185


  • Some rad links…

    Below are some interesting links about radiation (detection) that I have collected over time:

    Have questions about geiger counters, the CDV-700 or gammaspectrometry? Just go to these Yahoo groups:

    CDV700CLUB : The CDV 700 Club is a forum for like minded individuals that enjoy collecting, fixing up, and using geiger counters and other r

    GeigerCounterEnthusiasts : PAGE 2…for Archives go to PAGE1

    GammaSpectrometry : Gamma Spectrometry

    Want videos? Check out these awesome Youtube channels:

    http://www.youtube.com/user/antiprotons?feature=watch

    http://www.youtube.com/user/antiprotons?feature=watch

    Want pictures? Check out the Flickr Radioactivity pool: Continue reading  Post ID 3185