<div dir="ltr"><div>Due to the hazards of playing with anything AC, consider other options:</div><div>How about a Hall Effect sensor and a spinning magnet on the pump? Or a spinning disc, LED and photo sensor.</div><div><br></div><div><br></div><div>If I was going to be actually measuring power then I'd probably use a YoctoWatt. These are isolated power meters with both USB connectivity or can also log into built in flash. Very useful items for various logging. <br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 17, 2021 at 7:30 PM Starr Moffatt <<a href="mailto:zl3custarr@gmail.com">zl3custarr@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi All,<br>
<br>
Thank you for including me as a member.<br>
<br>
I was the person that asked for help regards using the Raspberry Pi for <br>
logging electrical data.<br>
<br>
As I thought I might be chatting only to a few people, rather than the <br>
whole group, I did not have anything prepared.<br>
<br>
Thank you for the suggestions. As mentioned it was too much for me to <br>
remember everything so please also inform me using this list. (Or use my <br>
email address  <a href="mailto:zl3custarr@gmail.com" target="_blank">zl3custarr@gmail.com</a> )<br>
<br>
Please see below more info.<br>
<br>
USING A RASPBERRY PI FOR LOGGING ELECTRICAL QUANTITIES<br>
17 AUGUST 2012<br>
<br>
The idea for this came about at my brothers place where it was thought <br>
that maybe due to an “unseen” water leak the water pump would be <br>
operating at “regular” intervals and therefore consuming electricity.<br>
<br>
For this to be checked the best place to monitor the pump circuit is at <br>
the switchboard.<br>
<br>
A clip on a.c. current sensor would be the best option for detecting <br>
when the pump was operating.<br>
<br>
For this to be logged, the current sensor could drive a 4N26 opto <br>
isolator along with a storage capacitor arrangement on its output, to <br>
provide a constant signal to the Raspberry Pi’s input while the current <br>
was flowing to the pump. Note this would not provide a value of current, <br>
instead just the indication that the pump was on or off.<br>
<br>
The Pi would be required to log this on/off state, at regular intervals, <br>
say 1 minute, along with a time/date stamp. Therefore the Pi would need <br>
to populate a suitable spread sheet with this data.<br>
Mark, I think you had some suggestions on this so I would appreciate you <br>
written comments.<br>
<br>
Peter Harris suggested I look at Openenergy Monitor which I have done <br>
and I have found a suitable circuit for the current sensor arrangement. <br>
Thank you.<br>
<br>
Another idea that I am looking at is to be able to check the times that <br>
a water heating circuit is enabled. This would only need a 230V coil <br>
relay with a NO contact connected between a Pi supply and one of its <br>
inputs. This would also require another column to be populated in the <br>
spread sheet.<br>
<br>
In the future:<br>
I am also thinking that it may be of use to record the values of current <br>
and voltage. Again a spreadsheet would be needed which could also have <br>
columns for power and, using integration, kWh. I guess an Arduino would <br>
be simpler as it has built in A to D conversion, however as I already <br>
have the Pi I will persevere with it at this stage. Just looking at the <br>
drawing for the current sensor for the Arduino; <br>
<a href="https://learn.openenergymonitor.org/electricity-monitoring/ct-sensors/files/Arduino_AC_current_input_A.png" rel="noreferrer" target="_blank">https://learn.openenergymonitor.org/electricity-monitoring/ct-sensors/files/Arduino_AC_current_input_A.png</a> <br>
<br>
it looks as if the software determines the peak value and from there <br>
calculate the RMS value. I assume the voltage RMS value will also be <br>
calculated using the peak value as well. I have heard that the scan rate <br>
of the Pi is slower than the Arduino so I wonder if this would have a <br>
bearing  on the Pi’s ability to determine the peak value.<br>
<br>
<br>
<br>
Cheers,<br>
<br>
Starr Moffatt<br>
<br>
<br>
_______________________________________________<br>
Chchrobotics mailing list <a href="mailto:Chchrobotics@lists.ourshack.com" target="_blank">Chchrobotics@lists.ourshack.com</a><br>
<a href="https://lists.ourshack.com/mailman/listinfo/chchrobotics" rel="noreferrer" target="_blank">https://lists.ourshack.com/mailman/listinfo/chchrobotics</a><br>
Mail Archives: <a href="http://lists.ourshack.com/pipermail/chchrobotics/" rel="noreferrer" target="_blank">http://lists.ourshack.com/pipermail/chchrobotics/</a><br>
Meetings usually 3rd Monday each month. See <a href="http://kiwibots.org" rel="noreferrer" target="_blank">http://kiwibots.org</a> for venue, directions and dates.<br>
When replying, please edit your Subject line to reflect new subjects.</blockquote></div>