Today, we will use the STM32 Maple Mini to do an AC reading. In our example, well get the RMS value of the power grid. This is very useful for those who want to monitor the electrical network for the Internet of Things. We will then create an application using the computational power of the Maple Mini, apply an electronic circuit capable of allowing the acquisition of a 127Vac signal, as well as apply the root mean square (RMS) calculation on the samples.”

Link