

WormshakerPCB
STL files and software for "Novel Design and Evaluation of C. elegans Habituation Device"
- Size
- 20 × 20 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 8
- Nets
- 5
- Pads
- 16
- Tracks, vias
- 20, 0
- Pours
- 1
- Routed
- Yes
- KiCad
- KiCad 8.0 (file 20240108)
- Created
- 28 May 2024
- Updated
- 4 Oct 2026
Overview
WormshakerPCB is an open-source printed circuit board by AdithyaPuninchittaya, from the AdithyaPuninchittaya/worm-shaker repository on GitHub, published under the Apache-2.0 licence. It is a 2-layer board of 20 × 20 mm with 8 parts on 5 nets, routed with 20 tracks and 0 vias.
Its parts include 1 capacitor, 1 resistor, 1 diode, 1 transistor and 1 connector.
README
README.mdThe full research paper for this project which details the rationale, methods, results, and discussion is linked here: https://docs.google.com/document/d/1LjSq2D_FG7MaTCYWkhqbbYRr-aXNf1JoYAtKsyUWb9E/edit?usp=sharing. The relevant Materials and Methods section is listed below as a reference.
Design of Assembly
The habituation device was designed using Fusion 360 as a multi-part file on a PC. As shown in Figure 1, the bottom case houses the Seeed Studio XIAO SAMD21 microcontroller, with an opening for the USB-C combined data and power port. The bottom case has holes so that the entire C. elegans plate can be viewed under a bottom-lit stereo zoom microscope.
![]() |
|---|
| Figure 1: Image showing the bottom case of the habituation device. |
The top plate, as shown in Figure 2 below, is designed to simultaneously accommodate three 35 mm bacteriological Petri dishes in a triangular configuration. The top plate also has mounting points for the three vibration motors (Garosa Vibration Motor 11500rpm) placed equidistantly between the Petri dish holders. The motors were placed so that each was tangent to the two adjacent Petri dishes, ensuring an even distribution of vibrational stimuli.
![]() |
|---|
| Figure 2: Image showing the top plate and the associated wiring harness. |
The STL files for the design are found in the GitHub repository linked here: https://github.com/AdithyaPuninchittaya/worm-shaker.
Fabrication of Assembly
The STL files were sliced using Bambu Studio and then transferred to the Bambu Lab X1C printer, where the models were printed using Bambu PLA Basic filament. Once printing was completed, the printed parts were carefully removed from the print bed. Support materials were removed for smooth assembly. Heated inserts were installed in the designated holes for mounting components. The inserts were heated using a soldering iron and then pressed into the holes to create strong and threaded connections for screws.
A wiring harness was created to connect the vibration motors to the Seeed Studio XIAO SAMD21 microcontroller, as shown, using spare jumper wires. Wires from the motors were then routed against the device frame and hot-glued in place to the top plate. The wiring diagram is shown below in Figure 3.
![]() |
|---|
| *Figure 3: Image showing the wiring diagram for the wiring harness. * |
Programming
The Arduino Integrated Development Environment (IDE) was installed on a computer. The necessary library for the Seeed Studio XIAO SAMD21 was installed. The microcontroller was connected to the laptop via USB-C, and the board settings in the Arduino IDE were configured to match the analog port of the Seeed Studio XIAO SAMD21. A custom program was written to control the vibration sequence. The program included variables for vibration duration, intensity, and inter-stimulus interval. The program's main loop sends signals to the analog port, which activates the motors according to the specified parameters. The code can be found below in Figure 4 and in the GitHub repository linked here: https://github.com/AdithyaPuninchittaya/worm-shaker/wormshaker.ino. The program and vibration cycle runs when the device is powered via a USB-C cable.
![]() |
|---|
| Figure 4: Image showing example code that the microcontroller runs and a diagram of its cycle. |
Bill of Materials
| Item Name | Link | Unit Cost ($) | Quantity | Total Cost ($) |
|---|---|---|---|---|
| M3 Screws 10mm (100 pack of screws) | Amazon | 0.062 | 3 | 0.186 |
| Optional Rubber Washers (for dampening between plates) | Amazon | 0.3 | 3 | 0.9 |
| Heatset Inserts | Amazon | 0.07575 | 3 | 0.22725 |
| XIAO SAMD21 | Amazon | 8.33 | 1 | 8.33 |
| Male to Male Jumper Wires | Amazon | 0.999 | 5 | 4.995 |
| Vibration Motors | Amazon | 2.094 | 3 | 6.282 |
| Top Plate (STL File) | Print File | 0.60 | 1 | 0.60 |
| Bottom Case (STL File) | Print File | 1.07 | 1 | 1.07 |
| Total Cost | 22.60 |
RESULTS
![]() |
|---|
| *Figure 5: Final design and assembly of the habituation device, housing three 35 mm C. elegans plates * |
![]() |
|---|
| Figure 6: Image of habituation device on microscope setup for recording. |
Parts
8| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | MountingHole_2.2mm_M2_DIN965 | MountingHole:MountingHole_2.2mm_M2_DIN965 | REF1, REF2 |
| 1 | 1N4001 | Diode_THT:D_DO-41_SOD81_P10.16mm_Horizontal | D1 |
| 1 | 2N2219 | Package_TO_SOT_THT:TO-92L_Inline | Q1 |
| 1 | C | Capacitor_THT:C_Disc_D5.1mm_W3.2mm_P5.00mm | C1 |
| 1 | Conn_01x03 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J1 |
| 1 | Motor_DC | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | M1 |
| 1 | R | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R1 |
Similar boards
- 2 layers20.5 × 24.8 mm

- 2 layers14.4 × 10.5 mm

OSO SWAB B1-00 Sensor Watch Accelerometer
joeycastillo/Sensor-Watch
A board replacement for the classic Casio F-91W wristwatch
8 parts2.1k - 2 layers7.9 × 39.1 mm

Brain board STM32F407 SD wing it
rusefi/rusefi
rusefi - GPL internal combustion engine control unit
8 parts1.2k - 2 layers59.9 × 25.7 mm

Buffer
hoglet67/RGBtoHDMI
Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI
8 parts1kGPL-3.0 - 2 layers52 × 12.6 mm

USB
shanteacontrols/OpenDeck
A platform for building interactive control and sensing devices using MIDI and OSC built with Zephyr RTOS.
8 parts960Apache-2.0 - 2 layers87.5 × 48.5 mm

7 input macropad
hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!
8 parts915 - 2 layers36.2 × 63.1 mm

PicoMemcard pico
dangiu/PicoMemcard
Emulating PSX Memory Card (or controller) using a Raspberry Pi Pico
8 parts694GPL-3.0 - 2 layers36 × 10 mm

PCB4-PWR BTN Rev.A
OLIMEX/DIY-LAPTOP
Do It Yourself Open Source Hardware and Software Modular Hacker's Friendly Laptop
8 parts578Apache-2.0
Questions
How big is the WormshakerPCB PCB?
It measures 20 × 20 mm and has 2 copper layers, 1.6 mm thick.
What parts does the WormshakerPCB use?
8 parts. 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 WormshakerPCB KiCad files?
From the AdithyaPuninchittaya/worm-shaker repository on GitHub, at the commit this page was made from: the board is Motor Controller PCB/WormshakerPCB.kicad_pcb and its schematic Motor Controller PCB/WormshakerPCB.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the WormshakerPCB design in my own project?
Its repository publishes it under the Apache-2.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).
%20.jpg)
.jpg)



