All About Circuits Forum  

Go Back   All About Circuits Forum > Electronics Forums > General Electronics Chat

Notices

General Electronics Chat Discussion forum for general chat about anything electronics related, including asking questions about material in the All About Circuits E-book, Worksheets, and Videos.

Reply   Post New Thread
 
Thread Tools Display Modes
  #1  
Old 10-17-2012, 02:46 AM
s900t8v s900t8v is offline
Junior Member
 
Join Date: Mar 2011
Location: Victoria Australia
Posts: 48
Default sine to square wave converter

hey guys

I've been looking on the net for a cheap and simple box that converts a sine wave to a square wave

for my project TRACK car - the ECU needs a square wave speed signal. I have a sine wave reluctance style sensor in the back of the speedo. I want to condition the signal.

I can change the pulse settings blabla in the ECU to get the speed right so I can just use any converter right? The problem is I can't even find one
Reply With Quote
  #2  
Old 10-17-2012, 02:56 AM
MrChips's Avatar
MrChips MrChips is online now
Super Moderator
 
Join Date: Oct 2009
Posts: 8,988
Blog Entries: 23
Default

Going from sine to square is a lot easier than the other way around.
Any amplifier, transistor, logic gate or comparator will do the job.
__________________
Most computer problems can be attributed to a simple problem - a loosewire behind the keyboard.

Reply With Quote
The Following User Says Thank You to MrChips For This Useful Post:
s900t8v (10-17-2012)
  #3  
Old 10-17-2012, 02:58 AM
s900t8v s900t8v is offline
Junior Member
 
Join Date: Mar 2011
Location: Victoria Australia
Posts: 48
Default

ok, so i'm a total noob when it comes to electronics, can you point me at something cheap and readily available

Ideally I just want to connect the sine input, and connect the square output, is there anything that makes it that easy lol ;D
Reply With Quote
  #4  
Old 10-17-2012, 03:09 AM
MrChips's Avatar
MrChips MrChips is online now
Super Moderator
 
Join Date: Oct 2009
Posts: 8,988
Blog Entries: 23
Default

You have to provide more information.
What is the output voltage and impedance of the sensor.
What voltage is required by the ECU. What is the input impedance of the ECU?
Some of these questions you may not know the answer. But if you can provide more details we can figure it out.

If this has anything to do with real automobiles, we cannot help you.
__________________
Most computer problems can be attributed to a simple problem - a loosewire behind the keyboard.

Reply With Quote
  #5  
Old 10-17-2012, 04:03 AM
s900t8v s900t8v is offline
Junior Member
 
Join Date: Mar 2011
Location: Victoria Australia
Posts: 48
Default

Quote:
Originally Posted by MrChips View Post
You have to provide more information.
What is the output voltage and impedance of the sensor.
What voltage is required by the ECU. What is the input impedance of the ECU?
Some of these questions you may not know the answer. But if you can provide more details we can figure it out.

If this has anything to do with real automobiles, we cannot help you.
na it's a project...

how do I measure these things?

I can measure the voltage at the sine wave sensor? how do I measure impedence?

not sure about the ECU, seeing if I can find that out now !

thanks for the help
Reply With Quote
  #6  
Old 10-17-2012, 05:07 AM
blah2222 blah2222 is offline
Senior Member
 
Join Date: May 2010
Location: West
Posts: 506
Default

The output impedance of the sensor is going to determine how large the input impedance of your "converter" will roughly have to be so that you do not lose your signal.

Assuming that this sensor is linear and is completely resistive (probably not the case) if you hook a known supply voltage up to the sensor and measure the current produced, the impedance (resistance) can be found as the input voltage divided by the measured current.

If you want to get the reactive component of the impedance (capacitive/inductive) pass in an AC voltage and measure the current amplitude and phase difference from the input voltage and perform the same calculation (involves imaginary numbers). The latter is more involved, but good to do if you know what you're doing.

If there is a capacitive/inductive component, your impedance is going to depend on the operating frequency. Impedance increases with increasing frequency for inductors and decreases with increasing frequency for capacitors. Resistance is not affected by frequency. Find out the frequencies that you will be using.

Once you've got a rough idea of the output frequencies of the sensor, it's output impedance, and its possible amplitude and you will be almost ready to setup your "converter". The signal will most likely need to have noise and DC bias filtered and even amplification if it is too weak.

As a crude example, read up on the Schmitt Trigger as this would be an easy way to transform the signal into what you want. Basically the op-amp acts as a comparator and compares the voltage between its +ve and -ve terminals. If V+ > V- then, its output terminal will be ~+ve supply voltage and ~-ve supply voltage in the opposite case. The Schmitt Trigger has a feedback component that actually takes into account what the output currently is and changes its compare voltage depending on what state your in.

Good luck!
Reply With Quote
  #7  
Old 10-17-2012, 03:30 PM
Stuntman's Avatar
Stuntman Stuntman is offline
Senior Member
 
Join Date: Mar 2011
Location: The Great Midwest
Posts: 123
Default

Read this to get you closer to a solution: http://www.allaboutcircuits.com/vol_6/chpt_6/2.html
Reply With Quote
  #8  
Old 10-17-2012, 03:46 PM
Dodgydave's Avatar
Dodgydave Dodgydave is online now
Senior Member
 
Join Date: Jun 2012
Location: Liverpool,UK. GMT
Posts: 1,734
Default

use a 555 timer

http://www.google.co.uk/imgres?q=555...9,r:8,s:0,i:93
__________________
NECESSITY IS THE MOTHER OF INVENTION !
Reply With Quote
  #9  
Old 10-17-2012, 05:24 PM
Ron H's Avatar
Ron H Ron H is offline
E-book Developer
 
Join Date: Apr 2005
Location: Idaho, USA (GMT-7)
Posts: 7,050
Default

Track car + ECU = automobile
Reply With Quote
  #10  
Old 10-17-2012, 11:02 PM
Austin Clark Austin Clark is offline
Senior Member
 
Join Date: Dec 2011
Location: Hutchinson, KS. United States
Posts: 395
Default

Literally all you need is a schmitt trigger, if the output doesn't have to power a heavy load directly anyway.

It's exactly what you want. It's available in a DIP chip, has one input and one output, and only needs power and ground connections to begin operating

Here's an example:

http://www.datasheetcatalog.org/data...or/mXurtwx.pdf
Reply With Quote
Reply   Post New Thread

Tags
, , ,


Related Site Pages
Section Title
Worksheet Phase-locked loops
Worksheet Linear computational circuitry
Worksheet Signal modulation
Worksheet Power conversion circuits
Worksheet Performance-based assessments for AC circuit competencies
Worksheet Passive integrator and differentiator circuits
Worksheet Mixed-frequency signals
Textbook The "operational" amplifier : Operational Amplifiers
Video Lecture Sine Wave Characteristics (cont) - Alternating Current
Textbook Electrical signal types : Digital Communication


Similar Threads
Thread Thread Starter Forum Replies Last Post
sine wave and square wave time constant Thevenin's Planet Math 10 03-16-2011 06:02 PM
High speed sine wave to square wave converter thavamaran The Projects Forum 37 11-04-2010 05:28 PM
Sine Wave to Square Wave converter retaining original P-to-P jarek319 General Electronics Chat 18 09-01-2010 11:20 AM
Sine Wave to TTL / Square Wave Circuit JohnIV General Electronics Chat 14 04-18-2010 10:57 PM
Sine to Square Wave Converter @ 10MHz youknowwho6996 General Electronics Chat 3 09-05-2009 02:35 PM

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:56 PM.


User-posted content, unless source quoted, is licensed under a Creative Commons Public Domain License.
Powered by vBulletin
Copyright ©2000 - 2014, vBulletin Solutions, Inc.