I've bought an eastron sdm120 KWH meter. It has a pulse output which is set to 1000pulse/kwh; However I can't seem to figure out how to count those pulses. The output on the modules has a + and - terminal. So I connected the - to the common ground with the ESP and the + to one of the GPIO ports of the ESP-12E. I've found a script which puts the specific GPIO into INT mode. The script is for a 'pulse counter' based on a phototransistor. However like I said I'm using the output from the module.
Anyone have some thoughts on the type of pulses would be generated by the SDM or how to find out. I've read about an open collector type, but don't know really how that works.
I'd like to count the pulses and have them send like every minute to Domoticz.
Any help appreciated.
KR,
Onno.