Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] Read ADC Voltage and display in seven segment

Status
Not open for further replies.

rahul bhalla

Newbie level 4
Newbie level 4
Joined
Mar 5, 2013
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,318
Hello Seniors

Actually i want to create a program in which i applied some AC Voltage on the ADC channel of PIC 16f877a micro-controller with the help of some divider and i want to display value read by ADC
5V --> 230V
2.5V --> O
0V AC --> -230V
how can i create code please explain in detail so that i can understand the concept and i am using MikroC

thanks in advance
 

This sort of project comes up often. See the list of similar threads at the bottom of this page. If you click on one, it may lead to other threads which will give you the information you are looking for.
 

Sir
thanks for the reply
Is it possible to calculate the frequency of voltage???? if yes please explain it...
 

1. Use transformer to step down from 230rms to 5V rms and then u can send it to ADC after clamping the mean valuw of voltage to positive side. This will also provide isolation from line and use surge protection at transformer secondary to minimize hard to ADC and circuit. Transformer is best and mostly used solution.
2. Instead, u can go for triac, where u can switch on the triac, and the 230V from line is voltage divided by using power resistor. Use current sense circuit to detect current surges and switch off the triac. If u r rectifying i/p, u can use zener diode to protect against current surges. U can also use op-amp based voltage stabilizer to maintain the dynamic range of 0 to 5V.
3. U can capacitively couple the triac output, to protect against surges.

Code is pretty simple, just run the ADC at 1 ksps and u get minimum of 20 samples per cycle which will also preserve the sine wave shape pretty nicely.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top