Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Recording of energy usage data on M30 to MicroSD
#1
Hi Everyone

Thank you to Kincony for the great product, I have a few questions, if anyone can help me please? :-) 

Any suggestions as to what is the best way to set up the M30 for recording usage data to the microsd as a standalone unit? 
There will be no internet access for the unit while it is monitoring the energy usage and I would like to be able to record the usage with time stamps and be able to review it once the installation is complete. 
I have various sizes of CT Clamps (30,60 & 100A) so need to be able to specify the size of the clamp installed per port and would also like a WebUi to check that everything is working and set times etc if necessary. 

I have been investigating using ESPHome but assume that I could use Arduino IDE as well to do this, what would you recommend and do you have any sample code I could use?

I have been struggling to work out the pinouts for the Microsd card, can you tell me if these are the correct pinouts? 

sd_card:
  cs_pin: GPIO5  # Adjust CS pin based on your hardware
  spi_id: sd_spi
  spi:
    clk_pin: GPIO18
    mosi_pin: GPIO23
    miso_pin: GPIO19

I have attached a copy of the ESPZHome YAML code I have been working on. 
All suggestions welcome.


Attached Files
.zip   M30 ESPHome Firmware with saving to MicroSD.zip (Size: 3.19 KB / Downloads: 50)
Reply


Messages In This Thread
Recording of energy usage data on M30 to MicroSD - by sc00bs - 02-12-2025, 06:15 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)