AC voltmeter using pic16f877a and LCD

General discussion on mikroBasic.
Post Reply
Author
Message
sunny
Posts: 44
Joined: 26 Mar 2011 07:15

AC voltmeter using pic16f877a and LCD

#1 Post by sunny » 14 May 2011 18:32

Hi Alll...
i am going to make an AC volt meter using pic and lcd...
almost all the design and software is ready and working conditions under here...
that meter takes from 0 to 5 V DC.
if there is 2.5 V then meter shows reading of 250 volts and if there is 4.2V DC then meter shows 420V AC.... and so forth...
problem is that how to convert AC 220 volts into 2.2 volt DC...
and this converting circuit should be so sensitive that takes 231V ac and converts them in 2.31V DC...
i used resistor voltage divider network...
100K + 1K on 220 volts...it gives 2 volts across 1K but that not works well, because a minor change in 220V makes my reading so far...
so give me some solution.
request to alllll.

orpheedulogis
Posts: 240
Joined: 16 Jan 2010 22:26

Re: AC voltmeter using pic16f877a and LCD

#2 Post by orpheedulogis » 16 May 2011 22:41

I think you will have many problems if you try directly use 220V :roll:

First it would be better you use complete isolation between PIC solution and 220V (not same ground)
Second it's quite difficult to do good ADC conversion: you need perfect regulators, correct PCB ... even if you do this, you will see PIC will give you different value and you have to make software approximations.

For ADC I use LT1990. The advantage is that inputs are isolated.

sahu
Posts: 85
Joined: 11 Apr 2010 19:37

Re: AC voltmeter using pic16f877a and LCD

#3 Post by sahu » 24 Jul 2011 18:34

i think he want ADC calculation .i want also ..
SAHU

sahu
Posts: 85
Joined: 11 Apr 2010 19:37

Re: AC voltmeter using pic16f877a and LCD

#4 Post by sahu » 27 Jul 2011 21:27

right now i use it calculation but display wrong value ..
ADC_Value = ADC_Read(2);

DisplayVolt = ADC_Value * 2;

volt[0] = DisplayVolt/1000 + 48;

volt[1] = (DisplayVolt/100)%10 + 48;

volt[3] = (DisplayVolt/10)%10 + 48;
volt[4] = (DisplayVolt/1)%10 + 48;
SAHU

sunny
Posts: 44
Joined: 26 Mar 2011 07:15

Re: AC voltmeter using pic16f877a and LCD

#5 Post by sunny » 01 Aug 2011 04:24

thanks forreplay
my next questions in not related to this topic but replay must....
in what range of frequency we cn generate using pic

Post Reply

Return to “mikroBasic General”