Build the RPal BT x1T (one thermocouple)

The x1T reads one thermocouple, the bean temperature (BT), and sends it to Roasters Pal every second. It's the simplest RPal build and a good first project. If you want environment temperature too, build the x2T instead: it's only a few more wires.

Parts

  • 1 × ESP32 board (ESP32 DevKit V1 / ESP32-WROOM-32 Dev Module)
  • 1 × MAX6675 board with a K-type thermocouple (see choosing thermocouples)
  • 5 × female-to-female jumper wires
  • A USB data cable and a USB power supply or power bank

1. Wire it

Wiring: ESP32 3V3 to VCC, GND to GND, GPIO 12 to SCK, GPIO 14 to CS, GPIO 27 to SO
RPal BT x1T wiring

Connect the MAX6675 to the ESP32 with five jumper wires:

  1. VCC → 3V3
  2. GND → GND
  3. SCK → GPIO 12 (printed as D12 or 12 on most boards)
  4. CS → GPIO 14
  5. SO → GPIO 27

Then screw the thermocouple's two wires into the MAX6675's + and − terminals. Thermocouple wire colours differ between standards (yellow or green is usually +), so if the temperature falls when the probe warms up, simply swap the 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_x1T.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 a line every second:

BT: 22.75 C

Hold the thermocouple tip between your fingers: the number climbs towards 30 °C. If it says no reading, check the SO, SCK and CS wires and that the 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 the thermocouple

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 x1T.
  4. Tap the BT card: the temperature appears and the card shows that it's reading.

That's it: start a roast and the bean temperature is logged automatically.

5. Fit it to your roaster

  • Put the probe where it sits in the bean mass for the whole roast, not in the air above it.
  • 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 cable 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.