Safety: never go looking for radioactive sources. Everything here works with the simulator and with the background radiation that is around us anyway.
What you build
One circuit carries the whole course. Every lesson opens on the same wiring and changes only the sketch:
- The tube: a Geiger counter board with a J305 tube. Its pulse output (the pin printed VIN) drops low for each count and is wired to pin 2, interrupt 0.
- The screen: a 128x64 SSD1306 OLED on A4 and A5.
- The log: a microSD module on the SPI pins with its select on 10.
- The clicks: an active buzzer on A0.
- The brain: an Arduino Uno.
How it works
Counting. Each count is a pulse of about 100 microseconds, far too short to catch by reading the pin now and then. An interrupt on the falling edge adds one to a counter the instant it happens, and the loop only reads the total.
Random counts. Decays are a Poisson process: count N and the true average could easily be N give or take the square root of N. 16 counts is 25 percent uncertain, 400 counts only 5 percent. The logger keeps a running minute of twelve five-second buckets and prints every rate with its plus or minus.
Background. Cosmic rays, radon and potassium-40 give a tube of this class (the J305, like the SBM-20) about 10 to 40 counts a minute everywhere.
Dose. Dose rate in uSv/h is CPM times the tube's factor: about 0.00812 for the J305, roughly 123 CPM for 1 uSv/h. It is an estimate, good to tens of percent, because the factor depends on the tube and the radiation. Background is about 0.1 to 0.2 uSv/h; a steady 1 uSv/h would be about 8.8 mSv a year.
Logging. Every 30 seconds a row of raw counts goes to the card, opened and closed each time so a power cut loses at most one row.
Clicks and alarms. Every count is a 20 ms click. Over 1 uSv/h, measured over the running minute, an alarm sounds, and it clears only under 0.5 uSv/h so it never flaps.
The course
Build a radiation logger takes six lessons:
- Counts per minute: interrupts, polling's failure, and the square root of N.
- Background: a running minute with its uncertainty.
- Dose math: CPM to uSv/h, another tube's factor, and a year of it.
- Logging: raw counts to microSD, read back, and no card.
- Clicks and alarms: clicks, mute, and an alarm with two levels.
- Project: a radiation diary: places, rows, an alarm that names the place, and today's total.
Every step but the last is checked against the running circuit.