Build the RPal BT x2T LCD (two thermocouples and a screen)
The x2T LCD reads two thermocouples, the bean temperature (BT) and the environment or exhaust temperature (ET), shows them on its own screen and sends both to Roasters Pal every second. It's the x2T on a board with a built-in display, so you can glance at the roaster as well as the phone.
Parts
- 1 × LilyGO TTGO T-Display (the ESP32 version with the 1.14" screen, 135 × 240 pixels)
- 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 3V, G, SCK and SO lines
- A USB data cable and a USB power supply or power bank
1. Wire it
The two MAX6675 boards share four lines and each gets its own CS line, which is how the board tells them apart. The T-Display's pins are labelled with numbers only.
Both boards:
- VCC → 3V
- GND → G
- SCK → 12
- SO → 15
Then the one line each:
- CS of the BT board → 13
- CS of the ET board → 17
Join each shared line first: a small breadboard, a jumper wire with two ends crimped together, or a short soldered "Y". The T-Display usually comes without pins fitted, so you may need to solder its two pin strips on. Mark which MAX6675 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 3V, not 5V: the board reads its pins at 3.3 volts.
2. Put the code on the board
- Set up Arduino IDE once: Set up Arduino IDE for ESP32.
- Install the screen library: Tools › Manage Libraries, search for TFT_eSPI and install TFT_eSPI by Bodmer.
- Tell the library which screen you have. This is a one-time edit of one file:
- Open the folder Documents › Arduino › libraries › TFT_eSPI and open User_Setup_Select.h in a text editor (or in Arduino IDE with File › Open).
- Near the top, find the line that ends with User_Setup.h (it starts with #include) and put // at its start.
- Further down, find the line with Setup25_TTGO_T_Display.h and remove the // at its start.
- Save the file.
- Download RPal_BT_x2T_LCD.ino and open it in Arduino IDE.
- Plug in the T-Display, choose ESP32 Dev Module and the port, and press Upload.
A warning about TOUCH_CS while it builds is normal: this screen has no touch.
If you update TFT_eSPI later, the library manager replaces User_Setup_Select.h, so make the edit in step 3 again.
3. Test it
Open Tools › Serial Monitor at 115200 baud. You should see a line every second, and the same numbers on the screen:
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 (13 and 17). If one says nan (and the screen shows a red ---), check that board's CS wire, the shared SO and SCK wires, and that its thermocouple is screwed in tightly.
The screen shows BT in yellow and ET in blue, with the status at the top: Waiting for app or App connected. A red --- means no reading from that thermocouple.
The two buttons beside the screen:
- one (GPIO 0) switches the screen between °C and °F. The app always gets both and uses the unit set in the app.
- the other (GPIO 35) changes the brightness.
Colours look wrong (white background, odd colours)? In the code, change INVERT_DISPLAY from true to false and upload again.
4. Connect Roasters Pal
- Power the thermometer from USB (the computer, a phone charger or a power bank).
- In the app open Settings › Bluetooth › Connect and press the search button.
- Press Connect next to RPal BT x2T LCD.
- 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 T-Display and the MAX6675 boards 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.
- INVERT_DISPLAY · change to false if the screen's colours look inverted.
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.