Skip to the content
2 layers82.8 × 51.8 mmMainPCB, the printed circuit board in 3D

Projects that are a part of my independent studies.

Size
82.8 × 51.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
39
Nets
49
Pads
156
Tracks, vias
288, 20
Pours
1
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
11 Apr 2024
Updated
10 Aug 2025

Overview

MainPCB is an open-source printed circuit board by PaulJablonski, from the PaulJablonski/Resume-Projects repository on GitHub. It is a 2-layer board of 82.8 × 51.8 mm with 39 parts on 49 nets, routed with 288 tracks and 20 vias.

It is built around the ATMEGA328-PU, PAM8302AASCR and A4988, with the MBR0520 among its other parts. Its parts include 13 capacitors, 2 connectors, 1 resistor, 1 diode and 1 crystal. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

4

README

Laser & Voice Assisted Cat Toy/README.md

Laser & Voice Assisted Cat Toy

Description:

This project involves a mouse-like toy, which has been seen before, but is now refined with multiple more advanced systems. The primary sensors consist of a distance measuring laser, a vibrational sensor, and a microphone in tandem with a miniature speaker. The first two serve in engaging the cat and improving both longevity and noise generation, whereas the final sensor system vastly improves user interaction through various voice commands. More specifically, the laser can be utilized to avoid collisions and detect ahead of the mouse, sparking movement changes that are more realistic for an animal. The vibrational sensor furthermore detects when the toy has been caught, which either dispenses a treat or plays dead depending on the toy's state. Finally, the aforementioned voice commands allow for the user to locate the toy at any time, or manually activate the toy itself without a need for physical contact.

Physically speaking, the non-rolling shape of a mouse also allows for more rigid and controllable movement. This is important for stabilizing the toy’s primary sensors and allows for greater reactivity to its environment and consequently less noisy behavior. The sensors as mentioned also are accompanied by several motorized and more physical systems. A moving tail is used to mimic the more excitatory behaviors of prey, making it more engaging than a typical toy's static tail. This is accompanied by faster motorized movements and more realistic movement states as is regulated by a microcontroller and stepper motor-driven wheel system. Further speaking, a latch can be controlled through a servo and used for dispensing treats from the back of the toy upon being caught. And finally, a rechargeable lithium ion battery is incorporated and regulated by a circuit protection system for easy re-usability.

The toy itself comprises four total subsystems:

  • Sensor subsystem, including a VL53L1X laser sensor, an SW-420 vibration sensor, and a KY-038 sound sensor.
  • Microcontroller subsystem, comprised of the ATmega328p, taking inputs from the sensor subsystem, and outputting to the motors and outputs subsystem.
  • Motors and outputs subsystem, consisting of two Nema 17 short body motors, two SG90 servo motors, two A4988 stepper drivers, a PAM8302 sound amplifier, and one JSM 2.5mm speaker.
  • Power subsystem, which has a 11.1V lithium-ion battery, three AZ1117 voltage regulators, and a CYT1091 button.

Included Files:

  1. CAD - Includes all CAD files for the cat toy, including both versions of its main body, top and bottom panels, and its separate cover for treat dispensing that attaches to the toy's treat servo motor.
  2. CatToyOverview.pdf - A comprehensive 26-page report that displays the results of this project, alongside more in-depth technical descriptions for each subsystem.
  3. LaserPCB.kicad_pcb - KiCAD PCB file for the front-mounted PCB that contains the laser sensor.
  4. MainPCB.kicad_pcb - KiCAD PCB file for the main system PCB that contains all other sensors and outputs, alongside the microcontroller and additional connections.
  5. MainPCB.kicad_sch - KiCAD schematic file that compliments and provides the layed-out prototype for the aforementioned main PCB.
  6. ToyFirmware.ino - Arduino code file that contains all states and operations of the toy's programmed behavior. This file serves as its primary state machine and is loaded onto the final version's ATmega328p controller.

Demonstration Video (Click on image):

Honorable Mention Award:

CT1 CT1

Figure 1. Award for this project given by UIUC Professor Fang, placing within the top 7 projects among nearly 50 groups.

Design Figures:

CT1

Figure 2. Initial concept sketch for the cat toy, including all intended functionalities.

CT2

Figure 3. Initial concept render of disassembled front and back view of the toy.

CT3 CT3

Figure 4. Finalized CAD model of the toy alongside its interior.

CT4 CT4

Figure 5. Assembly of the final product, including buttons, sensors on the sides, holes for wheel mounts, power button, etc.

CT8 CT8

Figure 6. Main PCB design, not including the connections made in final assembly.

CT9

Figure 7. Laser PCB design, not including the connections made in final assembly.

CT4 CT4

Figure 8. Functionality of motor operations in final toy, red LED representing directions, and green representing motor steps. Laser detection here demonstrates directional change.

CT5 CT5

Figure 9. Vibration and treat dispensing functionality on display, treats are dispensed after three taps (catches).

Block Diagrams:

CT6

Figure 10. Block diagram for overall subsystems and their connections.

CT7

Figure 11. State machine that defines the general program behavior.

Subsystem Schematic Figures:

CT10

Figure 12. Overall circuit schematic diagram.

CT10

Figure 13. Sensor subsystem schematic diagram.

CT10

Figure 14. Microcontroller subsystem schematic diagram.

CT10

Figure 15. Motors & outputs subsystem schematic diagram.

CT10

Figure 16. Power subsystem schematic diagram.

Parts

39
QtyValueFootprintReferences
622uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC6, C7, C8, C9, C10, C11
4MountingHoleMountingHole:MountingHole_2mmH1, H2, H3, H4
20.1uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1, C2
21uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC4, C5
222pFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC12, C13
2A4988Module:Pololu_Breakout-16_15.2x20.3mmH-bridge-2, H-bridgr-1
110kResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR1
110uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC3
116MhzCrystal:Crystal_HC49-U_VerticalY1
1ATmega328-PPackage_DIP:DIP-28_W7.62mmATmega
1AVR-ISP-6Connector_IDC:IDC-Header_2x03_P2.54mm_VerticalISP
1AZ1117-1.8Package_TO_SOT_SMD:SOT-2231.8V
1AZ1117-3.3Package_TO_SOT_SMD:SOT-2233.3V
1AZ1117-5.0Package_TO_SOT_SMD:SOT-2235.0V
1BatteryConnector_Molex:Molex_KK-254_AE-6410-02A_1x02_P2.54mm_VerticalJ5
1KY-038Connector_Molex:Molex_KK-254_AE-6410-04A_1x04_P2.54mm_VerticalSound
1Laser_DataConnector_Molex:Molex_KK-254_AE-6410-04A_1x04_P2.54mm_VerticalLaser-Data
1Laser_PowerConnector_Molex:Molex_KK-254_AE-6410-03A_1x03_P2.54mm_VerticalLaser-Power
1M1Connector_Molex:Molex_KK-254_AE-6410-04A_1x04_P2.54mm_VerticalM1
1M2Connector_Molex:Molex_KK-254_AE-6410-04A_1x04_P2.54mm_VerticalM2
1MBR0520Diode_SMD:D_SOD-123D1
1PAM8302AASPackage_SO:SOP-8_3.9x4.9mm_P1.27mmAmp
1SW-420Connector_Molex:Molex_KK-254_AE-6410-03A_1x03_P2.54mm_VerticalJ12
1SW_PushPackage_TO_SOT_THT:TO-220-2_VerticalSW
1SpeakerConnector_Molex:Molex_KK-254_AE-6410-02A_1x02_P2.54mm_VerticalSpeaker
1TailConnector_Molex:Molex_KK-254_AE-6410-03A_1x03_P2.54mm_VerticalTail
1TreatConnector_Molex:Molex_KK-254_AE-6410-03A_1x03_P2.54mm_VerticalTreat

More from PaulJablonski/Resume-Projects

1
  • 2 layers23.5 × 18.8 mmLaserPCB, the printed circuit board in 3D

    LaserPCB

    PaulJablonski/Resume-Projects

    Projects that are a part of my independent studies.

    11 parts

Similar boards

  • 32 layers121.9 × 53.3 mmDocumentary, the printed circuit board in 3D

    Documentary

    XasWorks/Hexa-Bot

    Public repository of all necessary files for the Kolleg St. Thomas Robo-Cup participating Robot.

    24 parts6GPL-3.0
  • 2 layers93.1 × 158.3 mmMegaMouse, the printed circuit board in 3D

    MegaMouse

    KenwoodFox/MegaMouse

    MegaMouse! An atmega 328p powered micromouse!

    136 parts3MIT
  • 4 layers121.9 × 44.4 mmBurnedHead, the printed circuit board in 3D

    BurnedHead

    justinbalexander/BurnedHead

    A handheld game console

    92 parts45Unlicense
  • 4 layers25.3 × 35.1 mmAgb hifi audio pcb, the printed circuit board in 3D

    Agb hifi audio pcb

    cajunpanda/gameboy-hifi-audio

    A HiFi audio mod for various Game Boy models

    66 parts25MIT
  • 2 layers81 × 55 mmFABI schematic, the printed circuit board in 3D

    FABI schematic

    asterics/FABI

    The repository for FABI (Flexible Assistive Button Interface)

    80 parts22
  • 4 layers54.7 × 78.5 mmDisplayModule PONSv71, the printed circuit board in 3D

    DisplayModule PONSv71

    MasaoC/GPS-TFT-Map_PONS

    鳥人間コンテストに特化したGNSS誘導システム。人力飛行機のパイロットが使いやすいことを目標にした航法装置です。ハードとソフトをオープンソースで開発しています。

    151 parts14MIT
  • 2 layers82.5 × 136.7 mmGameboy dmg, the printed circuit board in 3D

    Gameboy dmg

    alxhoff/gameboy-dmg-pcb

    PCB for Gameboy DMG with audio and GPIO expander to provide I2C interface to push buttons

    95 parts4GPL-3.0
  • 4 layers182 × 150 mmStarman, the printed circuit board in 3D

    Starman

    adamm/starman

    Starman Christmas Tree Topper PCB

    248 parts3

Questions

How big is the MainPCB PCB?

It measures 82.8 × 51.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the MainPCB use?

39 parts, built around the ATMEGA328-PU, PAM8302AASCR, A4988 and MBR0520. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the MainPCB KiCad files?

From the PaulJablonski/Resume-Projects repository on GitHub, at the commit this page was made from: the board is Laser & Voice Assisted Cat Toy/MainPCB.kicad_pcb and its schematic Laser & Voice Assisted Cat Toy/MainPCB.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the MainPCB design in my own project?

Its repository states no licence, so its author keeps all rights: ask PaulJablonski before reusing the design.