PMM (Pico Mains Monitor)


Author Message
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5058
Posted: 08:05am 23 Oct 2021      

jpg


png



png looks better, even at 100% quality of jpg



Pico, LCD and 6 components....
And a lot of math...

thanks Peter, especially for the ADC function.

The code runs 3 levels interrupts
top level: sampling (machine code, Peter does all that)
lower level: interrupt buffer full
lowest level: timer interrupt (refresh screen every second)

What I still have to do:
- implement RTC (I now enter date and time, but the pico time$ is not really accurate, need to add a DS3231).
- save events to SD card (complete ADC samples array, so you can actually analyze what went wrong, a single peak, or constant level, or outage).

Once I have a publish-able version (with comments) I will publish here.

Volhout
Edited 2021-10-23 18:08 by Volhout