loader image
Drag
Contact Info

Automatic Mousetrap with IoT and Orange Pi (First-Year High School Project)

During my first year of high school, I embarked on a challenging and rewarding project to develop an Automatic Mousetrap using IoT devices and an Orange Pi. This was my first major step into the world of IoT and automation, where I not only learned new technical skills but also began to understand how hardware and software can interact to solve real-world problems.

The Concept:

The idea behind this project was to create a fully automated mousetrap that could detect the presence of a mouse, trap it humanely, and provide users with real-time updates. It was an exciting opportunity to combine multiple technologies into one functional system. Since I had minimal experience with IoT at the time, this project was a hands-on learning experience that pushed me to explore various technical concepts.

Features and Functionality:

  • Camera-Based Detection: The mousetrap used a camera to detect when a mouse entered the trap.
  • Automatic Door Control: The mousetrap featured an automatic door system that would close as soon as the camera detected a mouse entering the trap. This part of the project required understanding the basics of motor control and how to manipulate hardware components using code. The door would stay closed until manually reset or opened via a button.
  • Manual Reset and Control: I incorporated a button on the system to allow for manual opening of the trap door. This provided users with control over when the trap should be reset, adding flexibility to the automated design.
  • Live Stream Integration: A key feature of the project was the live streaming capability. I integrated a live video feed of the mousetrap, allowing users to monitor the trap in real time. This required knowledge of streaming protocols and network communication to make the video feed accessible from remote devices.
  • Alarm System: To ensure users were immediately informed when a mouse was captured, I built an alarm system that would trigger as soon as the trap was activated. This alarm could be both visual (a flashing light) and audible (a buzzer), alerting users to check the trap.
  • Data Monitoring and Display: One of the final features of the mousetrap was a data display system. This screen would show real-time information such as the number of mice captured and the status of the trap. The display was useful for providing users with quick updates without needing to manually check the system.

Skills and Technologies Learned:

Before starting this project, I had very little exposure to IoT or hardware programming, so I had to learn everything from scratch. Some of the key skills I gained include:

  • Introduction to IoT: This project was my first introduction to the Internet of Things. I learned how to connect and manage various IoT components like cameras, buttons, and motors. Understanding how to make different hardware pieces communicate with each other was a major takeaway.
  • Orange Pi Development: I had no prior experience with the Orange Pi, so I had to familiarize myself with how to configure and use this powerful yet affordable device. I learned how to work with GPIO pins, control motors, and manage power systems.
  • Hardware Programming: I gained experience working with hardware components such as motors, sensors, and buttons. Learning how to program these devices and control them using software was one of the most challenging yet rewarding parts of the project.
  • Live Streaming Setup: Integrating live streaming into the system required learning about network communication and how to stream video from a camera to a user-friendly interface.
  • Real-Time Notifications: I built a notification system that included both an alarm and a screen display, requiring me to manage multiple outputs from the system and ensure real-time responsiveness.

Outcome:

The project was a success and marked a significant step forward in my technical development. Although it was a simple concept, the mousetrap demonstrated the potential of IoT and automation in solving everyday problems. It also gave me the confidence to tackle more complex projects in the future, as I had developed a strong foundation in working with hardware, software, and network technologies.

This project also helped me understand the importance of integrating different components and systems in a cohesive manner, a skill that I continue to apply in my current work.

Explanation video

 

Reflections:

Looking back, the Automatic Mousetrap project was a key turning point in my education. It ignited my passion for IoT, embedded systems, and automation, and provided me with the opportunity to build something practical from the ground up. The knowledge and skills I gained from this project laid the groundwork for many of my future projects and my continuing interest in innovation and technology.

en_GB