Skip to the content
PCBKitNew board
2 layers56 × 65 mmTH7, the printed circuit board in 3D

Code to read thermocouples from the raspberry pi using the SDS TH7 PCB

Size
56 × 65 mm
Copper layers
2
Thickness
1.6 mm
Parts
48
Nets
61
Pads
179
Tracks, vias
406, 67
Pours
6
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
10 Sep 2018
Updated
11 Apr 2025

Overview

TH7 is an open-source printed circuit board by robin48gx, from the robin48gx/TH7 repository on GitHub. It is a 2-layer board of 56 × 65 mm with 48 parts on 61 nets, routed with 406 tracks and 67 vias.

It is built around the MCP3208-BI/P. Its parts include 27 resistors, 4 capacitors, 4 ICs, 3 diodes and 1 connector.

Main components

1

README

README.md

TH7

Code to read up to seven thermocouple inputs from the raspberry pi using the SDS TH7 PCB

Enable spi in raspi-config.

Also, if you are running the pi as a user other than 'pi' add yourself to the spi group in /etc/group.

Clone the git hub repo here,

text
$ git clone https://github.com/robin48gx/TH7.git 

change directory to TH7 and then run

text
$ python ssh_terminal_TH7.py

The python file ssh_terminal_TH7.py is a simple terminal program that displays the microvolts received from the thermocouples and displays them in centigrade (for k type). It also displays the PCB temperature and the Vcc (voltage from USB to the pi; the value is necessary for accurate calculation of microvolts). It also creates a logging file (called 'TH7.log') showing the voltage supplied to the pi, the PCB temperature and the temperature of each connected thermocouple. This logs once per minute. If logging is required run with nohup, i.e.

text
$ nohup python TH7_logger.py > /dev/null & 

The logging will then continue on the pi even if the terminal running it is closed. The LEDs are controlled by the ssh_terminal_TH7.py and by the TH7_logger.py programs, so if they are alternately blinking this means the logging is continuing. A script called 'plot_it.sh' will (using gnuplot) take data from the TH7.log file and present it as a graph.

The python file thermometers_TH7.py adds to this with tkinter drawn thermometers. You may need the tkinter python modules for this : i.e. apt-get install python-tk.

Feel free to branch off this to make a temperature logger or a web interface.

For h/w 0.4 and above, an open thermocouple connection will display a very low micro-volts figure (typically < -7000) which is out of range for most thermocouples and out of the range that most temperature readings would ever require (its below abs zero for a k type for instance). This means open thermocouples can be error flagged (as has been implemented for the python k type thermocouple in this repo).

Parts

48
QtyValueFootprintReferences
7100KResistor_SMD:R_0805_2012MetricR4, R5, R6, R7, R8, R9, R10
7330kResistor_SMD:R_0805_2012MetricR31, R32, R33, R34, R35, R36, R37
61kResistor_SMD:R_0805_2012MetricR12, R13, R14, R15, R16, R17
4100nFCapacitor_SMD:C_0603_1608MetricC1, C2, C3, C4
3TestPoint_Pad_2.5x2.5mmTestPoint:TestPoint_Pad_2.5x2.5mm5V, GND, K
210kResistor_SMD:R_0805_2012MetricR2, R3
2330Resistor_SMD:R_0805_2012MetricR18, R19
2LED_ALTLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD2, D3
2MCP6074-E_SLPackage_SO:SOIC-14_3.9x8.7mm_P1.27mmU1, U2
110KResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR25
11KResistor_SMD:R_0805_2012MetricR11
1470Resistor_SMD:R_0805_2012MetricR1
1LM4040DBZ-4.1Package_TO_SOT_SMD:SOT-23D1
1MCP3208Package_SO:SOIC-16W_5.3x10.2mm_P1.27mmU3
1Raspberry_Pi_2_3Connector_PinSocket_2.54mm:PinSocket_2x20_P2.54mm_VerticalRASPI_2_3_HEADER1
1Screw_Terminal_01x14Connector_Wago:Wago_734-144_1x14_P3.50mm_VerticalJ1
1TC77_SUBSTITUTESOT95P280X145-5N:SOT95P280X145-5NU4

The 43 most common of 48 parts.

Questions

How big is the TH7 PCB?

It measures 56 × 65 mm and has 2 copper layers, 1.6 mm thick.

What parts does the TH7 use?

48 parts, built around the MCP3208-BI/P. 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 TH7 KiCad files?

From the robin48gx/TH7 repository on GitHub, at the commit this page was made from: the board is kicad/test.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the TH7 design in my own project?

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

More from robin48gx/TH7

1
  • 2 layers56 × 65 mmNoname29JUL2018, the printed circuit board in 3D

    Noname29JUL2018

    robin48gx/TH7

    Code to read thermocouples from the raspberry pi using the SDS TH7 PCB

    40 parts5

Similar boards

  • 4 layers100 × 100 mmESP32-Eurorack Audio, the printed circuit board in 3D

    ESP32-Eurorack Audio

    ctag-fh-kiel/esp32-eurorack-audio

    Open source eurorack audio module based on ESP32

    173 parts71
  • 2 layers150.5 × 127 mmEurorack engine, the printed circuit board in 3D

    Eurorack engine

    sinneb/esp32-hvcc

    Heavy compiler (hvcc) sources running on ESP32-DevKitC powered eurorack module

    81 parts29
  • 2 layers100 × 100 mmTroll-8, the printed circuit board in 3D

    Troll-8

    ctag-fh-kiel/troll-8

    Arduino-Based μSynth / μMidiController Development Platform

    94 parts14
  • 4 layers100 × 100 mmPlantomation V2, the printed circuit board in 3D

    Plantomation V2

    Synthron/Plantomation

    DIY plant watering system

    203 parts10
  • 2 layers130 × 80 mmPico controller, the printed circuit board in 3D

    Pico controller

    cclienti/tig-welder

    A DIY TIG welder that can be plugged to a traditionnal stick welder or to a high current source

    125 parts8GPL-3.0
  • 2 layers183 × 128.7 mmTT, the printed circuit board in 3D

    TT

    seismicindustries/TT

    Terminal Tedium alternative HW

    210 parts7
  • 2 layers127 × 71 mmRgb input, the printed circuit board in 3D

    Rgb input

    hoeken/yarrboard-hardware

    Hardware for the Yarrboard open hardware project

    118 parts4GPL-3.0