Hello friends, I hope you all are doing great. Today, I am going to share the new Geiger Counter Library for Proteus Simulation. A Geiger counter is the classic radiation detector: a gas-filled tube on a few hundred volts that turns every gamma ray or beta particle passing through it into a click. The hobby Geiger counter kit puts the tube, its high-voltage supply, a speaker and an output pin for your microcontroller on one board. With this library you can run a full Proteus simulation of that kit, count its pulses with an Arduino, convert them to a dose rate and learn why radiation readings always jump around.

Figure: The Geiger counter simulation running: background, a glazed plate, a luminous watch dial and background again.
Updates

Geiger Counter Library for Proteus

Latest version: V1.0 (December 2026, this tutorial)

Related parts: Active Buzzer · AS3935 Lightning Sensor · I2C LCD 16x2

Helping Tools

The demo is a radiation monitor: an Arduino UNO V4.0 counts the pulses over a sliding minute, corrects them for the tube's dead time, shows the counts per minute and the dose rate in microsieverts per hour on a 16x2 LCD, lights a green, yellow or red LED and beeps a buzzer when the dose rate is high - while the simulation brings an old glazed plate and a luminous watch dial to the tube.

NOTICE: Our team has put a lot of effort into these small parts: the bodies, the animation and the pop-ups are all our own design, and you get them free. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the detector board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the Geiger Counter Library for Proteus Simulation:

Figure: The Geiger Counter Library for Proteus Simulation.

What Is a Geiger Counter?

The heart of a Geiger counter is the Geiger-Muller tube, or GM tube: a thin metal or glass cylinder filled with a low-pressure gas, with a wire along its axis. The wire sits at about 400 V against the wall. When a gamma ray or a beta particle passes through, it knocks an electron out of a gas atom; the strong field accelerates that electron so hard that it ionises more atoms, and within a microsecond an avalanche spreads along the whole wire. The tube conducts for a moment, the voltage across it drops, and the gas quenches the discharge again. Every particle gives the same big pulse - the tube does not tell you the energy, only that something passed.

Counting those pulses gives the count rate, usually in counts per minute (CPM). With a known conversion factor for the tube, the count rate becomes a dose rate in microsieverts per hour (uSv/h). For the M4011 tube of the common kit, the kit's own documentation uses 151 CPM per uSv/h; for the J305 the most used figure is 0.00812 uSv/h per CPM, about 123 CPM per uSv/h. Normal background radiation - from the ground, the building materials and space - is about 0.1 to 0.2 uSv/h, so an M4011 counts some 15 to 30 times a minute in an ordinary room.

The Geiger Counter Kit

The common kit is a blue board of about 108 x 63 mm, larger than an Arduino UNO. The tube is held by two clips along one edge. A 555 timer drives a transistor into a coil, and a diode-and-capacitor multiplier turns that into about 400 V, set with a small trimmer and checked at a test point. The tube's pulse switches a transistor; a second 555 stretches each count into a flash of an LED and a click of the speaker, and an op-amp feeds an audio jack. A three-pin header, P3, connects it to a microcontroller: GND, 5V and VIN.

VIN Is the Output

The name confuses almost everybody: VIN is not a supply input, it is the count output. It sits high at rest and goes low for each count. On the real kit it comes from the transistor through a 470 kohm resistor, so it is weak: read it with an interrupt on FALLING and a plain INPUT. With INPUT_PULLUP the microcontroller's own pull-up of a few tens of kilohms holds the pin above the logic threshold and the counts disappear - and a 3.3 V board may not see the pulses at all unless that resistor is changed to about 1 kohm.

Statistics and the Dead Time

Radioactive decay is random. The number of counts in a minute follows the Poisson distribution: if the average is N, a single minute gives N plus or minus the square root of N. Eighteen counts mean 18 +- 4, a 24 % uncertainty; 1,800 counts mean 1,800 +- 42, only 2 %. That is why a Geiger counter's reading jumps at background level and steadies when the rate is high - and why longer counting gives better numbers.

After each discharge the tube is blind for a short time while the gas recovers, its dead time - about 100 us for small tubes. At low rates that does not matter; at high rates counts are lost. The correction for a measured rate m and a dead time d is: true rate = m / (1 - m x d). At 1,000 counts per second and 100 us, one count in ten is lost.

Features of the Geiger Counter Library

  • A real-looking board: the kit at its true size with the tube in its clips, the high-voltage section, the timers, the speaker and the header; the count LED flashes and the tube glows at each count.
  • The count output: VIN low for each count, like the real kit.
  • Random counts: a Poisson stream from the dose rate, with the dead time of the tube.
  • Two tubes: the M4011 (151 CPM per uSv/h) and the J305 (123 CPM per uSv/h).
  • Sources: a DEMO tour (the room, an old orange-glazed plate, a vintage luminous watch dial, the room again) or a STEADY dose rate.
  • Fast time: TIMESCALE 60 makes one simulated second a minute, so a whole session of measurements fits in a few seconds; TIMESCALE 1 is real time.
  • A pop-up: the counts of the last minute, the dose rate, the sources, the lost counts and the dose so far; graphs, an event log and a check page.
  • A complete package: about 2.7 MB with the library, our I2C LCD, resistors, LEDs, buzzer, our Arduino UNO V4.0 and the demo, without the source code of the model.

The Geiger Counter in Proteus

The device is GEIGERCOUNTERTEP in TEPGEIGER.LIB, under Modules > Sensors, with the model TEPGEIGER.DLL. Search GEIGER or radiation in Pick Devices. Its three pins are the header P3 of the real board. Four properties set it up: TUBE (M4011 or J305), PROFILE (DEMO or STEADY), DOSE (the dose rate for STEADY) and TIMESCALE (60 for fast time, 1 for real time).

Figure: The Geiger counter board.

Download Geiger Counter Library for Proteus Simulation

Click the button below to download Geiger-Counter-Library-for-Proteus-v1.0.zip (about 2.7 MB, without the source code of the models):

Geiger Counter Library for Proteus V1.0
  • README.txt: installation, the demo, the wiring, troubleshooting and the limits of the simulation.
  • Proteus Library Files: TEPGEIGER.LIB, TEPI2CLCD16X2.LIB, TEPRESISTOR.LIB, TEPLED5MM.LIB, TEPBUZZER.LIB and ArduinoV4TEP.LIB.
  • Proteus Model Files: TEPGEIGER.DLL, TEPLCD.DLL, TEPRESISTOR.DLL, TEPLED5MM.DLL, TEPBUZZER.DLL and TEPARDUINO.DLL.
  • Arduino Code: the demo sketch (Wire only).
  • Proteus Simulation: the demo project, its HEX file and copies of the DLLs.

No Proteus yet? Read How to Download and Install Proteus 7 and 8. New to libraries? Follow How to Install a New Library in Proteus.

How to Install Geiger Counter Library for Proteus Simulation

  1. Close Proteus and extract the whole zip file, for example to your Desktop.
  2. Copy the files from Proteus Library Files into the LIBRARY folder of Proteus.
  3. Copy the files from Proteus Model Files into the MODELS folder.
  4. Delete TEPGEIGER.IDX from the LIBRARY folder if it is there.
  5. Start Proteus, press P and search for GEIGER.

Proteus Simulation of a Radiation Monitor

The demo uses an A4 sheet with our Arduino UNO Library for Proteus V4.0. The Geiger counter (U1) is the big board at the top right - at its true size it is larger than the UNO, just as on a real bench. Its VIN goes to D2, an interrupt pin. A 16x2 LCD from our I2C LCD 16x2 Library for Proteus sits on the I2C bus at 0x27; three LEDs on D5 to D7 show the level - green normal (under 0.5 uSv/h), yellow raised, red high (5 uSv/h and more) - and BZ1 from our Active Buzzer Library for Proteus on D8 beeps while the level is high. The Arduino's monitor is built in, the same window as our TEP Serial Monitor Advance for Proteus. Open Geiger-Radiation-Monitor-ArduinoUnoV4.pdsprj.

Figure: The whole simulation on an A4 sheet.

The Sketch

The interrupt does as little as possible - one count per falling edge:

void onCount() { counts++; }                                 // one count = one falling edge on VIN

The pin is set up as a plain input, because the real kit's output must not be pulled up:

  pinMode(GM, INPUT);                                        // plain INPUT: no pull-up on the count output

The main loop splits the last minute into 10 slices, so a fresh counts-per-minute comes every tenth of a minute instead of once a minute. Then it corrects the dead time and converts to uSv/h:

    cpm = measured / (1.0 - cps * DEAD_S);                   // the dead-time correction
    usvh = cpm / CPM_PER_USVH;

One constant links the sketch to the simulation's fast time. With TIME_SCALE = 60 a slice lasts 100 ms of simulated time, which the part treats as 6 seconds; on a real counter you would set it to 1:

const unsigned long TIME_SCALE = 60;                         // fast time: a simulated second is a minute (1 = real time)

Geiger Counter Simulation Results

Open the project and press Run. The demo runs 5.6 simulated seconds - 5.6 minutes in fast time - and took about 2 minutes on our PC with the pop-up open and the pictures being taken. Click U1 for its pop-up. Every number below comes from one simulation run, the demo exactly as it ships. Because the counts are random, your own run will show slightly different numbers around the same averages.

Background

For the first minute and a half the tube only sees the room: 0.12 uSv/h, which the M4011 turns into 18 counts per minute on average. The monitor prints 16 CPM +- 4 after 0.6 minutes and 18 CPM +- 4 after 1.2 minutes - 0.119 uSv/h, NORMAL - and the LCD shows "18 CPM NORMAL" with the green LED on. The pop-up at 1.3 s shows the slices of the last minute as single counts here and there, 17 counts measured against 18 expected: at background level one minute is not enough for a steady figure, exactly as the statistics say.

Figure: Background radiation.

An Old Glazed Plate

At 1.5 minutes an old orange-glazed plate is brought to the tube - the orange glazes of some old tableware contain uranium. The dose rate jumps to 2.5 uSv/h, but the reading climbs over a whole minute, because the sliding window still holds the quiet slices: 95 CPM at 1.6 minutes, 251 at 2.2 and 373 CPM +- 19 at 2.6 minutes - 2.472 uSv/h, RAISED, and the yellow LED. The pop-up at 2.8 s shows a full minute of plate counts: 375 CPM, 2.483 uSv/h, against 378 expected, and the tallest slice holds 9 counts; the LCD reads "379 CPM RAISED". Not one count was lost to the dead time yet.

Figure: The glazed plate.

A Luminous Watch Dial

At 3 minutes the plate makes way for a vintage watch with a luminous dial - old dials were painted with radium. Now the tube sees 25 uSv/h. The CPM rise through 1,093 and 2,776 to 3,794 CPM +- 61 at 4.2 minutes: 25.125 uSv/h, HIGH!, the red LED on and the buzzer beeping. The pop-up at 4.09 s shows the slices as a solid red comb, 3,793 CPM against 3,775 expected, and the first losses: 29 counts fell into the dead time, 0.6 %. The sketch adds them back with its correction - at this rate it changes the result by about 0.6 %, at 500 uSv/h it would be more than 10 %. The count LED on the board flashes without a break and the tube glows.

Figure: The counter at work.
Figure: The simulation in the workspace.
Figure: The watch dial.

Back to Background

At 4.3 minutes the watch is taken away. Again the sliding minute needs its time: 2,222 CPM at 4.6 minutes, still 335 CPM at 5.2 minutes while the last watch slices leave the window, and then the background is back - the LCD reads "19 CPM NORMAL 0.126 uSv/h" at 5.6 s, the green LED on. The monitor's running dose has reached 0.606 uSv for the whole session, most of it from the minute and a half next to the watch dial.

Figure: Back to background.

The Graphs, the Event Log and the Check Page

The Graphs page plots the true dose rate at the tube, the measured counts per minute - a step that lags the dose rate by one minute because it is a sliding count - the counts so far and the share lost to the dead time. The Event log lists every change at the tube. The Check page sums up the run: the supply at 5.00 V and the tube at 400 V, inside the M4011's plateau of 380 - 450 V; 5,574 counts on VIN, the active-low 80 us pulses, and 19 CPM measured against 18 expected at the end; the statistics of that last minute, 19 +- 4, a 23 % uncertainty; 34 of 5,608 counts lost in the 100 us dead time, 0.61 %; and the time scale, a simulated second for a real minute.

Figure: The Graphs page.
Figure: The Event log.
Figure: The Check page.

The Arduino's built-in serial monitor prints a line every half minute: the simulated time and the real minutes it stands for, the CPM with its +- square root, the dose rate, the level and the running dose in uSv. Reading the lines one after another shows the sliding minute at work - the slow climb after each change and the slow fall after the watch dial.

Figure: The Arduino's monitor.

Counts per Minute, Microsieverts and Sieverts

The sievert measures the effect of radiation on the human body. One microsievert per hour, kept up for a year, gives about 8.8 millisieverts; the typical natural background is around 2 to 3 millisieverts a year. A Geiger counter does not measure the sievert directly - it counts particles - so the conversion factor only holds for the gamma energies it was calibrated with, usually from caesium-137 or cobalt-60. For a hobby monitor that is fine; for real safety work a calibrated, energy-compensated instrument is needed.

Fast Time

Real background counting is slow: at 18 counts a minute you need several minutes for a steady value. The simulation offers fast time: with TIMESCALE 60 the part produces in one simulated second what the tube would count in a minute, and it shortens the dead time and the pulse by the same factor, so the losses at high rates stay exactly as they would be. The sketch's TIME_SCALE constant tells it the same, so all of its figures - CPM, uSv/h and the dose in uSv - are in real units. Our AS3935 Lightning Sensor Library for Proteus uses the same idea for its storm.

Try It Yourself

  • Click U1 while the simulation runs and use the chips: Background, Glazed plate, Watch dial and Strong source put a source at the tube.
  • Choose Strong source: 500 uSv/h is about 75,500 CPM, and the check page shows the counts the dead time swallows.
  • Set TUBE to J305 and change CPM_PER_USVH to 123 in the sketch: the CPM drop, the uSv/h stay the same.
  • Set PROFILE to STEADY and DOSE to 0.12, and watch the statistics: the CPM wander around 18.
  • Set TIMESCALE to 1 and TIME_SCALE to 1: real time - be patient.

Ideas to Extend the Demo

  • Send the CPM to a radiation-monitoring network with an ESP32 every minute.
  • Log the dose rate for a day and plot the small daily changes of the background.
  • Add a second tube and count only the coincidences, which cuts the background.

Your Own Sketches

The demo sketch is in the zip file, and you can change it in the Arduino IDE. New to Arduino? Start with our Arduino Tutorial for Beginners. Export the compiled binary, and set the UNO's PROGRAM property to the new file. Our guide on How to get the HEX file from Arduino shows you where the file ends up.

Things to Know Before Using a Real Geiger Counter

  • High voltage: the tube runs at about 400 V - keep fingers off the board while it is on.
  • Fragile tube: the M4011 is glass; do not press on it, and handle it by the ends.
  • Alpha and beta: the M4011 does not see alpha particles, and its wall stops most beta.
  • Count long: at background level, count for at least a few minutes before you trust a reading.
  • Sources: old glazed ceramics and luminous dials are real low-level sources - keep them out of reach of children and do not grind or eat from them.

Troubleshooting

  • No counts at all: VIN is not on an interrupt pin, the sketch waits for RISING, or (on the real kit) INPUT_PULLUP is set.
  • The CPM jumps a lot: that is the statistics - count over a longer window.
  • The CPM is 60 times too high or too low: the sketch's TIME_SCALE does not match the part's TIMESCALE.
  • At very high rates the counts fall behind: the dead time - apply the correction.
  • The part is not simulated: TEPGEIGER.DLL is missing from MODELS and from the project folder.

Limitations of the Simulation

  • The count output, the tubes' conversion factors and plateaus and the board follow the kit and its tube tables; the board is our own drawing.
  • Our own figures: a 100 us dead time, an 80 us output pulse, 30 mA from 5V, the counting stops below 4.0 V, and the dose rates of the DEMO sources.
  • Not modelled: the 400 V supply itself, the plateau and ageing of the tube, the energy dependence, alpha and beta, and the 470 kohm output resistor - the simulated output drives strongly low.
  • Arduino is a name of Arduino; this library is not made or endorsed by Arduino, Labcenter or the maker of the kit.
  • Tested in Proteus 8.5 in November 2026 (the demo as shipped). Proteus 7 is not supported.

So, that was all about the Geiger Counter Library for Proteus Simulation. I hope it helps you understand what those clicks mean and how to turn them into honest numbers. If you have any questions, ask in the comments and I will help you out. Till the next tutorial, take care and have fun!