Re: Comparator circuit
It's NOT a comparator!, as I told you above.
Why?, I said not to, and it's NOTHING to do with hysteresis.
Sorry, but I haven't got the faintest idea what you're doing?, I gave you a circuit for an amplifier and you've altered it without reason, and started calling it a comparator for some bizarre reason?.
Have you now got a scope then?.
TKS said:Nigel i installed the comparator jus tlike you said.
It's NOT a comparator!, as I told you above.
Only with one 10K pot in place (to 5volts) and one 100K one.. (hysteris??)
Why?, I said not to, and it's NOTHING to do with hysteresis.
With those 2 i could adjust the signal.
But the problem is that the comparator voltage is to often 0,7 to 0,9
and then the pic's pin state changes very often and that generates wrong pulses...
I have made a program wich could make a graph about the pulses recieved. Always the best adjustment i could made.
I saw that the pulses recieved where to doubtfull sow when i give a good swing at the wheel it creates an mountain landschape with the peaks
going lower when reaching the lower speed.
When almost 0 rpm we get the doubtfull signal and it then generates a huge peak wich is impossible to his speed.
the value i recieved whas near 120pulses within 125ms.
Then i places a cap between the pic pin and the 0voltage. (1uF).
(i placed it after the other cap).
Then the values where allot better and you could see on the graph that the speed was getting lower and lower... but again when it reached alomost 0rpm it generates a huge spike....(200pulses)
the overall values was 100..pulses (sow 20 lower).
To eliminate the huge spike a changed the 1uf to 10uf but then it was unable to produce the nise moutain wich goes lower..(signal gets worse)...
I also tried with a 110K pulldown resistor and when i add that one i need to change both the pots (a lot of power is lost???).
Then the biggest surprise with the wheel from the ground i started the engine...
Then it looked like the engine noise was getting onto my circuit!!
when not turning the wheel i recieved some spikes, i could eliminate them a lot by adjusting both pots but it then it won't recieve well the signals
Question is it possible to connect the output of the TL to a NPN?
and add a pullup / pulldown with the perfect values for any voltage on the base higher then 0,6???
I need to take away the doubts from the pic/signal???
Hope you can give me some ideas
Sorry, but I haven't got the faintest idea what you're doing?, I gave you a circuit for an amplifier and you've altered it without reason, and started calling it a comparator for some bizarre reason?.
Have you now got a scope then?.