Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
Thread Tools Display Modes
Old 25th April 2008, 07:18 AM   (permalink)
Experienced Member
 
ericgibbs has much to be proud ofericgibbs has much to be proud ofericgibbs has much to be proud ofericgibbs has much to be proud ofericgibbs has much to be proud ofericgibbs has much to be proud ofericgibbs has much to be proud ofericgibbs has much to be proud of
Default

Quote:
Now I just need to convert the input sine signals (frequency: 50/60 Hz) to really really good squares. When the sine signal is positive the output has to be 5V, when the sine signal is negative the output has to be 0V. I want to use a comparator (maybe lm393, lm339, lm311) but I can't figure out how to connect a comparator for my purpose. The datasheets are no help.
Hi,
Checking thru the LM393 datasheet, there is an application circuit that meets your requirement.
See attached extract from the LM393 datasheet.

Its a zero crossing detector, feed the 6Vac from the mains isolating transformer into the Vin input
and connect the XOR gate input to the LM393 output.
Use a single +5V supply for the LM393 and XOR logic.

If you cannot simulate a LM393, try any single supply comparator that you have in the sim,,, or even a good quality OPA.

Lets know how the sim goes.
Attached Images
File Type: png ZeroCross1.png (42.9 KB, 10 views)
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 7th July 2008 at 11:23 AM.
ericgibbs is offline   Reply With Quote
Old 25th April 2008, 04:19 PM   (permalink)
New Member
mrrmot is on a distinguished road
Default

Hey ericgibbs,

I've done the simulation with op-s, and everything works fine. I wanted to use a comparator because I thought they are more precise.

Thanks a lot for the above circuit. One more question: Which is the max voltage that I can connect to the Vin input of LM393 in the above circuit? Do I have to change anything in the scheme if the amplitude of the sines is 5V, 12V or 15V?

Thanks for everything
__________________
Dazed&Confused
mrrmot is offline   Reply With Quote
Old 25th April 2008, 04:24 PM   (permalink)
Experienced Member
 
ericgibbs has much to be proud ofericgibbs has much to be proud ofericgibbs has much to be proud ofericgibbs has much to be proud ofericgibbs has much to be proud ofericgibbs has much to be proud ofericgibbs has much to be proud ofericgibbs has much to be proud of
Default

Quote:
Originally Posted by mrrmot
Hey ericgibbs,

I've done the simulation with op-s, and everything works fine. I wanted to use a comparator because I thought they are more precise.
They are designed as comparators not OPA's so you are correct.

Thanks a lot for the above circuit. One more question: Which is the max voltage that I can connect to the Vin input of LM393 in the above circuit? Do I have to change anything in the scheme if the amplitude of the sines is 5V, 12V or 15V?
Thanks for everything
hi,
The diode clamps that range of negative input voltage half cycles, it has a 5K1 resistor in series with the diode so the current is also limited to a safe level.
If you are concerned about the higher positive half cycles, you could replace the diode with say a 3.9V zener.

Do you follow that.?

EDIT: added dwg
Attached Images
File Type: png ZeroCross2.png (42.3 KB, 7 views)
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 7th July 2008 at 11:23 AM.
ericgibbs is offline   Reply With Quote
Old 25th April 2008, 06:41 PM   (permalink)
New Member
mrrmot is on a distinguished road
Default

Yeah, thanks, I think this should work well, now I can finish my scheme. I'll let you know whether my teacher approved it.

Thanks
__________________
Dazed&Confused
mrrmot is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Square wave to sine wave converter ghauri Electronic Projects Design/Ideas/Reviews 18 20th May 2008 07:15 PM
sine wave to square wave jay543_uk Micro Controllers 17 1st February 2008 06:24 PM
square wave to sine wave tony Ben Electronic Projects Design/Ideas/Reviews 2 26th January 2005 04:04 AM
LC filter- filtering a square wave to sine wave kken6248 General Electronics Chat 3 22nd April 2004 04:31 AM
How can I convert a square wave to sine wave?? kken6248 General Electronics Chat 6 1st April 2004 03:27 PM



All times are GMT. The time now is 09:45 PM.


Electronic Circuits  |  Radio Controlled
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.