Project Perspective
PuzzleBox is an intuitive and simple puzzle box layout for any electronics enthusiast. By utilizing several push buttons and an OLED display, you can build a fun and engaging puzzle with ease.
Technical Implementation
The system uses several Push Buttons as input and an OLED Display to show the puzzle's status and any feedback. When the correct combination is entered, the Arduino triggers a Servo Motor to open the box.
Hardware Infrastructure
- Arduino Uno: The primary controller for the puzzle box's logic and sensors.
- Push Buttons: Used to enter the combination.
- OLED Display: Provides visual feedback on the puzzle's status and any entered characters.
- Servo Motor (SG90): The lock for the puzzle box.
- Piezo Buzzer: Sound for correct and incorrect code entries.
- Micro-USB Cable: Connects the Arduino to your computer for power and code.
- Jumper Wires: Connect all the components together.
Passcode Logic and Logic
The Arduino code uses the Adafruit SSD1306 and Arduino libraries.
- Polling: The Arduino constantly asks the push buttons for any key presses.
- Combination Verification: Any pressed key is compared against the pre-defined combination.
- Lock/Feedback Feedback: If the combination is correct, the servo rotates to the "Open" position, the buzzer sounds a "Win" melody, and the OLED shows "ACCESS GRANTED." If incorrect, an error message is shown, and the buzzer sounds a "Fail" tone.
Software Execution
The code is designed to update the OLED display after each key press and keep it synchronized with the puzzle box's overall status. This provides a highly responsive and engaging user interface.
Future Expansion
- Custom Puzzle Modes: Add a potentiometer or a push button to choose between different puzzle modes.
- External Feedback Integration: Connect to an external LED array or a web service for more complex feedback.
- MQTT Integration: Connect to an MQTT broker for even more advanced IoT puzzle box monitoring.
- Advanced UI Design Integration: Design a more sophisticated user interface on the OLED display.
PuzzleBox is a perfect project for any electronics enthusiast looking for a more interactive and engaging puzzle tool!