Von English mit KI übersetzt ·
Fast, aber es ist andersherum, und das passiert allen. Die Namen sind aus Sicht des Pi benannt: MOSI ist der Pi, der an den Chip sendet, MISO ist der Chip, der an den Pi sendet. DO auf deinem Breakout bedeutet „Daten aus dem MAX31855“, also geht DO an MISO, GPIO 9, Pin 21.Der MAX31855 empfängt nie etwas, du ziehst einfach CS auf Low und taktest 32 Bit heraus, deshalb hat er gar keinen Eingangspin. Lass MOSI (Pin 19) unbelegt. Verdrahtung:
VIN -> 3.3 V (Pin 1)
GND -> GND (Pin 6)
DO -> GPIO 9 MISO (Pin 21)
CLK -> GPIO 11 SCLK (Pin 23)
CS -> GPIO 8 CE0 (Pin 24)
Aktiviere SPI in raspi-config und lies dann 4 Bytes mit spidev bei 1 MHz oder weniger. Die Bits 31..18 sind die Thermoelement-Temperatur in 0,25-C-Schritten, Bit 16 ist das Fehlerflag. Prüfe dieses Flag, bevor du etwas sendest, sonst erscheint ein offenes Thermoelement als seltsame Zahl in deinem Diagramm.
Close, but it’s the other way round, and it trips everyone. The names are from the Pi’s point of view: MOSI is the Pi sending to the chip, MISO is the chip sending to the Pi. DO on your breakout means „data out of the MAX31855“, so DO goes to MISO, GPIO 9, pin 21.
The MAX31855 never receives anything, you just pull CS low and clock out 32 bits, so it has no input pin at all. Leave MOSI (pin 19) unconnected. Wiring:
VIN -> 3.3 V (pin 1)
GND -> GND (pin 6)
DO -> GPIO 9 MISO (pin 21)
CLK -> GPIO 11 SCLK (pin 23)
CS -> GPIO 8 CE0 (pin 24)
Enable SPI in raspi-config, then read 4 bytes with spidev at 1 MHz or below. Bits 31..18 are the thermocouple temperature in 0.25 C steps, bit 16 is the fault flag. Check that flag before you send anything, an open thermocouple otherwise shows up as a strange number on your chart.

