Skip to the content
2 layers50.2 × 36.3 mmPam main module, the printed circuit board in 3D

Temperature monitor for 1-wire devices controlled from single-board pc's

Size
50.2 × 36.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
9
Nets
18
Pads
39
Tracks, vias
31, 0
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
23 Apr 2020
Updated
10 Feb 2021

Overview

Pam main module is an open-source printed circuit board by usajusaj, from the usajusaj/poor_admins_monitor repository on GitHub. It is a 2-layer board of 50.2 × 36.3 mm with 9 parts on 18 nets, routed with 31 tracks and 0 vias.

It is built around the RJ45. Its parts include 4 connectors and 1 resistor.

Main components

1

README

README.md

Poor Admin's Monitor

For my fellow sysadmins who would like to be responsible and monitor server room temperature but professional monitor appliances are too expensive.

The plan here is pretty simple, all you need is:

  • Some sort of x86/ARM capable single-board computer like RaspberryPI with GPIO pins
  • A few components, the star of the show is 1-Wire temperature sensor like MAX31820
  • Basic soldering experience

Design

1-Wire ambient temperature sensing devices are cheap (~$1CAD/each), easy to control (1-wire protocol drivers are readily available) and one can chain a lot of them on a single wire. I'm using UTP since every server room has plenty spare.

I'm chose a standalone C++ web framework to avoid running the bloat that are NGINX/Apache2 + Django/PHP/... on an rpi. But deep down I just wanted to try something new.

Building

  • Download/clone Drogon: https://github.com/an-tao/drogon
  • Follow its installation steps, before running cmake add this line to drogon's CMakeList.txt to fix linking errors on RaspberryPI
cmake
target_link_libraries(${PROJECT_NAME} PUBLIC atomic)
  • Install drogon
  • Download/clone this code, do usual
shell
$ mkdir build
$ cd build
$ cmake ..
$ make

Running

  • initialize database
shell
sqlite3 database.db
> .read sqlite3.sql
shell
* * * * *       /home/pi/poor_admins_monitor/poll_devices.py /home/pi/poor_admins_monitor/database.db
  • while database is filling up with first data, rename config.json.template to config.json and adjust settings to your liking
  • run web server with
shell
./poor_admins_monitor
  • Point browser to:
    • http://host:port/api/v1/device/list
    • http://host:port/api/v1/device/get/1
    • http://host:port/api/v1/device/get/1/history

Future features

  • Advertise service over avahi
  • Configuration script to assign each device a verbose name and location
  • Add systemd timer example file for a <1m polling interval (impossible in cron)

Thanks to

  • Drogon for an awesome C++ web framework
  • Pure.css for an elegant lightweight css scaffold
  • Chart.js for slick charts

Gallery

Main page with graphed temperatures

Dashboard

Parts

9
QtyValueFootprintReferences
4MountingHoleMountingHole:MountingHole_3mmH1, H2, H3, H4
3RJ45Connector_RJ:RJ45_Amphenol_54602-x08_HorizontalJ1, J3, J4
11WCONNConnector_JST:JST_EH_S3B-EH_1x03_P2.50mm_HorizontalJ2
14.7kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR1

More from usajusaj/poor_admins_monitor

1
  • 2 layers30.2 × 43.2 mmPam chain module, the printed circuit board in 3D

    Pam chain module

    usajusaj/poor_admins_monitor

    Temperature monitor for 1-wire devices controlled from single-board pc's

    7 parts4

Similar boards

  • 2 layers33.7 × 97.8 mmHAN ESP TSS721, the printed circuit board in 3D

    HAN ESP TSS721

    UtilitechAS/amsreader-firmware

    ESP8266 and ESP32 compatible firmware to read, interpret and publish data to MQTT from smart electrical meters, both DLMS and DSMR is supported

    29 parts470
  • 4 layers84 × 82 mmToad, the printed circuit board in 3D

    Toad

    travisgoodspeed/goodfet

    An embedded bus adapter for various microcontrollers and radios.

    241 parts333
  • 2 layers100 × 100 mmCANBuster, the printed circuit board in 3D

    CANBuster

    GBert/misc

    miscellaneous stuff / unsorted

    182 parts99
  • 2 layers50 × 55.4 mmCasserole, the printed circuit board in 3D

    Casserole

    puddly/casserole

    Control GE appliances

    23 parts94Apache-2.0
  • 2 layers67.9 × 47.8 mmPlatine, the printed circuit board in 3D

    Platine

    nv1t/standing-desk-interceptor

    I wanted to intercept the communication between my Flexispot standing desk buttons. This is the progress on the project

    11 parts52CC0-1.0
  • 4 layers90 × 75 mmCM4 2 Backup, the printed circuit board in 3D

    CM4 2 Backup

    olvint/CM4-NAS-MiniPCIE

    Raspberry Pi CM4 based NAS solution board

    21 parts51
  • 4 layers73.9 × 84.5 mmAei, the printed circuit board in 3D

    Aei

    Severson-Group/AMDC-Hardware

    Circuit board designs for controlling advanced motor systems

    54 parts51
  • 2 layers99 × 60 mmPwr, the printed circuit board in 3D

    Pwr

    mfkiwl/KiwiSDR_PCB

    KiCAD PCB files for KiwiSDR project including active antenna and bias tee

    64 parts46

Questions

How big is the Pam main module PCB?

It measures 50.2 × 36.3 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Pam main module use?

9 parts, built around the RJ45. 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 Pam main module KiCad files?

From the usajusaj/poor_admins_monitor repository on GitHub, at the commit this page was made from: the board is pcb/pam_main_module/pam_main_module.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Pam main module design in my own project?

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