Specifications
Parameter | Description |
---|---|
Input voltage | Usb-C cable, Header 4-6v, Direct 3.3v |
Current | Wifi: 150-250mA, Radio Off: 44mA, Only HV psup 4mA, Deep sleep 70uA |
Communication | 2.4ghz WIFI, Uart TTL, Uart over USB |
Baudrate | 115200 |
PCB size | 31x119mm |
Case size | 30x35x121mm |
Serial port control commands
To reconfigure device settings you need to connect the eikgeiger to a computer with a serial terminal (I recommend to just use the Arduino Program, but any serial terminal should work) When you want to configure a value you use two characters plus a number. So to set the PWM frequency to 2000hz, you would write PF2000 in the terminal and send. Some commands need a specific number, e.g to factory reset you must transmit FR9999. See the github page for serial command documentation
Description
The pcb has one pinheader (J5) which can be used for 1 x i2c or 2 x Onewire io, and one header (J10) with 1xGpio, and 1x mosfet open collector for eg a clicker. A piezo buzzer with 5mm pitch can be directly soldered in the header holes. It is also possible to split out the 5v from the usb to insert an ebay generic lipo charger/powersupply to make it battery driven with usb charging.
It also implements an integrated FTDI chip to get serial over USB, and a transistor based rts#/dtr# pulldown function for the boot pin on the ESP (shamelessly stolen from the weemos d1 mini design) so it allows for automatic programming over USB without pushing the boot pin.
Homeassistant Implementation
To add the sensor in home assistant, you can use the following YAML sensor
sensor:
- platform: rest
name: EIK_Geiger
resource: http://<IP-Address>/cpm
json_attributes:
- "data"
value_template: "OK"
- platform: template
sensors:
cpm:
value_template: "{{ state_attr('sensor.EIK_Geiger', 'data')['cpm'] }}"
unit_of_measurement: "cpm"
cpm_m:
value_template: "{{ state_attr('sensor.EIK_Geiger', 'data')['cpm_M'] }}"
unit_of_measurement: "cpm_avg_m"
cpm_h:
value_template: "{{ state_attr('sensor.EIK_Geiger', 'data')['cpm_H'] }}"
unit_of_measurement: "cpm_avg_h"
raw_volt:
value_template: "{{ state_attr('sensor.EIK_Geiger', 'data')['raw_volt'] }}"
unit_of_measurement: "raw_voltage"