Skip to main content
Version: ACS CC

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

diagram

  • 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

diagram

Bill of Materials

DeviceUsagePrice
Raspberry Pi Pico 2WMicrocontroller39.66 Lei
Raspberry Pi Pico RP2040Debugger30.00 Lei
Breadboard kitElectrical connections22 Lei
Infrared sensorObstacle avoidance3.49 Lei
Micro Motor DC N60DC motors4.99 Lei x 2
Dual Motor driverMotor control3.73 Lei
Ball supportEase of movement3.95 Lei
AccelerometerMovement sensor12.99 Lei
Battery wirePower supply1.49 Lei
9V BatteryPower supply4.87 Lei
Micro ServomotorTail movement mechanism11.99

Total: 144.17

Software

LibraryDescriptionUsage
embassy_rpHAL for the Raspberry Pi PICO 2W microcontrollerUsed to program the Pico
infraredInfrared sensor libraryUsed for the infrared sensors
embassy-executorAn async/await executor designed for embedded usageUsed for task execution
syactLibrary for controlling more complex motors, such as servomotorsUsed for controlling the servomotor
  1. Inspiration for this project
  2. Two wheeled line follower - not the same idea but similar execution