Joined: 26 Jul 2010 Posts: 1 Location: some where on Mars
Measure mains power frequency resolve to 0,01Hz
Posted: Fri Jul 15, 2011 2:48 am
Hi all,
I want to built my own frequency meter to measure the mains power frequency (50Hz) and display it with four 7segments led (format as XX.XX Hz).
I intend to built a zero-crossing detecting circuit (I have some in hand) and put the pulse to uC.
Please help me the code because I'm a newbie with PIC uC.
(...and tell me how the accuracy we could get?)
Many thanks in front! _________________ Sharing is best
bkamen
Joined: 07 Jan 2004 Posts: 1615 Location: Central Illinois, USA
Posted: Fri Jul 15, 2011 11:35 am
There's lots of examples on the forum to describe how to build/code what you want.
Did you even do a search yet?
Don't be lazy - give it a shot.
When you have an example of YOUR OWN CODE (not someone else's you want us to convert for you) -- and it's not working, give us a shout.
You'll need to provide us with:
Your compiler version
Possibly a schematic (please, avoid Proteus, it's proved to be buggy)
A short example showing the problem you're having.
Cheers,
-Ben _________________ Dazed and confused? I don't think so. Just "plain lost" will do. :D
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum