So madvapes has this schematic on how to implement a LDO 5v regulator into a mod:
I'm learning the basics of electronic circuits and there's a couple things that I don't understand about this circuit that I'm hoping someone can explain.
It looks like a 470 ohm resistor is being used to limit the current to the switch. What I don't understand is the way it's connected. One side of the resistor is connected to the same wire as the switch, and the other side is connected to a ground wire.
Now if I hadn't seen this and was going to build this based on my own very basic knowledge of circuits I would have made it like this:
Or I may have also placed the resistor after the switch (between it and the regulator). I don't think that would make a difference. What i wouldn't have done is connected one side of the resistor to a ground. Why does the madvapes schematic do that?
My second question is about the capacitor. I understand capacitors will store electrical charge up to the amount its rated for. So if I understand the MadVapes circuit right, when the user hits the switch the capacitor will charge up and then the atty will fire up. As soon as the switch is released, the capacitor will discharge its stored charge to the atty, keeping the atty on for a little bit after the button was released. Why would you want to do that? Wouldn't you want the atty to turn off right away after releasing the button?
Please someone explain this to me! I hate it when I don't understand something!

I'm learning the basics of electronic circuits and there's a couple things that I don't understand about this circuit that I'm hoping someone can explain.
It looks like a 470 ohm resistor is being used to limit the current to the switch. What I don't understand is the way it's connected. One side of the resistor is connected to the same wire as the switch, and the other side is connected to a ground wire.
Now if I hadn't seen this and was going to build this based on my own very basic knowledge of circuits I would have made it like this:

Or I may have also placed the resistor after the switch (between it and the regulator). I don't think that would make a difference. What i wouldn't have done is connected one side of the resistor to a ground. Why does the madvapes schematic do that?
My second question is about the capacitor. I understand capacitors will store electrical charge up to the amount its rated for. So if I understand the MadVapes circuit right, when the user hits the switch the capacitor will charge up and then the atty will fire up. As soon as the switch is released, the capacitor will discharge its stored charge to the atty, keeping the atty on for a little bit after the button was released. Why would you want to do that? Wouldn't you want the atty to turn off right away after releasing the button?
Please someone explain this to me! I hate it when I don't understand something!
