as moderator could you please move my user category up because it say’s I have got to wait 9 hours before I can post again.
Thanks
George
Weighing the Ikea adaptor with an Ikea scale it is approximately 95g.
I believe the Ideal Power adaptors are around 250g.
Could you please provide the workings for say the 158 constant of 14.375V no load as both constants you calculated are about 1.5 to 2.0% different to my calcs.
Edit: Just 8 hours now before I can post to the Discourse forum again.
Edit: Just 4 hours now.
You are a “Basic User” - and I didn’t think that restriction applied to you.
It is very clearly NOT a true transformer, which is what I suspected all along. So I’m afraid it can’t be used to measure the mains voltage. It will in all likelihood give a constant output irrespective of the mains voltage.
A page with all the theory for calculating the calibration coefficients is in the ‘Learn’ section. I was guessing and rounding numbers because there was no point in being accurate as you didn’t have any reliable information about your transformer (which turns out to be not a transformer after all - at least, not one operating at 50 Hz!).
They are not nearly as common as the d.c. regulated or unregulated sort. I have/had one that came with a router (I think - this was a long time ago), but that’s the only one I’ve had apart from OEM ones.
12V domestic halogen lamps (MR16 downlights for example, or many of the table lamps sold by Ikea) often run off 12V AC and almost exclusively now, use an electronic “transformer” (like this: https://www.bunnings.com.au/hpm-12v-downlight-transformer_p4390263). The first generation used Iron core transformers but they were prone to overheating, which combined with being chucked in a roof space sitting on paper faced gyprock under fibreglass insulation made them a significant fire hazard (at least here in Australia).
Needless to say, these electronic transformers are totally useless for monitoring voltage as required by an emonTx
Yes that’s where I got my AC - AC adapter from but as you say they are not suitable for monitoring voltage.
Seems like the correct adapters are quite rare and a big majority of households simply don’t have them.
If you were to take your lighting “transformer” apart, what I think you’d find is a rectifier providing a d.c. supply at possibly 300 V or so, and that would feed an oscillator designed around a ferrite transformer, quite likely working somewhere in the 20 - 25 kHz region so as to be above the normal hearing range and high enough to be able to use a very small (and light) magnetic core, but low enough to keep the losses under control, and there would be a high current, low voltage secondary winding that feeds the lamp. The lamp won’t mind that frequency, and there will be almost zero flicker as the filament won’t cool significantly between alternate half cycles.
And again I’m guessing, but the reason you could not read an open-circuit voltage was because it detected the lamp wasn’t there, and shut down to save energy.
Because we want a faithful replica of the mains wave, that clearly won’t fit with our requirements.
They are not that rare, but not easy to source, and a better, cheaper and legal way to get a safe representation of the mains wave would be nice. A small current transformer fed by a multiplier resistor has been suggested, but until an enterprising individual or firm can enclose one in a suitable housing and obtain the necessary certifications for all the countries where it might be used, that’s only a viable solution for personal use by a home constructor.
(And then, the emonTx would always need a separate 5 V d.c. supply, meaning two power outlets are required - unless one unit incorporated both this and a 5 V d.c supply).
I assume you are aware that there are “complete Energy monitoring systems” available for less than the price of these adapters. That’s why in an earlier post I said I was ordering an OEM adapter more out of curiosity.
I note you state they should give 11.6V ±3% on no-load for 240V.
Mine is actually reading approx 10.9V at approx 234V supply so it’s about there taking into account tolerances on all the meters involved.
But I have either built the circuit wrong or I am missing a calibration somewhere because the Vrms is around 568V. I thought I had seen a calibration value for the OEM adapter on the site but I need to look again so at the moment I have the default sketch value at 234.26.
Below is the transition from off to on with a 2s loop:
@Robert.Wall checking the Arduino’s voltage for 3.3V and 5V shows 3.3V and 5.07V with my meter so little or no margin of error / calibration there.
I’m now sure that my original Ikea adaptor is AC - AC because it’s ‘clearly’ marked secondary as 11.5 ~ and with a load, i.e. lamp switched on, I get an AC reading and no DC reading from the meter.
It’s just that it doesn’t operate without a load. The AC values range from 6 to 8V with the lamp connected.
If the AC adapter could be hooked up to a stable load would it be possible to work out mains voltage?
No joy with the sketch and the OEM, performs like the Ikea but more stable and Vrms nothing like the real values.
@Robert.Wall after I had got the OEM running I thought I would check the Ikea.
When I was wiring up the Ikea I noticed Serial Monitor kicking out values around 270V before I had connected all the wires.
I had AC hooked up to R2 but no AC for R1. With a calibration figure of 200 these are the figures I am getting. Pretty stable, but I would say no as stable as the OEM. When I disconnect power the value immediately drops to 40V and within 18s it’s down to about 1V as the capacitor discharges. Does this give you any more clues what the Ikea AC - AC is when the circuit works without AC connected to R1?
The weight of the Ikea power supply, and the fact that it gives no output without a load connected makes me almost certain that it is indeed a high frequency switched mode device. Without access to more test instruments, I’d guess that the output is probably not a sine wave, but probably closer to a square wave, and I’d stand by my guess that the frequency is a little above the upper limit of hearing - in the 20 kHz - 30 kHz area.
Actually during further tests today I did read 0.6V AC with no load. Not quite the 10.9V from the OEM without load but some value nonetheless.
I’ll post below a longer record of OFF - ON - OFF (1s loops in Serial Monitor).
Do the Vrms figures suggest supplyVoltage is available from the Ikea or they are just appearing from nowhere?
They are not appearing from nowhere, but I have serious reservations about the “Vrms” part. I think there are good reasons to suspect that the output voltage of the Ikea device is regulated, meaning that it will be sensibly constant over a range of input voltages. If you want to measure the rms value of the mains voltage, it is essential that the Arduino receives an exact replica in every respect of the mains wave, save that it is reduced in amplitude, but by a constant proportion.
Thanks @Robert.Wall I read the Electronic transformer article and some other stuff but even Vrms is pushing my limits, never mind sine waves and the like.