Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Detecting and Timing the Zero Crossing and Power Frequency

Status
Not open for further replies.

Miguel Gonzalez

New Member
With a PIC17C43 I can perform the following:
Zero Crossing Detected?

set timer on how long the zero crossing is

Calculate Input Power Frequency

50Hz or 60Hz

Set pointer to 50 Hz table Set pointer to 60 Hz table

If I can make the above with a PIC12C508 any software samples or any other help from a good samaritan? Thanks... :(
 
If you use an AC opto isolator with a transistor output (found H11AA3 on Digikey which should work) with a pull up resistor on the transistor output (~10k for a guess) you should be able to connect it directly to a digital Capture compare input to time the length between crossings. This circuit should output a short negative pulse every zero crossing.

I think your pic has a capture compare module that is perfect for this kind of timing.


Brent
 
zero-crossing detector

Do you have access to the secondary of your power supply transformer (DC wall bricks won't work) ?. If so, a resistive divider or resistor/zener combination & a schmitt trigger can provide the 60Hz timing pulses. For timing, it's not necessary to have a true zero-crossing detector, you just need a circuit that gives you a consistent pulse on every cycle (duty cycle doesn't matter).
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top