Project Overview: Animated Eyes with ESP32 and 0.96-Inch Display
Project Description
In this project, we'll create an engaging display featuring animated eyes using an ESP32 microcontroller and a 0.96-inch OLED display. The eyes will have pupils that continuously move, giving a lifelike effect. We will guide you through assembling the components, wiring them, programming the ESP32, and attaching the lid to complete your project.
Components Required
- ESP32 Development Board
- 0.96-Inch OLED Display
- Connecting Wires
- Breadboard (optional, for prototyping)
- Soldering Kit (for permanent connections)
- Adhesive (for attaching components to enclosures)
- 2 Enclosures:
- Standard Box
- Box for XRP Robot Integration
- Lid: For covering the assembled box
Materials
- Schematic Diagram: Includes wiring connections between the ESP32 and the OLED display.
- Arduino Code: A file containing the code to animate the eyes on the OLED display.
Assembly Instructions
Print and Prepare the Components:
- Print the schematic diagram to guide your wiring.
- Gather the ESP32, OLED display, and connecting wires.
Wiring the Components:
- Follow the schematic diagram to wire the OLED display to the ESP32.
- Use the soldering kit to make permanent connections if needed.
- Ensure all connections are secure to avoid any issues during operation.
Mount the Components:
- Attach the OLED display and ESP32 to the chosen enclosure:
- For the standard box: Use adhesive to secure the components inside.
- For the XRP robot box: Ensure the components are mounted in a way that they can be integrated with the robot.
Prepare and Attach the Lid:
- Standard Box: Align the lid with the top of the box. Secure the lid using adhesive or screws, depending on the design of your enclosure.
- XRP Robot Box: Attach the lid in a way that ensures it does not obstruct the integration with the robot. Check for proper alignment and secure it with screws or adhesive.
Programming the ESP32:
- Download the Arduino code from the provided file.
- Connect the ESP32 to your computer using a USB cable.
- Open the Arduino IDE and load the code.
- Select the correct board and port, then upload the code to the ESP32.
Final Assembly:
- Once the code is uploaded, ensure that all components are securely enclosed with the lid properly attached.
- Check that there are no exposed wires and that the display is visible through the enclosure.
Testing:
- Power on the ESP32 and observe the OLED display.
- The eyes should exhibit animated pupils moving around the screen.
Additional Notes
- Enclosures: The standard box is suitable for general use, while the XRP robot box is designed for integration with the XRP robot. Ensure compatibility and fit before final assembly.
- Code Customization: Feel free to modify the Arduino code to adjust the animation or add new features.
- Lid Design: Ensure the lid design complements the overall look of your project and provides adequate protection for the internal components.
Conclusion
Congratulations on completing your animated eyes display project! Your ESP32 and 0.96-inch OLED screen should now showcase eyes with dynamic pupils. This project not only demonstrates basic electronics and programming skills but also highlights the importance of thoughtful enclosure design.
If you have any questions or need further assistance, refer to the schematic diagram and Arduino code files provided. Enjoy your creative display!