Hi all, I realized in a pattern on the internet using a toggle button and ne555 monostable mode so everything is ok.
Now, I'd like to add the ability to simulate pressing the MCU via a pulse (which could be very useful in many situations), and I thought to use the classic means of a transistor (which should act as a switch) but it does not work, the circuit is closed but not 'clicks' as if it were closed by pressing the button. I am a neophyte electronics and certainly do not have the appropriate knowledge on the operation about ne555 to make arguments like this, the problem is probably due to the logic of charging and discharging of the capacitor, here is the complete schema.
I noticed that every time I press the button, the polarity of the two ends of the button are reversed and so I added a diode to avoid a short, this system would be fine (if it worked) only when the polarity of the terminals A and B (indicated in the diagram) were respectively + and -, and not the opposite. On a site I noticed that they use a relay to do something like that but I would avoid this solution.
In fact I could have avoided all of this and get by cheap with a few lines of code, I speak to you as a programmer, but I think that it is technically more interesting solve the problem by using a handful of components if possible, what do you think?
Take this opportunity to make the New Year to all.
driver
Now, I'd like to add the ability to simulate pressing the MCU via a pulse (which could be very useful in many situations), and I thought to use the classic means of a transistor (which should act as a switch) but it does not work, the circuit is closed but not 'clicks' as if it were closed by pressing the button. I am a neophyte electronics and certainly do not have the appropriate knowledge on the operation about ne555 to make arguments like this, the problem is probably due to the logic of charging and discharging of the capacitor, here is the complete schema.
I noticed that every time I press the button, the polarity of the two ends of the button are reversed and so I added a diode to avoid a short, this system would be fine (if it worked) only when the polarity of the terminals A and B (indicated in the diagram) were respectively + and -, and not the opposite. On a site I noticed that they use a relay to do something like that but I would avoid this solution.
In fact I could have avoided all of this and get by cheap with a few lines of code, I speak to you as a programmer, but I think that it is technically more interesting solve the problem by using a handful of components if possible, what do you think?
Take this opportunity to make the New Year to all.
driver