Shop OBEX P1 Docs P2 Docs Learn Events
Ugly Clock? — Parallax Forums

Ugly Clock?

SpeakerSpeaker Posts: 34
edited 2006-09-27 17:09 in Robotics
External difficulties.
I am trying to run a NTE3101 optocoupler into a NTE4029 counter.· I want to monitor rpm.· Using a debounced switch, the counter works great.· Using the 3101, strange things happen.· Do I need to condition the output of the 3101 so that it looks more like a clock pulse.· I don't have a scope so I am just assuming that the problem is a waveform issue.· Voltage out is over 8 on a 9V supply.· The debounce switch is putting out less than that, so I don't think voltage level is a problem.· Rise time fall time?· The 3101 is a darlington pair in the detector.· I would think that rise and fall would be very abrupt.· Suggestions?

Comments

  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-09-27 01:28
    You should include a schematic of your circuit (it's easy enough to do with Paint -- just fake it till you make it) so that we can dispense with assumptions.

    You have the optocoupler output (collector) "tied HI" with a 4K7 resistor, the emitter at Ground, and the junction of the output and the resistor going to the counter input?
    319 x 241 - 5K
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-09-27 15:16
    Hello,
    ·
    ·· Typically a Schmitt Trigger is used to clean up pulses from an Opto-coupler.· This has the effect of providing a dead band where no transitions occur.· Basically it prevents oscillation from noise around the normal switching threshold for the logic.· Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • SpeakerSpeaker Posts: 34
    edited 2006-09-27 17:09
    Thanks for responding.· I have tried several times (w no luck) to upload a .bmp file.· I am using dialup on a sprint card on my laptop while driving so am tolerant of errors.· No, I wired it up w 1k resistors on the negative sides of the emitter and the detector.· Couldn't find a schematic, so I guessed.· Took my output from between· the detector and its resistor.· When coupled, output would be high.· Looking at max I values on datasheet, I thought that perhaps 1k was too much.· If 4.7k is the standard, I will use that.· I will also add a schmidt trigger.· Thanks again.
Sign In or Register to comment.