Skip to the content
2 layers20 × 20 mmWormshakerPCB, the printed circuit board in 3D

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.md

The 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.
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.
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.
*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.
Figure 4: Image showing example code that the microcontroller runs and a diagram of its cycle.

Bill of Materials

Item NameLinkUnit Cost ($)QuantityTotal Cost ($)
M3 Screws 10mm (100 pack of screws)Amazon0.06230.186
Optional Rubber Washers (for dampening between plates)Amazon0.330.9
Heatset InsertsAmazon0.0757530.22725
XIAO SAMD21Amazon8.3318.33
Male to Male Jumper WiresAmazon0.99954.995
Vibration MotorsAmazon2.09436.282
Top Plate (STL File)Print File0.6010.60
Bottom Case (STL File)Print File1.0711.07
Total Cost22.60

RESULTS

Figure 5: Final design and assembly of the habituation device, housing three 35 mm C. elegans plates
*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.
Figure 6: Image of habituation device on microscope setup for recording.

Parts

8
QtyValueFootprintReferences
2MountingHole_2.2mm_M2_DIN965MountingHole:MountingHole_2.2mm_M2_DIN965REF1, REF2
11N4001Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD1
12N2219Package_TO_SOT_THT:TO-92L_InlineQ1
1CCapacitor_THT:C_Disc_D5.1mm_W3.2mm_P5.00mmC1
1Conn_01x03Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ1
1Motor_DCConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalM1
1RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1

Similar boards

  • 2 layers20.5 × 24.8 mmPi interface, the printed circuit board in 3D

    Pi interface

    opulo-inc/lumenpnp

    The LumenPnP is an open source pick and place machine.

    8 parts3.7k
  • 2 layers59.9 × 25.7 mmBuffer, the printed circuit board in 3D

    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 mmUSB, the printed circuit board in 3D

    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 mm7 input macropad, the printed circuit board in 3D

    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 mmPicoMemcard pico, the printed circuit board in 3D

    PicoMemcard pico

    dangiu/PicoMemcard

    Emulating PSX Memory Card (or controller) using a Raspberry Pi Pico

    8 parts694GPL-3.0
  • 2 layers36 × 10 mmPCB4-PWR BTN Rev.A, the printed circuit board in 3D

    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).