Skip to the content
2 layers169 × 81 mmSG mesocosm pi interface, the printed circuit board in 3D

Supplementary material for Bancroft Experimental Temperature Control System

Size
169 × 81 mm
Copper layers
2
Thickness
1.6 mm
Parts
77
Nets
54
Pads
271
Tracks, vias
599, 17
Pours
1
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
10 Oct 2021
Updated
30 Oct 2025

Overview

SG mesocosm pi interface is an open-source printed circuit board by scott-whitworth, from the scott-whitworth/bancroft_temperature_control repository on GitHub. It is a 2-layer board of 169 × 81 mm with 77 parts on 54 nets, routed with 599 tracks and 17 vias.

It is built around the TBD62783APG, PPPC031LFBN-RC and PJ-002A. Its parts include 33 connectors and 2 ICs. It belongs with the interfaces and adapters boards of this library.

Main components

3

README

README.md

bancroft-lab-shia Supplementary Repository

This is a repository of software, hardware specification and data related to a distributed embedded ecological temperature control system.

Funding for this work was provided by a grant from the National Science Foundation ( 2222214 ). Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.

This work is based on previous work supported by Whitworth's Summer STEM Research Program and the M.J. Murdock Charitable Trust.

Contributors

Technical Lead:
Scott Griffith, Whitworth University

Science Leads:
Betsy Bancroft, Gonzaga University
Annika Rose-Person, Gonzaga University
Tiffany Garcia, Oregon State University

Student Developers and Maintainers
Summer 2023 - Sarah Mott, Matheus Mielle Silva, Whitworth University
Summer 2024 - Keegan Davis, Wes Ostlund, Whitworth University
Spring 2025 - Matheus Mielle Silva, Salim Dhahri, Whitworth University
Summer 2025 - Eli Chapman, Whitworth University

Repository Overview

Sub Folder
./archiveCode for posterity and reference. If someone wanted to re-develop this system on a different platform, these files might be useful references
./configsThis system is highly configurable for various temperature needed. Documentation and examples for system configuration.
./hardwareHardware specifications and documentation for custom interface boards.
./pythonCodeAll of the python scripts used on the Raspberry Pis for Remote and Central nodes
./supplementaryDataDiagnostic or representative data collected regarding the system. Diagrams and photos of the system.
./systemSetup.service files and information on configuring automatic start up of the system
./tempDataPlaceholder for output data. Both centralNode.py and remoteNode.py write various log files to this directory.
./utilityOneWire address reading arduino code
./websiteFilesRudimentary web interface for the system. Uses Flask.

System Overview

Four example temperature profiles, across different tanks. Triangles are Future, Circles are Historic

This system is specifically designed to facilitate ecological climate change experiments. The core requirement of the system is to individually control and record the temperature for a collection of aquarium tanks. The context of this system is to be generate varied and dynamic temperature conditions in fresh water ecosystem experiments. The system is able to replicate day/night cooling/heating cycles as well as day-to-day seasonal temperature shifts.

One configuration of the system is controlling the temperature of aquarium tanks located inside of a temperature controlled room. In this configuration the cooling of the tanks is achieved via the ambient temperature of the room, heating is driven by aquarium heaters in each tank. In this configuration various temperature treatments can be applied across tanks in the experiment. In the past we have used field-data derived control treatments, predictive future-offset treatments, extreme heat effect treatments, as well as gradient offset treatments.

Another configuration the system can be applied to is monitoring and dynamically applying an 'ambient + offset' heating effect in outdoor mesocosm experiments. In this configuration individual tank set-points can be derived from other tank's current temperature. This gives the ability to have a control treatment that follows environmental heating and cooling, and other offset-based treatments based off of the control temperatures. We have used static offset (i.e. +4 degrees C above ambient) as well as extreme heat effect (i.e. +10 degree C for x number of days, +0 offset other days).

System configuration is flexible for experiments with varying numbers of tanks. We have configured indoor experiments with varying numbers of tanks from 32 to 96. System configuration is flexible for experiments with varying number of temperature probes per tank and varying number of aquarium heaters per tank. This system uses relatively simple to manufacture interface boards and off-the-shelf Raspberry Pi computers in an attempt to keep implementation as cost-effective as possible.

The basic concept behind the system's design is that a tank will have some actual temperature that is derived from measurements from one or more temperature probes. Each tank will also have a temperature set-point pulled directly from a treatment file, or calculated as an offset to an ambient temperature. Then a choice is made for each tank to turn a heater on or off based on those two temperatures. Heaters are controlled via 120V relays, so off-the-shelf aquarium heaters of various heating power can be used as appropriate to the size of tank. There are other features, like power-load leveling, that are implemented to aid in the scalability of large experiments.

This repository contains all of the code that is run on the Raspberry Pi computers, the hardware specifications for the integration boards, and the set-up configuration for the system. We have also included information pertaining to previous iterations of this system, most of these artifacts are stored within the archive directory. The first use of the current iteration was over the summer of 2024. Any references pre-dating then were utilizing a similar context, but with different hardware and software controls.

Example Configurations

System Naming Information

For context: the lab has a long running fixation with the American actor Shia LaBeouf (https://www.youtube.com/watch?v=o0u4M6vppCI). The lab also loves Tolkien and Harry Potter. In reality, we just needed a lot of distinct names for 33+ nodes.

Laboratory Experiment Example Configuration

Rack of aquarium tanks with temperature and heater wires. Remote node on top

Location: Gonzaga University, Hughes Science Hall
Two, approximately 10ft by 8ft, temperature controlled rooms, each set at a static 14 degrees C
Summer 2025

Goal: support 96 2.5-gallon aquarium tanks.
Heaters: one 50W ViaAqua Quartz Submersible Heater per tank
Temperature probes: one DS18B20 per tank
Due to power distribution and cooling needs, 48 tanks were set up in each room.

System Set Up
Node TypeNode NameTanksPower Circuit
Central NodeSam1
Remote NodeFrodo1 - 161
Remote NodePippin17 - 321
Remote NodeMerry33 - 482
Remote NodeBilbo49 - 643
Remote NodeRosie65 - 803
Remote NodeSmeagol81 - 964

Power Circuit: In each room there there are two power circuits, one 15 AMP service and one 20 AMP service (for a total of 4 circuits across both rooms). The nodes are spread out across circuits so that the 20 AMP services support 32 heaters and the 15 AMP services support 16 heaters. If we were to put all 96 tanks in the same room, which we have done in the past, it would be possible for the power draw to trip the associated breakers. In such a configuration, the software supports power cycling to limit the max number of heaters on at a given time.

Experiments Supported

Fall 2025 Summer 2025
Spring 2025 Fall 2024 Summer 2024

Fall 2025

  • We are currently planning a project that will investigate the effects of press (increased baseline temperature) and pulse (a short, intense and a long, less-intense heat wave) temperature stress on zooplankton communities.

Summer 2025

  • Carried out two projects assessing the impact of predator-prey relationships under thermal stress.
  • In the first project, we tested the effects of press and pulse heat events in the form of an elevated temperature treatment (press event) and two different types of extreme heat events (pulse events) in tandem with the presence or absence of the widespread and highly successful dragonfly (family Aeshnidae) nymph predators on the growth, development, morphology and behavior of Pacific chorus frog (Pseudacris regilla) tadpoles. We found that tadpole change in mass was influenced by temperature and predator presence as well as their interaction: for example, as the accumulated heat exposure increased, tadpoles developed more quickly overall (p<0.001), but this trend was nearly significantly less strong in the presence of a predator (p=0.067).
  • In the second project, we tested the effects of heat and predatory chemical cues on Pacific chorus frogs (Pseudacris regilla), from tadpole through frog stage, using a multi-factorial experiment that exposed tadpoles to predatory cues from dytiscid beetle larvae and elevated temperatures. Preliminary results indicate that exposure to predatory stress resulted in an increased metamorphic rate in tadpoles, and the measurements of live adult frogs are ongoing.

Spring 2025

  • Executed an experiment that tested how a temperature gradient and a heat shock influence the development and morphology of Pacific chorus frogs (Pseudacris regilla), from egg to tadpole stage. We found that warmer tank temperatures led to earlier egg hatching dates, though this effect was weaker in eggs that experienced a heat shock, and that larval growth and developmental rates were impacted by temperature with a threshold at approximately 22°C.

Fall 2024

  • Completed an experiment assessing competition between the native freshwater snail Physa skinneri and the invasive freshwater snail Radix auricularia under temperature stress in the form of a short, extreme heat event and a long, less-extreme heat event. While we observed extremely high mortality rates in R. auricularia, likely driven by low dissolved oxygen in tanks, we found that the effect of competition between taxa was less detrimental to the change in mass of small Physa than was the effect of intraspecific competition (p<0.05), though this may have been due to the absence of Radix snails from tanks after their mortality.

Summer 2023

  • Carried out a project that investigated the impacts of climate change and extreme temperature events on larval salamander (Ambystoma macrodactylum) behavior and morphology. Results indicated that long-term, low intensity thermal shifts have large impacts on foraging behavior and prey choice, while short-term, high intensity thermal shifts have immediate physical impacts.

Mesocosm Experiment Example Configuration

A collection of tubs outside on a concrete pad, all covered in netting with wires and cables routed around them.

Location: John L Fryer Aquatic Animal Health Laboratory, Oregon State University
Summer 2025

Goal: support 48 190-L outdoor tanks.
Heaters: one 500W hygger 802 Aquarium Heating Element per tank
Temperature probes: two DS18B20 per tank

Due to the significant power draw of 500W heaters, eight dedicated 20AMP 120V power circuits were needed. The heaters were evenly loaded across the power circuits. Because of the single Relay Pack interface used, a single node could only be connected to one power source. This meant that there were power distribution nodes (1,3,4,6,7,9,10 and 12) and supplementary nodes (2,5,8,11). The supplementary nodes were only connected to temperature probes and were powered via the other circuits.

System Set Up
Node TypeNode NameNode IndexTemp Probes for TanksHeater Control for TanksPower Circuit
Central Nodealbus1
Remote Noderubeus11, 2, 4, 51-61
Remote Nodeseverus23, 6, 7, 101
Remote Nodeminerva38, 9, 11, 127-122
Remote Noderemus413, 14, 16, 1713-183
Remote Nodegilderoy515, 18, 19, 223
Remote Nodesybill620, 21, 23, 2419-244
Remote Nodefilius725, 26, 28, 2925-305
Remote Nodepomona827, 30, 31, 345
Remote Nodeaurora932, 33, 35, 3631-366
Remote Nodeseptima1037, 38, 40, 4137-427
Remote Nodefirenze1139, 42, 43, 467
Remote Nodeneville1244, 45, 47, 4843-488

This experiment also used ambient clustering. Sets of 6 tanks were logically connected to compute a local ambient temperature. The ambient clustering followed the power circuits, so all of the tanks attached to circuit 1 (tanks 1-6) were part of the same ambient cluster.

A summary of the above information is described in the following diagram.

System planning diagram drawn out on a chalk board. Replicates information stored in previous table.
Experiments Supported

Spring 2024

  • Initially planned as a 10-week experiment from mid April to end of June utilizing three temperature treatments: an un-heated ambient control treatment, a static +4 degreeC ambient + offset treatment as well as a extreme heating event treatment (+10 degreesC for 5 days). Mesocosms were populated with samples from both temporary and permanent ponds from the Willamette Valley.

Software Overview

There are two primary software contexts that make up the system: The Central Node and the Remote Node. Both contexts communicate using RabbitMQ message queues, with the Central Node co-hosting a RabbitMQ server, as well as the control python scripts.

General system diagram. Shown supporting 32 tanks.

Central Node

The Central Node is the main configuration point for the system, as well as the primary control of the overall system state. The Central Node manages dedicated RabbitMQ message queues that are used by each of the Remote Nodes. Remote Nodes send in temperature messages and the Central Node makes choices based on those temperature messages. The Central Node manages the state of the heaters attached to Remote Nodes based on temperature calculations derived from received temperature messages in conjunction with temperature treatment information pulled from configuration files. The Central Node also manages circuit load balancing.

The Central Node calculates fusedTemp values for each tank based on the configured probes. If a tank has more than one assigned probe, the Central Node will take the median of all attached temperature probes as that tank's fused temperature. The system still records the intermediate values for accurate post-processing.

Remote Node

The system will likely be set up with many Remote Nodes. Each Remote Node is connected to one interface board. That interface board can control up to 16 heater channels and up to 36 temperature probe channels. Remote Nodes relay temperature measurements to the Central Node, via temperature update messages with corresponding OneWire addresses. These addresses are what is configured on the Central Node, so there is not a direct need to have temperature probes plugged into specific Remote Nodes, just that they are plugged into any Remote Node. Remote Nodes receive heater control messages from the Central Node. When received, the Remote Node changes the state of heater relay channels accordingly.

More information about system configuration can be found in the ./configs subdirectory. All of the python code can be found in the pythonCode subdirectory.

Installed Remote Node Examples

Remote Node detail from Gonzaga Lab setup. Fall 2024
Raspberry Pi Remote Node mounted on board in temperature controlled room. Additional components include an interface board and power relay packs.

Remote Node detail from OSU Mesocosm setup. Spring 2024
Raspberry Pi Remote Node in a weather-proof clear plastic tub. Additional components include an interface board and power relay pack.

Hardware Overview

Networking

The Central Node needs to be connected to an IP network system to communicate with the Remote Nodes. Each node needs to have a dedicated static IP address to aid in setting up the communication pathways. It is also beneficial for the Central Node to have access to a NTP (Network Time Protocol) source for accurate time stamp calculations. HTTP access is also needed if using the web interface for monitoring.

In both examples described above, some form of network segmentation and VLAN access was used to create system-specific networking contexts.

Interface Boards

Each Remote Node needs a corresponding interface board. These boards are described in detail within the ./hardware subdirectory.

Other Hardware

Remote Nodes interface with DS18 OneWire temperature probes. We purchased custom 4 meter, 3-pin cable assemblies from JuBaoLai Electronics.

Remote Nodes interface with ADJ SRP8 relay packs. These relay packs are a basic enclosures for 120V-rated relays. Shortly after finalizing the design of the interface boards, the relay packs were marked as 'discontinued.' While still sporadically available, the electronics inside are not overly complicated and their functionality could be reproduced.

Bill of Material

Prices below are representative of when material was purchased (2024-2025) but is included as a reference for general cost. Shipping and tax are not included. Some elements benefit from bulk ordering, prices are what we actually paid.

Central Node and Networking

ItemUnit PriceQuantitySource
Raspberry Pi 4, 2GB (with power, SD and case)$84.991https://vilros.com/products/vilros-raspberry-pi-4-complete-starter-kit
Unmanaged Network Switch$76.991https://www.officedepot.com/a/products/140194/TP-Link-16-Port-Gigabit-Ethernet
20ft Cat6 Ethernet Cable$9.791https://www.amazon.com/dp/B00G9BN9KW
Total$171.11

Single Remote Node used in Laboratory Experiments

This represents the approximate cost for one Remote Node. The number of tanks a Remote Node can support is based on system configuration. In the GU Lab set up detailed above, each remote node mapped to 16 tanks. In the OSU Mesocosm setup detailed above, a remote node mapped to 4-ish tanks. This does not include the cost of the aquarium heaters connected to the system or power distribution material.

ItemUnit PriceQuantitySource
Raspberry Pi 4, 2GB (with power, SD and case)$84.991https://vilros.com/products/vilros-raspberry-pi-4-complete-starter-kit
Interface Board + 12V Power$23.591Custom Interface Board
Adaptor Board$9.941Custom Adaptor Board
ADJ SRP8 relay packs$51.992see note below
DS18B20 Temperature Probe assembly, 4 meter cable$1.5016Custom fabricated by Shenzhen JuBaoLai Electronics, similar to https://www.sparkfun.com/products/11050
20ft Cat6 Ethernet Cable$9.791https://www.amazon.com/dp/B00G9BN9KW
Total$256.29

Approximate material for a for a 96 tank lab setup: $1,700

Note about ADJ SRP8 Relay Packs When we started designing this system in 2023, we contacted American DJ, the company that sells the SRP8 relay packs. We were assured that the packs would not be discontinued for the foreseeable future. As soon as we finalized the electronic design of the interface board and went to purchase all of the SRP8 relay packs we needed, they were marked as discontinued. We were able to source them, mainly purchasing them in small lots whenever they were in stock. In October of 2025, they are sill available in limited quantities from various online marketplaces.

Future Work Notes

  • Current development focus is developing web-based interface for system.
  • Need to develop utility to manage and create temperature profiles.

License Information for 3rd party Software

Parts

77
QtyValueFootprintReferences
33PPPC031LFBN-RCDigikey_Schematics:CONN_PPPC031LFBN-RC_SULJ1, J2, J10, J11, J12, J13, J14, J15, J16, J17, J18, J19, J20, J21, J22, J23 +17
18CQY99LED_THT:LED_D5.0mm_IRGrey5V_PWR, 12V_PWR, D11, D12, D13, D14, D15, D16, D17, D18, D21, D22, D23, D24, D25, D26 +2
171k RResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR-1k, R11, R12, R13, R14, R15, R16, R17, R18, R21, R22, R23, R24, R25, R26, R27 +1
2A-DS 09 A/KG-T2SDigikey_Schematics:CONN09_A-DS_30P81X12P55_ASMRP_1, RP_2
2TBD62783APGDigikey_Schematics:P-DIP18-300-2p54-001_TOSU1, U2
1300 RResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR-300
14.7k RResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR-4.7k
1LOGODigikey_Schematics:17mm_bancroftFrogG***
1PJ-002ADigikey_Schematics:PJ-002A_CUD12V
1RPi JumperDigikey_Schematics:CONN40_SBH11-PBPC-D20-ST-BK_SULRpi

More from scott-whitworth/bancroft_temperature_control

1
  • 2 layers103.3 × 64 mmSG mesocosm pi interface adapter, the printed circuit board in 3D

    SG mesocosm pi interface adapter

    scott-whitworth/bancroft_temperature_control

    Supplementary material for Bancroft Experimental Temperature Control System

    42 parts2

Similar boards

  • 2 layers80 × 100 mmNfcCarrierBoard, the printed circuit board in 3D

    NfcCarrierBoard

    EventAccess/NFCScanner

    Maskinvare & Firmware for in/ut-scanning

    50 partsGPL-3.0
  • 4 layers100 × 72 mmFour layer v2, the printed circuit board in 3D

    Four layer v2

    Kayzerjali/UQ_Magnetometer_Data_Logger

    Code for the data logging system of the UQ Magnetometer

    62 partsMIT
  • 2 layers120 × 49 mmSensor hat, the printed circuit board in 3D

    Sensor hat

    mikedahlgren/Pool-Controller

    This runs a pool from a Waveshare ESP32-S3-RELAY-6CH and the PoolVeras sensor hat plugged onto its Pico headers.

    69 parts
  • 2 layers51.3 × 96.2 mmMinisynth32, the printed circuit board in 3D

    Minisynth32

    grantek/minisynth32

    A 3D-printable MIDI synthesiser inspired by the Roland MT-32 and clumsyMIDI, and powered by the mt32-pi MT-32 emulator.

    32 parts45CC-BY-SA-4.0
  • 6 layers228.6 × 110.7 mmDriver, the printed circuit board in 3D

    Driver

    thewonderidiot/lachesis

    Portable, safe readers for Apollo Guidance Computer core rope memory modules

    690 parts4MIT
  • 2 layers65 × 30.5 mmLed pi board, the printed circuit board in 3D

    Led pi board

    jrowe88/RPi-LED-RGBMatrix-Hat

    Hardware hat for Raspberry Pi to support RGB Matrix and LED strips

    32 parts2
  • 2 layers58.4 × 71.1 mmBreadboard psu, the printed circuit board in 3D

    Breadboard psu

    cegep-electronique-programmable/pcb_alimentation_prototypage

    Cette carte génére une tension de 3.3V ou 5V et se branche sur une plaquette de prototypage (breadboard).

    22 parts1
  • 4 layers70 × 100 mmNeural Edge, the printed circuit board in 3D

    Neural Edge

    rithylim/ESP32-P4-Neural-Edge-PCB

    140 parts1

Questions

How big is the SG mesocosm pi interface PCB?

It measures 169 × 81 mm and has 2 copper layers, 1.6 mm thick.

What parts does the SG mesocosm pi interface use?

77 parts, built around the TBD62783APG, PPPC031LFBN-RC and PJ-002A. 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 SG mesocosm pi interface KiCad files?

From the scott-whitworth/bancroft_temperature_control repository on GitHub, at the commit this page was made from: the board is hardware/InterfaceBoard/SG_mesocosm_pi_interface.kicad_pcb and its schematic hardware/AdaptorBoard/SG_mesocosm_pi_interface_adapter.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the SG mesocosm pi interface design in my own project?

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