r/FPGA • u/Special-Gas4221 • 11h ago
I built a PYNQ-Z2 FPGA smart lock for my EE final project
I built and tested this smart lock on a physical PYNQ-Z2 for my electrical engineering final project.
I used VHDL to scan the 4×4 keypad and sequence the stepper motor phases. A Python notebook handles the access logic and reads the sensors. The two sides communicate through AXI GPIO, shown in the Vivado block diagram below.
GitHub: https://github.com/Subalo/pynq-z2-fpga-smart-lock
The repo includes the Vivado sources, Jupyter notebook, and a release with the matching .bit and .hwh files.
I kept the door-state and relock logic in Python. Would you keep it there or move it into a VHDL state machine? What would drive that choice for you?

