The PotLock
![the potlock](/proxy/?url=https://content.instructables.com/FZ9/OREU/JA36TTTD/FZ9OREUJA36TTTD.jpg&filename=the potlock)
this is a 3 digit combination lock with potentiometers, logic gates and differential comparators
Connection Diagram and Parts
![potloc3.png](/proxy/?url=https://content.instructables.com/FH0/WCAG/JA36SD33/FH0WCAGJA36SD33.png&filename=potloc3.png)
![8.jpg](/proxy/?url=https://content.instructables.com/F9J/VOKP/JA36SD1L/F9JVOKPJA36SD1L.jpg&filename=8.jpg)
i use (take a look at the links)
2x lm339: https://www.win-source.net/en/search?q=lm339
1x 74HC02: https://www.win-source.net/en/search?q=74HC02
1x 74HC10: https://www.win-source.net/en/search?q=74HC10
6 resistors 10k
6 potentiometers 100k
the voltage is 5v DC
How Its Works
![potloc6.png](/proxy/?url=https://content.instructables.com/F9A/OXOG/JA36SD6G/F9AOXOGJA36SD6G.png&filename=potloc6.png)
![9.jpg](/proxy/?url=https://content.instructables.com/FHD/KRFX/JA36T1W2/FHDKRFXJA36T1W2.jpg&filename=9.jpg)
![potloc4.png](/proxy/?url=https://content.instructables.com/FW8/38BV/JA36SD4B/FW838BVJA36SD4B.png&filename=potloc4.png)
with the Differential Comparators you can compare different voltages
look the diagram for the connections
if the lm339 output 0 is on
so i use NOR gates,i connect the outputs from comparators to the NOR inputs
and the 3 outputs from the NOR gates to the inputs of a triple NAND gate
when the left potentiometers are at the same position with the right potentiometers
the output is 0 (ON)
(LOOK THE TRUTH TABLE)
Leds
![potloc11.png](/proxy/?url=https://content.instructables.com/F72/JPBV/JA36UDE5/F72JPBVJA36UDE5.png&filename=potloc11.png)
if you want to see how the circuit works use leds at lm3391,74HC021,74HC10 outputs like the picture
The Combination
![10.jpg](/proxy/?url=https://content.instructables.com/F81/5CFO/JA36TNMO/F815CFOJA36TNMO.jpg&filename=10.jpg)
![potloc7.bmp](/proxy/?url=https://content.instructables.com/FSP/XW95/JA36TOLY/FSPXW95JA36TOLY.bmp&filename=potloc7.bmp)
print the numeric pads for the potentiometers for easiest setting of the combination
End
![1.JPG](/proxy/?url=https://content.instructables.com/FB6/5IEJ/JA36TSEW/FB65IEJJA36TSEW.jpg&filename=1.JPG)
![the potlock](/proxy/?url=https://content.instructables.com/FIK/NKVZ/JA36UFT3/FIKNKVZJA36UFT3.jpg&filename=the potlock)
you can use it just for education or you can lock something like box with a magnetic lock, add at the output a
PNP transistor with a relay or a N-Channel mosfet to control bigger loads than one led...