Spicy the mouse
Interactive chase toy for cats!
info
Author: IACOB Ioana-Delia
GitHub Project Link: https://github.com/UPB-PMRust-Students/proiect-iacobDelia
Description
Spicy the mouse is an interactive cat toy for cats. It wags its tail as it moves around the room and stops once it encounters any obstacles or the cat topples it.
Motivation
Pets are a significant part of our lives and important members of our families. The interactive cat toys I saw in stores were my inspiration for this project. This way I could learn about microcontroller programming and hardware interaction while building something I enjoy.
Architecture
- The microcontroller controls the behaviour of the components
- The DC motors will be controlled to move randomly
- The servomotor will have a continious back and forth movement
- Using the accelerometer or the infrared sensor the robot will stop when the cat topples it or when the robot encounters a wall respectively
Log
Week 5 - 11 May
Week 12 - 18 May
Week 19 - 25 May
Hardware
- Raspberry pi pico 2w: the microcontroller
- The accelerometer: used for detecting changes in the movement of the robot
- The infrared sensor: used for wall detection
- The servomotor: mimics the movements of a tail
- DC motors: movement
- Dual motor driver: helps control the DC motors
Schematics
Bill of Materials
Device | Usage | Price |
---|---|---|
Raspberry Pi Pico 2W | Microcontroller | 39.66 Lei |
Raspberry Pi Pico RP2040 | Debugger | 30.00 Lei |
Breadboard kit | Electrical connections | 22 Lei |
Infrared sensor | Obstacle avoidance | 3.49 Lei |
Micro Motor DC N60 | DC motors | 4.99 Lei x 2 |
Dual Motor driver | Motor control | 3.73 Lei |
Ball support | Ease of movement | 3.95 Lei |
Accelerometer | Movement sensor | 12.99 Lei |
Battery wire | Power supply | 1.49 Lei |
9V Battery | Power supply | 4.87 Lei |
Micro Servomotor | Tail movement mechanism | 11.99 |
Total: 144.17
Software
Library | Description | Usage |
---|---|---|
embassy_rp | HAL for the Raspberry Pi PICO 2W microcontroller | Used to program the Pico |
infrared | Infrared sensor library | Used for the infrared sensors |
embassy-executor | An async/await executor designed for embedded usage | Used for task execution |
syact | Library for controlling more complex motors, such as servomotors | Used for controlling the servomotor |
Links
- Inspiration for this project
- Two wheeled line follower - not the same idea but similar execution