Tool description

This tool reads the gamma spectrum from a RadiaCode radiation detector over Bluetooth and plots it in your browser. Choose the current spectrum, which you can reset to start a new measurement, or the accumulated spectrum, which the device collects over the long term. The chart plots counts against energy or channel number, on a logarithmic or linear scale.

The spectrum refreshes on its own every few seconds, or only when you ask. Every channel is listed in a table with its energy and counts, which you can sort to find the strongest peaks and export as CSV or JSON.

Features

  • Current and accumulated spectra
  • Energy (keV) or channel on the horizontal axis
  • Logarithmic or linear vertical scale
  • Refresh every 5, 10, 30 or 60 seconds, or on request
  • Measurement time, total counts and average count rate
  • Reset the current spectrum to start a new measurement
  • Channel table with CSV and JSON export, and a JSON file with the calibration

How it works

The tool asks the device for its spectrum and decodes the reply. Newer firmware compresses the spectrum by storing each channel as the difference from the one before, and the tool expands it again. It converts channel numbers to energy with the calibration coefficients that come with the spectrum, and shows the formula with your device's coefficients under the chart.

Everything happens in your browser, and the spectrum is not sent anywhere.

Tips

  • Use the logarithmic scale to see small peaks next to large ones.
  • Resetting clears the current spectrum on the device itself. The accumulated spectrum is not affected.
  • A RadiaCode accepts one Bluetooth connection at a time. Disconnect the phone app before connecting here.
  • Web Bluetooth works in Chrome, Edge and Opera. Firefox and Safari do not support it.