AlbertHall
- Joined Jun 4, 2014
- 12,629
But what is GND connected to? Only C19 and D8 and nowhere else?
Was following as per suggestion in Post# 20But what is GND connected to? Only C19 and D8 and nowhere else?

The point labelld GND should be connected to the point labelled EARTH and the point labelld EARTH should be connected to mains earth if this circuit is to work.Was following as per suggestion in Post# 20
Hi,Was following as per suggestion in Post# 20
So far managed to get it this far.
View attachment 150707
Hi,D8 is a 3V zener.
R3 not connected correctly. Try this version.can't seem to get the hysteresis part working.
Hi,1.2 goes low and .2 goes high.
The D3 and R7 are to clamp the high voltage. Was silly but that was what i was trying to achieve.Hi,
Ok then the values do not look right.
I take it you want it to go low when the input ramps up to 1.2, then if it ramps down to 0.5 say it still stays low, then if it ramps down to 0.21 it still stays low, but if down to 0.2 it goes high again right?
First, the input gain is not really optimal. Actually every far away from optimal.
Since you have an op amp, you can do a lot that makes it work really well, or at least should.
For example, make the op amp (first stage) so that it outputs a nice healthy signal, like 0.4 to 2.4 at least. That's double what you wanted, but then the next stage has more to work with.
Right now the first stage gain is around 1/2, which means you only get 0.1v out with 0.2v input.
Better is to get 0.4v output with 0.2v input.
Then, 1.2v input gives you 2.4v output.
Now you have something better to work with at the last stage..
The input high trip point would be 2.4, and the low trip point would be 0.4. This is decent with a power supply of 5v.
The trip points then have to be set to 0.4 and 2.4, which is easy to do.
When testing, you have to make the input source change from 0.2 to 1.2 and back down again gradually. That's the only way to test this well enough to be sure it works right because there is hysteresis.
Also why such a bid diode for D3 and why R7?
Maybe i wasn't clear when i explained. here is the working principle and how i came up with the idea.I take it you want it to go low when the input ramps up to 1.2, then if it ramps down to 0.5 say it still stays low, then if it ramps down to 0.21 it still stays low, but if down to 0.2 it goes high again right?
I am not sure if i understood this but i can't get seem to get anything beyond this
View attachment 150814
and seems to not get what i am after too.