Skip to content

jankrejci/max6675-station

Repository files navigation

MAX6675 Station

Prepare SD card

For the raspbian installation use the RPi imager tool https://github.com/raspberrypi/rpi-imager

sudo apt install rpi-imager
  • choose RPi OS Lite 64-bit
  • go to advanced options
    • setup wifi credentials
    • enable ssh
    • change hostname to max6675
    • change username and password
  • start flashing and wait till done

Connect to the RPi and prepare it to work

Power on raspberry with flashed SD card and connect it to the network. Preferably via cable, otherwies it can be difficult to find it as the hostname is not shown over wifi.

nmap -p 22 --open -oG - xx.xx.xx.0/24 |grep max6675

When the IP address is known, connect through SSH.

Install basic tools

sudo apt install git

Install rust toolchain

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

You can also install Remote - SSH extension to the VScode on your host machine and connect through remote development.

Connect sensors to the RPi

The board is designed for Raspberry PI 4 with 40 pin GPIO connector. The older 26 pin connector used for RPi 1 will not work. There is used BCM GPIO numbering. It is NOT the physical position of the pin on the connector!!!.

Sensor pinout is following.

MAX6675 -> Raspberry Pi
GND
VCC
SCK     -> GPIO 11 / SPI 0 SCLK
CS
MISO    -> GPIO 9 / SPI 0 MISO

CS pins pinout for each sensor. ID is sensor ID in software.

| |
| |   ID    0 |  1 |  2 |  3 |  4 |  5
|R|   GPIO 14 |  5 | 15 | 18 | 27 | 23
|P|   ================================
|i|   ID    6 |  7 |  8 |  9 | 10 | 11
| |   GPIO 20 |  5 |  1 |  7 | 25 | 24
| |

Run the application

git clone https://github.com/jankrejci/max6625-station.git
cd max6625-station
cargo run --release

Results appears on ip_address:8080/metrics. Sensors are able to do hotplug so you can add or remove sensors as you wish.

Sample output of the webpage

sensor_id:   0, time: 1687599501, temp:  26.75
sensor_id:   1, time: 1687599501, temp:  26.00
sensor_id:   2, time: 1687599501, temp:  27.25
sensor_id:   3, time: 1687599501, temp:  26.50
sensor_id:   4, time: 1687599501, temp:  26.75
sensor_id:   5, time: 1687599501, temp:  26.25
sensor_id:   6, time: 1687599501, temp:  28.50
sensor_id:   7, time: 1687599501, temp:  29.00
sensor_id:   8, time: 1687599501, temp:  29.25
sensor_id:   9, time: 1687599501, temp:  29.75
sensor_id:  10, time: 1687599501, temp:  28.50
sensor_id:  11, time: 1687599501, temp:  26.75

Board is protected with casing

To avoid short circuit with debris on the table or to bend wire bridges on the bottom of the board, use the plastic board cover. Onshape source, STL model

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published