You can use another 555 for that, or simpler is a two NAND gate (1 package) set-reset latch circuit.I want to know when it happens! My idea was to use another 555 timer that will trigger in bistable mode when the mosfet resets (powers off).
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.
You can use another 555 for that, or simpler is a two NAND gate (1 package) set-reset latch circuit.I want to know when it happens! My idea was to use another 555 timer that will trigger in bistable mode when the mosfet resets (powers off).
You can use another 555 for that, or simpler is a two NAND gate (1 package) set-reset latch circuit.
You don't have to try to contact me, and I don't do this for pay -- it's my hobby.
I prefer answering all questions on the forum so everyone can benefit from the answers.
Below is the circuit with an added NOR-gate latch to indicate that the power has been reset (green trace).
V3 resets the latch (purple trace).
(A NOR-gate latch turned out to be simpler than a NAND-gate latch for given signal polarities.)
R8 C3 act as a power-on reset for the latch.
Maybe you should try and fix the pi code. How often does it crash? Can you add a monitor of some kind that can print "entered x sub", "exited x" etc. Can you monitor free memory in case it's a memory leak?
The P-MOSFET gate does need ground to turn on, but it needs to be at the 12V source voltage to turn off (Vgs=0v).What I couldn't make much sense is the mosfet has to receive 0V (gnd) on its gate to work,
The P-MOSFET gate does need ground to turn on, but it needs to be at the 12V source voltage to turn off (Vgs=0v).
Below is the circuit modified for 12V on the load MOSFET and 5V for the rest of the circuit.
Since the CD4001 inputs can't tolerate more than its 5V supply voltage, isolation from the 12V Gate signal is provided by diode D1 and resistor R9 pullup at U2a's input ,
View attachment 117679
It is.I still think it's better to fix the bug in the code. This just feels like a bandaid.
.
I still think it's better to fix the bug in the code. This just feels like a bandaid.
Mike.
I’m not sure what you mean by that, but if you have a solution, please post.Kind of a second bandaid to keep the first in place?
Hello people. I have updates! ...Remember I'm using this circuit to reset the RPI Power in case it freezes (happens once a month or so).
The circuit always worked great, until this week the RPI froze exactly when it was sending that ping (5v signal) to reset the countdown timer. As a result, the RPI and the signal was frozen high and therefore the problem was not corrected by the circuit (no power restart).
I added another timer (555) to the circuit, to cancel out the ping (5v signal) in case it remains frozen on. Works great now, and that is no longer a problem.
I'm back at electro-tech-online because I noticed I ended up with too many components on the PCB. Somebody had suggested back then to use a PIC, where it would be easier to achieve the same results with a lot less components. I thought I could give the PIC a try, but the problem is I'm not a software guy at all. The question: Is that something too hard to do (write code)? Can anybody assist on that? And also, if I do change the design for the PIC, will I be able to program the PIC onboard, or does it have to be placed on the programmer by itself?
Thanks in advance. Mike