

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
4ATMEGA328-PU
PDIP-28-40℃~+85℃ 1.8V~5.5V 10bit 1KB 20MHz 23 2KB 32KB 8 Bit AVR Built-in FLASH PDIP-28 Microcontrollers (MCU/MPU/SOC) ROHSMicrochip TechnologyMicrocontrollers (MCU/MPU/SOC)PAM8302AASCR
MSOP-8-40℃~+85℃ 0.3% 1-Channel 2.5Wx1@4Ω 2V~5.5V 4mA 50dB 80dB 85% Class D Filterless architecture MSOP-8 Audio Amplifiers ROHSDiodes IncorporatedAudio AmplifiersA4988
UncategorisedALLEGROMBR0520
SOD-123-55℃~+150℃ 20V 450mV@500mA 5.5A 500mA Independent SOD-123 Schottky Diodes ROHSJiangsu Changjing Electronics Technology (CJ)Schottky Diodes
README
Laser & Voice Assisted Cat Toy/README.mdLaser & 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:
- 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.
- CatToyOverview.pdf - A comprehensive 26-page report that displays the results of this project, alongside more in-depth technical descriptions for each subsystem.
- LaserPCB.kicad_pcb - KiCAD PCB file for the front-mounted PCB that contains the laser sensor.
- MainPCB.kicad_pcb - KiCAD PCB file for the main system PCB that contains all other sensors and outputs, alongside the microcontroller and additional connections.
- MainPCB.kicad_sch - KiCAD schematic file that compliments and provides the layed-out prototype for the aforementioned main PCB.
- 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:
Figure 1. Award for this project given by UIUC Professor Fang, placing within the top 7 projects among nearly 50 groups.
Design Figures:
Figure 2. Initial concept sketch for the cat toy, including all intended functionalities.
Figure 3. Initial concept render of disassembled front and back view of the toy.
Figure 4. Finalized CAD model of the toy alongside its interior.
Figure 5. Assembly of the final product, including buttons, sensors on the sides, holes for wheel mounts, power button, etc.
Figure 6. Main PCB design, not including the connections made in final assembly.
Figure 7. Laser PCB design, not including the connections made in final assembly.
Figure 8. Functionality of motor operations in final toy, red LED representing directions, and green representing motor steps. Laser detection here demonstrates directional change.
Figure 9. Vibration and treat dispensing functionality on display, treats are dispensed after three taps (catches).
Block Diagrams:
Figure 10. Block diagram for overall subsystems and their connections.
Figure 11. State machine that defines the general program behavior.
Subsystem Schematic Figures:
Figure 12. Overall circuit schematic diagram.
Figure 13. Sensor subsystem schematic diagram.
Figure 14. Microcontroller subsystem schematic diagram.
Figure 15. Motors & outputs subsystem schematic diagram.
Figure 16. Power subsystem schematic diagram.
Parts
39| Qty | Value | Footprint | References |
|---|---|---|---|
| 6 | 22uF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C6, C7, C8, C9, C10, C11 |
| 4 | MountingHole | MountingHole:MountingHole_2mm | H1, H2, H3, H4 |
| 2 | 0.1uF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C1, C2 |
| 2 | 1uF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C4, C5 |
| 2 | 22pF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C12, C13 |
| 2 | A4988 | Module:Pololu_Breakout-16_15.2x20.3mm | H-bridge-2, H-bridgr-1 |
| 1 | 10k | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R1 |
| 1 | 10uF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C3 |
| 1 | 16Mhz | Crystal:Crystal_HC49-U_Vertical | Y1 |
| 1 | ATmega328-P | Package_DIP:DIP-28_W7.62mm | ATmega |
| 1 | AVR-ISP-6 | Connector_IDC:IDC-Header_2x03_P2.54mm_Vertical | ISP |
| 1 | AZ1117-1.8 | Package_TO_SOT_SMD:SOT-223 | 1.8V |
| 1 | AZ1117-3.3 | Package_TO_SOT_SMD:SOT-223 | 3.3V |
| 1 | AZ1117-5.0 | Package_TO_SOT_SMD:SOT-223 | 5.0V |
| 1 | Battery | Connector_Molex:Molex_KK-254_AE-6410-02A_1x02_P2.54mm_Vertical | J5 |
| 1 | KY-038 | Connector_Molex:Molex_KK-254_AE-6410-04A_1x04_P2.54mm_Vertical | Sound |
| 1 | Laser_Data | Connector_Molex:Molex_KK-254_AE-6410-04A_1x04_P2.54mm_Vertical | Laser-Data |
| 1 | Laser_Power | Connector_Molex:Molex_KK-254_AE-6410-03A_1x03_P2.54mm_Vertical | Laser-Power |
| 1 | M1 | Connector_Molex:Molex_KK-254_AE-6410-04A_1x04_P2.54mm_Vertical | M1 |
| 1 | M2 | Connector_Molex:Molex_KK-254_AE-6410-04A_1x04_P2.54mm_Vertical | M2 |
| 1 | MBR0520 | Diode_SMD:D_SOD-123 | D1 |
| 1 | PAM8302AAS | Package_SO:SOP-8_3.9x4.9mm_P1.27mm | Amp |
| 1 | SW-420 | Connector_Molex:Molex_KK-254_AE-6410-03A_1x03_P2.54mm_Vertical | J12 |
| 1 | SW_Push | Package_TO_SOT_THT:TO-220-2_Vertical | SW |
| 1 | Speaker | Connector_Molex:Molex_KK-254_AE-6410-02A_1x02_P2.54mm_Vertical | Speaker |
| 1 | Tail | Connector_Molex:Molex_KK-254_AE-6410-03A_1x03_P2.54mm_Vertical | Tail |
| 1 | Treat | Connector_Molex:Molex_KK-254_AE-6410-03A_1x03_P2.54mm_Vertical | Treat |
More from PaulJablonski/Resume-Projects
1- 2 layers23.5 × 18.8 mm

Similar boards
- 32 layers121.9 × 53.3 mm

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 mm

- 4 layers121.9 × 44.4 mm

- 4 layers25.3 × 35.1 mm

Agb hifi audio pcb
cajunpanda/gameboy-hifi-audio
A HiFi audio mod for various Game Boy models
66 parts25MIT - 2 layers81 × 55 mm

- 4 layers54.7 × 78.5 mm

DisplayModule PONSv71
MasaoC/GPS-TFT-Map_PONS
鳥人間コンテストに特化したGNSS誘導システム。人力飛行機のパイロットが使いやすいことを目標にした航法装置です。ハードとソフトをオープンソースで開発しています。
151 parts14MIT - 2 layers82.5 × 136.7 mm

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 mm

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.