https://github.com/mryndzionek/attiny3226_geiger
  
  
    ATtiny3226 Geiger counter 
    https://github.com/mryndzionek/attiny3226_geiger
  
attiny3226 avr-gcc geiger geiger-counter geiger-muller oled oled-display radioactivity u8g2 u8g2-library
        Last synced: 4 months ago 
        JSON representation
    
ATtiny3226 Geiger counter
- Host: GitHub
 - URL: https://github.com/mryndzionek/attiny3226_geiger
 - Owner: mryndzionek
 - License: mit
 - Created: 2025-03-08T19:16:03.000Z (8 months ago)
 - Default Branch: main
 - Last Pushed: 2025-03-26T22:00:43.000Z (7 months ago)
 - Last Synced: 2025-03-26T22:33:28.519Z (7 months ago)
 - Topics: attiny3226, avr-gcc, geiger, geiger-counter, geiger-muller, oled, oled-display, radioactivity, u8g2, u8g2-library
 - Language: C
 - Homepage:
 - Size: 986 KB
 - Stars: 0
 - Watchers: 1
 - Forks: 0
 - Open Issues: 0
 - 
            Metadata Files:
            
- Readme: README.md
 - License: LICENSE
 
 
Awesome Lists containing this project
README
          [](https://github.com/mryndzionek/attiny3226_geiger/actions/workflows/build.yml)

The goal of this project is to design a Geiger counter and
continuous radiation monitor in one device. This means two things:
 - low energy consumption, so batteries last for months of continuous monitoring
 - a display capable of displaying exact instantaneous radiation levels
Nice to have things:
 - measurement history (at least 10 minutes)
 - cumulative dose
## Schematic

## Building
At least 14.1.0 `avr-gcc` is required. Steps needed to build from source can be found in
[build.yml](.github/workflows/build.yml). [u8g2](https://github.com/olikraus/u8g2) needs to be
cloned into `external` subdirectory. Then the usual `CMake` routine can commence:
```sh
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DAVR_MCU=attiny3226 \
      -DAVR_PROGRAMMER=serialupdi -DAVR_PROGRAMMER_PORT=/dev/ttyUSB0 \
      -DMCU_FREQ=10000000 -DCMAKE_TOOLCHAIN_FILE=../toolchain-avr-gcc.make ..
make -j
```
Fairly recent [AVRDUDE](https://github.com/avrdudes/avrdude) is also needed in order to use
UPDI flashing via a USB-to-serial converter.
## Menu structure

## More info
The average current consumption with display turned off is ~200uA.
A set of 3 AAA batteries should last more than a year.