Can i get same results with less transistors and resistor components while not using ICs and relays?If you need an inverted logic connect the collector of circuit in post#16 to gate of mosfet.
(Load in mosfet now).
So ±100mV.About +-20%

I dont understand the circuit. How does the differential work?So ±100mV.
That's doable with a discrete circuit.
Below is the LTspice sim of a simple comparator using two PNP transistors in a differential pair, along with an NPN output driver.
PNP's are used, since they allow operation with an input voltage down to 0V with a single positive supply.
The U1 pot allows adjustment of the trigger point (Ref) voltage to 0.5V from the 5.2V supply with over a ±200mV adjustment range.
The sim shows the MOSFET gate voltage (yellow trace) going high and powering the load (red trace) when the input (green trace) reaches 497mv, with a pot setting of 50% (0.5).
Is that what you want?
View attachment 321775
Can you go in explanation about replacing 220 ohms with schottky BAT46? How does that produce be stable and comparator be 0.4V (0.6V to 0.2V)?I don’t know about less component solution.
Maybe those we deal with zener at beginning, but negative control voltage is needed as you can see.
Circuit in post #22:
A 10k resistor needs to be supplied from constant voltage (5.2V in your case), otherwise the comparator will not be presice.
You can use a zener for this if 5.2V source is not stable.
There is also a trick to replace 220 ohm with schottky like BAT46. In that case the supply for 10k doesn’t have to be stable. But the comparator voltage will be about 0.4V (0.6V-0.2V).
Look up transistor differential pair.I dont understand the circuit. How does the differential work?
Yes, if you measure many transistors and Schottky diodes, selecting 0.6V and 0.2V, and keep the temperature from changing.According formula under schematic the transistor starts conducting at Vin=0.4V:
Instead of zero volts I want low to be some reference voltage dc and high to be 5.2 vdc at the output of bjt. How would the circuit change then?I don’t know about less component solution.
Maybe those we deal with zener at beginning, but negative control voltage is needed as you can see.
Circuit in post #22:
A 10k resistor needs to be supplied from constant voltage (5.2V in your case), otherwise the comparator will not be presice.
You can use a zener for this if 5.2V source is not stable.
There is also a trick to replace 220 ohm with schottky like BAT46. In that case the supply for 10k doesn’t have to be stable. But the comparator voltage will be about 0.4V (0.6V-0.2V).
The schottky and Vbe thermally compensate each other, not extreme precisely but nice to have:Yes, if you measure many transistors and Schottky diodes, selecting 0.6V and 0.2V, and keep the temperature from changing.
What voltage do you want at output low, constant or variable?Instead of zero volts I want low to be some reference voltage dc and high to be 5.2 vdc at the output of bjt. How would the circuit change then?
All seems somewhat messy compared to the differential circuit.The schottky and Vbe thermally compensate each other, not extreme precisely but nice to have:
Vin= Vbe - Vf
0.4 = 0.6 - 0.2
After cooling both getting the same Vin:
0.4 = 0.65 - 0.25
The schottky drop can be changed a little by changing base resistor (current through schottky) (4k7,10k, 22k…).
The Vbe can also be varied a little with collector resistor (1k, 2k2, 4k7).
I am not sure what you mean by variable? Lets say I have two different circuit. For circuit #1 I want 1.0Vdc low and circuit #2 I want 2.5vdcWhat voltage do you want at output low, constant or variable?
If constant you can place a diode to emitter, but the base circuit has to be modified also.
Ah thanks. Can I place zenior diode in place of R4?The most easy is just make Rc from resistor divider R3:R4.
By changing the ratio between these two resistors you can set the output voltage during transistor On state whatever you want.
During transistor Off state the output is Vcc (5.2V).
Hi,Can i get same results with less transistors and resistor components while not using ICs and relays?
I am still trying to figure out your circuit. It seems the load transistor turns on when its 0.5vdc or above based on graph you posted.All seems somewhat messy compared to the differential circuit.
Theoretically you can, but low voltage zeners (without compensation) are pretty bad refferences.Ah thanks. Can I place zenior diode in place of R4?