Darlapphood said:
I have a counter i want to increment with a normally open output wire from
a pnp sensor. When i activate the sensor the counter counts at an
incredible rate. Could anyone help me with this?
A "PNP sensor" traditionally means a three wire sensor (V+, OUT, and
GND) whose output is the collector of a PNP transistor whose emitter is
tied to V+. This means you need a load (typically a resistor) to GND
in order for the circuit to complete, like this (View in fixed font or
M$ Notepad):
V+
.------------o
|
.----o------.
| | |
| '----. |
| | |
| |< |
| -| |
| |\ |
| | |
| | |
| | | Out Vr
| '-------o-----o
| | |
| PNP Sensor| .-.
| | | | 1K
'----o------' | |
| '-'
| GND |
'-------------o----'
created by Andy´s ASCII-Circuit v1.24.140803 Beta
www.tech-chat.de
A couple of questions, if you would:
* What's your power supply voltage? Is it regulated?
* Is your counter a mechanical counter, an electronic counter, a CMOS
or TTL counter IC, or what?
* Is this an electrically noisy environment?
* Specifically what is your PNP sensor (as in make and model), and what
load is it driving? A resistor or what?
This would give you a start on a discussion about your problem, instead
of just waiting for us to guess what you mean. You'd be amazed at how
many people on s.e.b. will be willing to help, if you provide a good
problem description.
Chris