1 / 6
Gas meter detection via hall-sensor running on Tasmota — image 1
1 / 6

Gas meter detection via hall-sensor running on Tasmota

Order a print of this model

We calculate the final price from your selected file. You review and accept it before payment.

Saved on this device.

ESP32 - Tasmota implementation. Using Berry script. Hall-sensor to detect the rotating magnet

Rating
0 / 5
Likes
3
Downloads
19
Makes
0
Views
106
Reviews
0

Updated at source:

Model information

License
Open Community License v1

## Motivation
I have the BK-G4M Meter. The magnetic field is to weak to trigger an reed-contact.
Thus a hall-sensor ist used.

## Platform
The platform is running on Tasmota 15.2.0  and uses a berry script (see berry_Version_xxx.txt)

## Selection of the Analog input
--> main page --> Configuration --> AO GPIO32 --> ADC Input --> 1

## Running the Berry script
You need to add a file autoexec.be and copy the content of the berry_Version_xxx.txt file into the autoexec.be. 
--> main page --> Tools --> Manage File System 
--> Restart on the Main page. 

You can modify the berry script to your needs, i.e. translation to your language, change the threshold of the analog sensor for your meter, change the gas price, etc. 

## Needed electronic parts:

  • ESP32

  • KY-035

  • Suitable USB 5V DC supply

  • Optional green 5mm LED with suitable resistant.   - showing activity of the unit

  • Optional red  5mm LED with suitable resistant.      - showing hall sensor is detecting the rotating magnet

  • some wires, solder, etc. 

## Assembly

The ESP32 is screwed with 2 M2x4mm and the complete unit is mounted via a M5x20mm on the gas meter. 
The KY-035 is just moved in the space - no need for additional fixation.
The lid snaps in. Ready.  

## Printing

The parts are printed with an absolute dry PETG. If your PETG is stringing. Dry it otherwise the threads, snap in etc. will not work as intended or you need to rework causing additional effort for postprocessing.  

Have fun.

Just write if you need some help for making your gas meter "smart".

## Update
08.01.2026 --> Gaszaehler_LID_V2.3mf
                         + larger transition fit for LEDs
                         + Snap in nosses printable without support

Tags