Build the RPal BT x2T (two thermocouples)

The x2T reads two thermocouples, the bean temperature (BT) and the environment or exhaust temperature (ET), and sends both to Roasters Pal every second. Want the temperatures on the device too? The x2T LCD adds a small screen.

Parts

  • 1 × ESP32 board (ESP32 DevKit V1 / ESP32-WROOM-32 Dev Module)
  • 2 × MAX6675 boards with a K-type thermocouple each (see choosing thermocouples)
  • About 10 female-to-female jumper wires, or a small breadboard to share the 3V3, GND, SCK and SO lines
  • A USB data cable and a USB power supply or power bank

1. Wire it

Wiring: both MAX6675 boards share 3V3, GND, SCK (GPIO 14) and SO (GPIO 26); CS goes to GPIO 27 for BT and GPIO 25 for ET
RPal BT x2T wiring

The two MAX6675 boards share four lines and each gets its own CS line, which is how the ESP32 tells them apart.

Both boards:

  1. VCC → 3V3
  2. GND → GND
  3. SCK → GPIO 14
  4. SO → GPIO 26

Then the one line each:

  1. CS of the BT board → GPIO 27
  2. CS of the ET board → GPIO 25

An ESP32 has only one or two 3V3 and GND pins, so join each shared line first: a small breadboard, a jumper wire with two ends crimped together, or a short soldered "Y". Mark which board is BT, for example with a piece of tape.

Screw each thermocouple's two wires into its MAX6675's + and − terminals. Thermocouple wire colours differ between standards (yellow or green is usually +), so if a temperature falls when its probe warms up, swap that probe's two wires.

Use 3V3, not 5V or VIN: the ESP32 reads its pins at 3.3 volts.

2. Put the code on the board

  1. Set up Arduino IDE once: Set up Arduino IDE for ESP32.
  2. Download RPal_BT_x2T.ino and open it in Arduino IDE.
  3. Plug in the ESP32, choose ESP32 Dev Module and the port, and press Upload.

No extra libraries are needed: Bluetooth comes with the ESP32 package and the code reads the MAX6675 itself.

3. Test it

Open Tools › Serial Monitor at 115200 baud. You should see two lines every second:

BT: 22.75 C

ET: 22.50 C

Hold one thermocouple tip between your fingers: its number climbs towards 30 °C. If BT and ET are the wrong way round, swap the two CS wires (GPIO 27 and GPIO 25). If one says no reading, check that board's CS wire, the shared SO and SCK wires, and that its thermocouple is screwed in tightly.

The board's blue LED tells you what's going on:

  • a short tick every second: waiting for the app
  • a longer flash every second: connected and sending
  • four quick flashes: no reading from one of the thermocouples

4. Connect Roasters Pal

  1. Power the thermometer from USB (the computer, a phone charger or a power bank).
  2. In the app open Settings › Bluetooth › Connect and press the search button.
  3. Press Connect next to RPal BT x2T.
  4. Tap the BT card and the ET card: each starts its readings.

That's it: start a roast and both temperatures are logged automatically.

5. Fit it to your roaster

  • Put the BT probe where it sits in the bean mass for the whole roast, not in the air above it.
  • Put the ET probe in the hot air: the drum air, or the exhaust, depending on your roaster. Keep it in the same place from roast to roast so curves can be compared.
  • Keep the ESP32 and the MAX6675 away from heat: only the probe goes in the roaster. A small plastic box keeps them safe.
  • Keep the thermocouple cables away from the heater and motor cables.

Changing settings in the code

Near the top of the code, under Settings:

  • READ_INTERVAL_MS · how often it reads and sends (1000 = once a second). Don't go below 250: the MAX6675 needs that long for a reading.
  • SMOOTHING · 5 calms down small jumps. 1 turns smoothing off, so the reading reacts faster but jumps more.
  • LED_PIN · 2 is the blue LED on most boards. Set -1 if your board has none.

Don't change the device name or the UUIDs: the app recognises the thermometer by them.

Something not working? See When something doesn't work.