Brissieboy wrote: ↑Wed Jun 13, 2018 10:47 pm
The 555 output will be high while the capacitor is charging (less than about 2/3 Vcc), only going low once it reaches that threshold.
By pulsing the 'In' input you discharge the capacitor before it reaches the threshold, thus preventing the output from going low and resetting the Arduino (reset is active low). If no input is received within the time controlled by the timing circuit (the 10uF and 1m/4m and 4k7 resistors) then the output will go low and reset will occur.
That's exactly what you want to happen.
You need to pulse the input regularly during programme execution to keep the reset from occurring.
Yeah, I understand that.
Using the simulation software (iCircuit) i've understood
how the timer works, when it resets the arduino.
That is fine, my question is not how it works, my question is about the voltage on the OUT pin
If you take a look at the bottom section of the image you can see the voltage of the OUT pin in the timeline. When the capacitor reached 3.33 the circuit called a reset, like it should do.
According to the Arduino docs: a HIGH on the reset pin will restart the arduino
But if you check the
OUT.V in the image you can see that it is always high and only drops to low when the capacitor is charged enough, which is clearly the opposite of what the documentation says (both arduino documentation and watchdog documentation)
And yet, the circuit clearly works because nobody is complaining.
Where is the problem? Did I not understand something? Is my circuit wrong? Is the simulator software wrong?
Brissieboy wrote: ↑Wed Jun 13, 2018 10:47 pm
But watchdogs only cause a restart. They tend to hide the real problem, and can cause more problems that they solve. I think you need to ask yourself whether or not you really need a watchdog. What are you expecting might happen? Can you resolve that situation by better design in your software? What will happen to your application if a reset/restart does occur? Just my opinion, but I tend to think a watchdog is not necessary in most situations.
I know. They are not always needed. I'm not using it on an arduino. I'm not even building it physically
I'm studying about the 555 chip and I'm trying to understand how this circuit (watchdog) works.
If my simulation software is defective I need to change it
If I did some mistake I need to find it