I have what appears to be a simple project, to measure mains current (240vac) in the range 0 - 50 A ac, create an adjustable trigger point within the software, and energise a relay once the measured current exceeds the trigger point. The relay will switch low current at 24vdc.
The measuring device at present is a clamp-on current transformer producing about 1 vac at 50 A, so a typical trigger point will correspond to about 0.5 vac (as measured by my digital voltmeter).
Ultimately, and as my skills with the Arduino develop, I would like to have a web based interface so I can monitor the current drawn, and maybe log/integrate it...but let's not run before walking!!
I was initially going to build a common emiter transistor amplifier to bring the input signal up to a reasonable 3-5 vac level before rectifying it and connecting to an analog input pin of the Nano, but became intrigued by others' solutions to similar problems, suggesting using the ADC of the Nano to 'read' the input waveform and thereby do the signal processing in software. Given a 50Hz input frequency can the Nano read an ac signal fast enough to approximate the RMS value of the input? Bear in mind that accuracy is not as important as repeatability - see project description below, for those interested.
So there it is, one simple question with a lot of padding around it, all in context I hope!
Extra info: The project revolves around control of an electric heating system in a flat.
The heating system comprises a 6 kW electric boiler. The maximum demand in the flat (before the supply trips at the meter 3 floors below!) is 12 kW (about 50A). The device I want to build will shut off the heating by using the relay to trick the room thermostat into believing the desired room temperature has been reached, and the relay will do this once the power consumed by the other electrical appliances exceeds 6kW, and will de-energise the relay once consumption falls below a predetermined hysteresis value of, say 2kW or 8A.