Most small circuit wiring can handle this current for this duration. After 5 time constants (50us) the current is zero. After one time constant this current drops by 63%, i.e. When you close the switch you have five volts discharging into 1 ohm = 5A. It takes five time constants to completely discharge the cap, i.e. If you model the resistance of the cap and the wires as one ohm, then when you close the switch you have a one ohm resistor across a 10 uF cap. Practically, though, there is internal resistance in the cap and the wires themselves will have some small resistance. Yes, theoretically if the capacitor discharges into zero ohms then you get infinite current. You can download the files associated with this episode here:ĭistributed under the GNU General Public (Open-Source) License. Enjoy the video!ĮDIT: You can find a great run-down of debouncing techniques and problems here: (Thanks Jope) I won’t be covering timer interrupts in this episode, since I recently wrote an extensive blog post about using them. I’d suggest you go check out episode 2, where I initially introduced button debouncing, if you haven’t already. On many platforms they can be confusing to implement, but the arduino makes it easy! In this week’s episode, I’ll show you how to use a hardware-debounced button to activate a hardware interrupt on the arduino. Interrupts allow you to run a program, while still being able to react to asynchronous input from the outside world. Interrupts are an extremely useful, yet often feared element of microprocessors. This tutorial was featured on the official Arduino blog on
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |