I have the circuit finished.waiting for your reply
I’ll post in about an hour.
I have the circuit finished.waiting for your reply
See Below.waiting for your reply
Thanks for this great effort. NOR is NOR gate here?See Below.
I've shown the CD4060B Q4 output connected to the CD4017B CLK to shorten the simulation time only. It will actually be connected to Q14 for your build.
U1A holds the circuit in reset at power on with K1 de-energized. When the battery voltage falls below 24v, Bat_OK goes high, starts the timer. and energizes K1. If the battery voltage returns to normal, the circuit will return to its reset condition and de-energize K1. If the battery voltage remains below 24v longer than the timer duration, K1 will de-energize and the circuit will remain in this state until the battery voltage returns to normal.
View attachment 277967
View attachment 277968
Yes. U1B (1/4 LM339) is configured as a NOR gate.Thanks for this great effort. NOR is NOR gate here?
I think there is no need for NOR gate, as I have drawn all the circuit. Some addition must be added for proper running. 4060 must be latched through pin no 11 via 4017 pin 11 otherwise counter starts again and again. The sequence of the circuit is hereYes. U1B (1/4 LM339) is configured as a NOR gate.
The Timer is held in reset so it can't start "again and again". The timer only starts when the load is connected.I think there is no need for NOR gate, as I have drawn all the circuit. Some addition must be added for proper running. 4060 must be latched through pin no 11 via 4017 pin 11 otherwise counter starts again and again.
Without nor gate the function is described as above and that is Ok. But 4060 starts again and again although 4017 is in same state. Also please let me know how to add output led for lm339The Timer is held in reset so it can't start "again and again". The timer only starts when the load is connected.
The NOR gate has nothing to do with the timer. What do you mean?
Feel free to change circuit however you wish.Without nor gate the function is described as above and that is Ok. But 4060 starts again and again although 4017 is in same state.
See below.Also please let me know how to add output led for lm339
The led always glow. Because base always has some current to power on the bc547. I did try the following two circuits to counter this but nothing worked. The first circuit reduces BAT OK to 0.7 due to transistor base and the second one does not zero out the BAT OK when output is high or low.Feel free to change circuit however you wish.
See below.
LED is on when battery is normal. LED current is set for 10mA
View attachment 277996
The other problem, I have got with my previous was that, I have connected a wifi switch in series with other 220 volt relay which is powered by K1 NC, when I try to close the wifi switch the timer starts counting, When current passes from K1 wifi switch is off then the timer starts. Do not know why this is happening. Now in this circuit I am not facing the issue.Feel free to change circuit however you wish.
See below.
LED is on when battery is normal. LED current is set for 10mA
View attachment 277996
Do not use the ciruit in post #28. Instead, use one of the unused comparators to create an LED driver:The led always glow. Because base always has some current to power on the bc547. I did try the following two circuits to counter this but nothing worked. The first circuit reduces BAT OK to 0.7 due to transistor base and the second one does not zero out the BAT OK when output is high or low.
View attachment 278032
The only solution I got is to duplicate the ref and mon voltages at pin 6 7 ( by jumpering) of lm339 and get led output at pin 1.
Draw your 220v and wifi switch circuit connections and post.The other problem, I have got with my previous was that, I have connected a wifi switch in series with other 220 volt relay which is powered by K1 NC, when I try to close the wifi switch the timer starts counting, When current passes from K1 wifi switch is off then the timer starts. Do not know why this is happening. Now in this circuit I am not facing the issue.
Draw your 220v and wifi switch circuit connections and post.
Here is my current circuit with the LED driver.
View attachment 278053
View attachment 278054
Its difficult to know where the 220VAC lines are in your diagram, but Varistor suppression devices are probably needed.The circuit is here. First is automatic change over relay and other are simple 220 V relay and timer is there to push the change over to day timings for connecting ups with the heavy load, R1 is used for this purpose. R2 is used for switching Coil supply of Changeover to Mains or UPS. W subscript is for Mains and U for UPS. I have attached a green led with the relay and red led with Lm339 output.
I don't know the circuit your using, only the one I posted in #32.When I on the switch and then off the switch. Just after pressing off the green and red both led blink for a less than a second. But that is ok because it does not trigger the timer. In the first circuit I have trigger at the output of lm339 and trigger attached to reset of timer and pressing off triggered the timer.
Its difficult to know where the 220VAC lines are in your diagram, but Varistor suppression devices are probably needed.
What is the part number of the WiFi switch, R1 and R2?
I don't know the circuit your using, only the one I posted in #32.
If your using a different circuit, you'll need to post that in detail.
Are you using an on/off switch at the 24v DC input to the LM339? or the LM2596?
If so, show the circuit wiring.
Where does BAT_OK connect?
Bat ok connects to pin 12 (4060) and pin 15 (4017)Where does BAT_OK connect?
Your going to damage those chips if they aren't already damaged.Bat ok connects to pin 12 (4060) and pin 15 (4017)
HowYour going to damage those chips if they aren't already damaged.
The absolute maximum operating voltage is 20v, and the recommended maximum is 18v.
by Duane Benson
by Jake Hertz
by Jake Hertz
by Aaron Carman