Hi friends,
I need AC voltage (0v to 450V) measurement circuit with C.
I need such types of circuits that directly measures ac voltage without converting it to dc.
I also requires code in c.
please post it..
#include "adc.h" ... adc_init(); adc_set_scale(450); adc_set_mode(ADC_MODE_AC); adc_start(); freq = adc_get_frequency(); volt = adc_get_voltage(); crest = adc_get_crest_factor(); power = adc_get_power(); pf = adc_get_power_factor(); spectra = adc_compute_fft(); adc_stop();
Show me what work you have done to solve the problem first. This is a professional forum ask questions in a professional manner, otherwise you are insulting people who take their time to read your question. Your query also has NOTHING to do with the Keil compiler or any relation to problems with using the C language with it.
Sorry, I do have experience with this subject however I don't see how this relates to the forum in any way.
Stephen
I also require code in c. then write it
if you get in trouble post the code you have written.
otherwise hire a consultant
Erik
If you need to ask this question, should you really be messing about with 450VAC?!!
450VAC has really nice peak voltages, making it quite dangerous to play with. 230VAC may hurt, but 400VAC three-phase systems normally gives burns - or kills.
There is this saying: If you have to ask, you are not up to the task.
My thoughts exactly!
At the very least, get a proffesional to provide safe hardware for you.
Hope that's not intended to be taken too literally.
Else, there is surely no point in this forum.
It is intended to be taken literally, when discussing high-voltage designs, high-power lasers, control of heavy machinery etc where human safety is at stake.
In most situations, a firmware or hardware error may kill a microcontroller or a couple of transistors, or blow a fuse in the PSU, so we are talking about relatively small amounts of money at stake. But some subjects requires that the developer do read up and collect the required knowledge _before_ starting out with the project.
hi again responders.
i got teh code to imulate 0-1000V it works great.
thx keelar.