So as it stands, there is no current change between resistor fitted and not fitted, which points to the output transistors not switching.Hi M,
2.4mA while rotating.
C
Maybe use something like a 470 ohm pull ups and test (10ma) each.
Max.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
So as it stands, there is no current change between resistor fitted and not fitted, which points to the output transistors not switching.Hi M,
2.4mA while rotating.
C
More current means more heat/power which is bad. But you still want enough current to be able to charge the parasitic capacitances fast enough to get a good square wave. You don't want to get the resistance as low as possible as much as you want to be able to get away with as high a resistance as possible. Just enough to charge those capacitances, have good noise immunity, and good edges so you can minimize heat and power but still have things work.Hi,
I understand that a too low resistance, would 'pop' the transistors, but is the idea to get as low as possible to get a square wave, but not too low?
C.
Hi D,As long as the transistors switch it really should not make much difference, within reason.
But I would expect to see at least a 10ma collector current.
Have you tried the 470 ohm at 5v?
Max.
Hi M,Place a zener clamp on the input signal.
Max.
Or 3V. Probably even 2.7V would be OK. As long as it's high enough that your input still sees it as a logic ONE.Hi M,
Is this to control the voltage?
If so, then I presume, I have to get 3.3V zener diodes?
C.
Hi C,Or 3V. Probably even 2.7V would be OK. As long as it's high enough that your input still sees it as a logic ONE.
You could also use a resistor. Setup a divider to make ~3.3 when the top is at 12V. The encoder output shorts the lower resistor to GND.
No.Hi C,
Are these two drawings correct?
Which one is best?
I have some 3.3V Zenere diodes.
C
Why not just have encoder output - 10k resistor - pic input - 3.3k resistor GND.
Mike.
Edit, or replace the 3.3K with a 3.3V reverse biased zener.
Chris, are you assuming the outputs are OC? 12V directly to the zener (or pic pin) could produce a large current. Or did I misunderstand?
Assuming you are replying to my post, the supply to the sensor can be 12V as stated but the pic input only need a pullup to it's own 3.3V supply.The spec states 5v supply minimum.
Max.