Better AC sensing circuit for ADC conversion

Thread Starter

Hasan2019

Joined Sep 5, 2019
199
Based on some 300 post ago my understanding was that you wanted to sense True RMS AC?


Using a full wave bridge will give you average and not true RMS, so what did you want?

Ron
Yes, I was using both, but right at this moment I am talking about not to using any full bridge. No True RMS at this moment.
Circuit in post #224 is used and you can use code for TRUE RMS at post #255 option A.
 
Last edited:

drjohsmith

Joined Dec 13, 2021
1,613
Professor @drjohsmith It has been said several time to see my code in the post, but may be you are tired on watching same thing.
There is one formula to adjust the AC value, my 8 relay system ( not ZCD included) working fine now.

I have defined my relays like,
C:
// Relay pins (adjust as needed)
int relayPins[8] = {2, 3, 4, 5, 6, 7, 8, 9};
The calibration factor should be like here,

C:
// Calibration factor
float calibration = 0.52;   // Adjust after testing
NB: I hope you understand here,

I made a delay,

C:
// Delay between switching (ms)
unsigned long switchDelay = 1500;

// Track last switching time
unsigned long lastSwitch = 0;

Then I run a loop for relays and at the same time read AC voltage that it Vrms.
That's it.
sorry, some great snips there
is the code working then ?
 

drjohsmith

Joined Dec 13, 2021
1,613
Sure, it's working perfectly and I have tested with other code. In this code I have implemented tab voltages and corresponding Vrms AC and the loop recognize which relay will be active.
That's fantastic news you have your project working . Great to close a post with a working solution
Did you manage to finish it in time ?
Again well done you , looking forward to your next post .
 
Top