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.

Generating Clean Clock Pulses using Opto-Coupler

Status
Not open for further replies.

ZaeemAhmad

Junior Member level 2
Joined
Dec 24, 2009
Messages
20
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,452
I am using OMRON EE-SM3 Opto-Switch (Sensor TX + RX Unit) for inputting clock pulses to uController through its timer pin. The problem is that when I pass an opaque object through its slit once, it counts it multiple times (i.e. counter increments more than once).
Is there any remedy circuit for such a problem, so in result I could get one pulse per pass. I don't intend to use any Shmitt-Trigger device. What is the most economical solution. The circuit I am using currently is the one given in the test circuit section of the sensor's datasheet given above in the link.
 

I don't intend to use any Shmitt-Trigger device.
Your choice. It's the only way to produce a clean digital signal in this case. Low pass filtering in front of the schmitt-trigger can be required in addition, if the object is moving very slow and interfering AC light (e.g. from CFL) or electrical noise is present.
What is the most economical solution.
Provide a software based time filter. But you can't used the timer input directly then.
 
What is distance between sensor and circuitry ?
Cabling is proper to the signal path ?

+++
 

What does the signal look like out of the optocoupler? Do
you even know? If you don't, then speculating how to fix
the larger assembly is just rolling the dice.
 

Thank you all! The problem was solved by using a 555 timer at the output of the slit-hole sensor and connecting the output of 555 timer to the uC. The circuit diagram can be downloaded from **broken link removed**...
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top