Avatar

LATCH CIRCUIT - MICROCONTROLLER WAKE UP

May 12th, 2021 by: ELECTRONOOBS
Views 213
I want to power on my microcontroller for a short time, do a process and then go back to sleep where it consumes 0 apms of current. I’ve done something like that with the ultra-low power mode a few months ago on a different project, but even so, in that mode I was still consuming around 90uA. So, if I were to use a battery, after a year or so, the battery would get empty. I want to completely power OFF the system after the process is done and power up again when a new input is detected, for example I detect that somebody opened the door with a vibration sensor. For that I will use a latch circuit and that’s what I want to show you today. A circuit that enables power with a push of a button, and then, could be turned off by the microcontroller itself. I will show you step by step how this circuit works and how to implement it, and of course, see the results in power consumption.

Watch the video tutorial



Part 1 - What we need?


Below you have all the parts needed for this circuit, and on the next step you have the schematic. You can test this circuit on a breadboard or maybe solder it directly to a small prototyping PCB. You can also add an extra LED with a 100 ohm resistor at the output, so you can see when the output is ON or OFF.

Part 2 - Latch Schematic


Below you have the schematic I've used. When you power the circuit, all transistors are OFF. The Q6 P-MOSFET is the one that enables the output, so the current path from IN to OUT. Let's center first on the Q5 BJT transistor. When you push the button (or sensor), as you can see, that will connect the R4 to the base of the Q5 transistor. Since R4 is a pullup connected directly at the input, this will turn ON the Q5 transistor. Since Q5 is now ON, there is a path to ground from the gate of the Q6 MOSFET. Since that is a P-type, it will now turn on because we have connected its gate to GND. So the output is now ON, great. The output is latched in the ON position becasue even if the button is not pressed anymore, we now have the output from the cicruit connected at the base of Q5 with a 100K resistor and that would keep Q5 turned ON and by that the output stays ON.

So how do we turn this circuit OFF? Well, we use Q4 for that. If we activathe this bjt transistor, it will connect the base of Q5 to GND and by that, it will turn OFF the gate of the P-MOSFET and by that turn OFF the entire circuit. So all we have to do is to connect the Microcontroller digital pin to the base of the Q4 transisitor and when we put taht pin HIGH, it will turn ON Q4 and by taht turn OFF Q5 so the output is now LOW. We use C3 capacitor to give a small delay till the circuit can get ON or OFF.

Part 3 - Connections


Ok so now, instead of the push button I add my vibration sensor between the input and the base of Q5 transistor. This has two connections inside that will touch when the sensor vibrates. So it will clsoe the circuit with that, just as the push button. The output from the latch circuit si connected to Vin pin of the Arduino, so when the output is HIGH, the Arduino will turn ON. Also remember to share GND between the Arduino and the latch circuit and supply. I connect digital pin D5 from the Arduino to the R8 of the latch circuit and we will use this pin to turn OFF the circuit. To simulate a process, I will use the LED connected at pin D6 and blink it 3 times.

Part 4 - Arduino code


Copy the code from below and upload it to the Arduino. As you can see, is very important to first set to low D5 and then do your process. Otherwise that pin wouldn't have a defined state and might activate the latch circuit and turn off the output. So set the pin to low and then make a process (blink the LED in this example). Finally when we set D6 to high, ot will enable Q4 transistor and with that turn off the circuit.
003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d006b006500790077006f0072006400220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a002000720067006200280030002c0020003100350031002c00200031003500370029003b00200066006f006e0074002d007700650069006700680074003a00200062006f006c0064003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e0076006f00690064003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e0020003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d006200750069006c0074005f0069006e00220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a0020007200670062002800350037002c0020003100310035002c002000300029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e00730065007400750070003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e002800290020007b000a00200020003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d006200750069006c0074005f0069006e00220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a0020007200670062002800350037002c0020003100310035002c002000300029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e00700069006e004d006f00640065003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e0028003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d006e0075006d00620065007200220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a00200072006700620028003100330036002c00200030002c002000300029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e0035003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e002c0020003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d006c00690074006500720061006c00220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a00200072006700620028003100320030002c0020003100360039002c0020003900360029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e004f00550054005000550054003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e0029003b00200020002000200020003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d0063006f006d006d0065006e007400220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a00200072006700620028003100330036002c0020003100330036002c00200031003300360029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e002f002f005300650074002000740068006500200022006c006100740063006800200063006f006e00740072006f006c002000700069006e00220020006100730020006f00750074007000750074003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e000a00200020003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d006200750069006c0074005f0069006e00220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a0020007200670062002800350037002c0020003100310035002c002000300029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e006400690067006900740061006c00570072006900740065003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e0028003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d006e0075006d00620065007200220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a00200072006700620028003100330036002c00200030002c002000300029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e0035003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e002c003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d006c00690074006500720061006c00220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a00200072006700620028003100320030002c0020003100360039002c0020003900360029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e004c004f0057003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e0029003b0020002000200020003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d0063006f006d006d0065006e007400220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a00200072006700620028003100330036002c0020003100330036002c00200031003300360029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e002f002f0049004d0050004f005200540041004e0054002c002000730074006100720074002000770069007400680020007400680065002000700069006e00200074006f0020004c004f0057003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e000a00200020003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d006200750069006c0074005f0069006e00220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a0020007200670062002800350037002c0020003100310035002c002000300029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e00700069006e004d006f00640065003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e0028003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d006e0075006d00620065007200220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a00200072006700620028003100330036002c00200030002c002000300029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e0036003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e002c0020003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d006c00690074006500720061006c00220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a00200072006700620028003100320030002c0020003100360039002c0020003900360029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e004f00550054005000550054003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e0029003b00200020002000200020003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d0063006f006d006d0065006e007400220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a00200072006700620028003100330036002c0020003100330036002c00200031003300360029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e002f002f00530065007400200074006800650020004c00450044002000700069006e0020006100730020006f00750074007000750074003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e000a000a00200020003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d006b006500790077006f0072006400220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a002000720067006200280030002c0020003100350031002c00200031003500370029003b00200066006f006e0074002d007700650069006700680074003a00200062006f006c0064003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e0069006e0074003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e002000690020003d0020003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d006e0075006d00620065007200220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a00200072006700620028003100330036002c00200030002c002000300029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e0030003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e003b000a00200020003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d0063006f006d006d0065006e007400220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a00200072006700620028003100330036002c0020003100330036002c00200031003300360029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e002f002f0044006f00200074006800650020006e0065007800740020006c006f006f007000200033002000740069006d00650073003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e000a00200020003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d006200750069006c0074005f0069006e00220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a0020007200670062002800350037002c0020003100310035002c002000300029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e007700680069006c0065003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e0028006900200026006c0074003b0020003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d006e0075006d00620065007200220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a00200072006700620028003100330036002c00200030002c002000300029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e0033003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e0029007b000a0020002000200020003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d006200750069006c0074005f0069006e00220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a0020007200670062002800350037002c0020003100310035002c002000300029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e006400690067006900740061006c00570072006900740065003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e0028003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d006e0075006d00620065007200220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a00200072006700620028003100330036002c00200030002c002000300029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e0036003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e002c003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d006c00690074006500720061006c00220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a00200072006700620028003100320030002c0020003100360039002c0020003900360029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e0048004900470048003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e0029003b0020002000200020003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d0063006f006d006d0065006e007400220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a00200072006700620028003100330036002c0020003100330036002c00200031003300360029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e002f002f005400750072006e0020004c004500440020004f004e003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e000a0020002000200020003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d006200750069006c0074005f0069006e00220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a0020007200670062002800350037002c0020003100310035002c002000300029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e00640065006c00610079003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e0028003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d006e0075006d00620065007200220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a00200072006700620028003100330036002c00200030002c002000300029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e003200300030003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e0029003b00200020002000200020002000200020002000200020002000200020003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d0063006f006d006d0065006e007400220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a00200072006700620028003100330036002c0020003100330036002c00200031003300360029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e002f002f004b0065006500700020006f006e00200066006f00720020003200300030006d0073003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0020006200610063006b00670072006f0075006e0064002d0063006f006c006f0072003a00200072006700620028003200340030002c0020003200340030002c00200032003400300029003b0022003e000a0020002000200020003c002f007300700061006e003e003c007300700061006e00200063006c006100730073003d00220068006c006a0073002d006200750069006c0074005f0069006e00220020007300740079006c0065003d00220062006f0078002d00730069007a0069006e0067003a00200062006f0072006400650072002d0062006f0078003b00200063006f006c006f0072003a0020007200670062002800350037002c0020003100310035002c002000300029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003a0020003400300030003b002000770068006900740065002d00730070006100630065003a0020007000720065002d0077007200610070003b0022003e006400690067006900740061006c00570072006900740065003c002f007300700061006e003e003c007300700061006e0020007300740079006c0065003d00220063006f006c006f0072003a0020007200670062002800360038002c002000360038002c0020003600380029003b00200066006f006e0074002d00660061006d0069006c0079003a0020004d0065006e006c006f002c0020004d006f006e00610063006f002c00200043006f006e0073006f006c00610073002c0020002600710075006f0074003b0043006f007500720069006500720020004e00650077002600710075006f0074003b002c0020006d006f006e006f00730070006100630065003b00200066006f006e0074002d00730069007a0065003a00200032003200700078003b00200066006f006e0074002d007300740079006c0065003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d006c00690067006100740075007200650073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d00760061007200690061006e0074002d0063006100700073003a0020006e006f0072006d0061006c003b00200066006f006e0074002d007700650069006700680074003

Part 5 - Test


See below the test. As you can see below, we start with everything turned off and the current value is 0A. When I open the door (touch the sensor), the latch circuit turns on and powers the microcontroller. This will make 3 blinks, and just after that will apply a short signal to a transistor that will turn off the latch and at the same time, cut off the power from the entire circuit and the current value is back to 0A. Like this, with a small battery, it should last for years, right? Instead of the vibration sensor you could use any other module to apply a pulse to the base of Q5 and start the circuit.

4 Comments

  • Ricardo Marques

    about 2 months ago

  • Ricardo Marques

    about 2 months ago

    Hello, I have a question... I have seen many of your DC switching circuits, but what I don't understand is why you usually use a BJT transistor to drive a MOSFET. I have a few guesses but not sure if they are right, can you please explain it to me, why you use a BJT to drive a Mosfet ?

  • Ricardo Marques

    about 2 months ago

    Hello, I have a question... I have seen many of your DC switching circuits, but what I don't understand is why you usually use a BJT transistor to drive a MOSFET. I have a few guesses but not sure if they are right, can you please explain it to me, why you use a BJT to drive a Mosfet ?

  • Ricardo Marques

    about 2 months ago

    Hello, I have a question... I have seen many of your DC switching circuits, but what I don't understand is why you usually use a BJT transistor to drive a MOSFET. I have a few guesses but not sure if they are right, can you please explain it to me, why you use a BJT to drive a Mosfet ?

Login or Sign Up to post comments on this tutorial.