Esp32 based simple fake geiger counter intended for larping.
This repository contains:
- C++ code for esp32
- Project files for platformio
- 3D printable models of container (in few parts) with holes for the esp32 microcontroler and all used sensors
- Instruction on how to setup the fake geiger counter
- ESP32
- Breadbord
- Potentiometer
- Speaker
- Amplifier
- Diode
- Connecting cables
- Servomotor
Links to parts I used
ESP32 can be easily powered by a powerbank to be portable.
Connect peripherals to esp using connecting cables and breadboard
Part Pin | ESP32 Pin |
---|---|
VIN ( |
3V3 |
GND/VOUT (ussually |
GND |
Data (often |
D15 or any other ADC (Analog-to-Digital Converter) pin |
Diode legs | ESP32 Pin |
---|---|
Short leg | GND |
Long leg | D22 or any other free data pin |
Part Pin | ESP32 Pin |
---|---|
VIN ( |
3V3 |
GND/VOUT (ussually |
GND |
Data (often |
D18 or any other free data pin |
Part Pin | ESP32 Pin |
---|---|
VIN | 3V3 |
GND | GND |
A+ | D23 or any other free data pin |
A- | GND |
SD | Unused in this project, leave unconnected |
Speaker Pin | PAM8302 Pin |
---|---|
+ | |
- |
Example ESP32 Wroom PINout diagram - while order and placement on the controller are not always the same between manufacturers, pin technologies and characteristics will.
The code itself does not need any changes other than seting correct pins to potentiometer, speaker, diode and servo motor. It can be easily built and uploaded to ESP32 using Platformio extension for VsCode. Quick tutorial on how to use it from Dave's Garage YT channel. Once uploaded the code will run automatically every time when powered on by a charging cable or a powerbank. It does not need to be connected to a computer to work.
Speaker will emit clicks based on potentiometer's input value. The higher the value, the higher the click volume range and the frequency of click. Algorithm inspired by this youtube video.
This code, in it's current state, generates simple speaker clicks so they will sound a little bit digital.
3D model had been created for the linked parts. It has speaker holes for sound transmission on the side, hole for a diode and a servomotor dial and it's screws on the front. On the bottom it has a hole through with power cable can be connected to esp32. It is ment to be a base for holding the esp32 parts, that can be customized. You can add some buttons and other gizmos as you please.