Martin's corner on the web

TFT32 – IoT gateway/control hub with TFT

Revision for “TFT32 – IoT gateway/control hub with TFT” created on December 30, 2018 @ 19:49:07

TFT32 - IoT gateway/control hub with TFT
The TFT32 project is an ESP32 powered multi-purpose IoT gateway/control hub with TFT, touch and various other helper peripherals. [gallery size="medium" columns="2" ids="4541,4537,4538,4637"] <h3>Features</h3> <ul> <li>Powered by the popular <a href="">ESP32</a> SoC</li> <li><a href="">ILI9341 based 2.4" TFT</a> with resistive touch, PWM dimming control</li> <li>Light sensor (<a href="">LDR</a>)</li> <li>433Mhz <a href="">RFM69HW</a> ISM radio</li> <li>One <a href="">WS2812B</a> RGB LED (Neopixel)</li> <li><a href="">Piezo buzzer</a> for audible feedback</li> <li><a href="">HTU21D/SHT21</a> temperature/humidity sensor</li> <li><a href="">DS1338</a> real-time clock with battery backup (CR1220 battery not included)</li> <li>Four multi-purpose buttons</li> <li>Option for <a href="">ATSHA204</a> crypto authentication device (not included)</li> </ul> <h3>Logical peripherals diagram</h3> <h3><img class="aligncenter size-full wp-image-4665" src="" alt="" width="924" height="694" />Schematic</h3> <img class="aligncenter size-full wp-image-4620" src="" alt="" width="1024" height="679" /> <h3>Powering it</h3> The TFT32 can be powered from the micro USB port or the FTDI programming socket (P1). Alternatively, the board can be powered from 12-6V source using the auxiliary power connector (P4). <h3>Programming it</h3> The micro-USB port is only used to provide power, not for programming the TFT32. The TFT32 is programmed using FTDI programming socked located on the back of the product. To program the TFT, please use 3.3V logic level FTDI programmer that can supply at least 500mA current. [gallery columns="2" size="medium" ids="4625,4626"] <em>Note: In order to flash the TFT32 with new firmware, you need to press and hold button 1 (marked with S1 on the silk, connected to GPIO 0)  for a short time as the firmware upload starts</em> <h3>Code examples</h3> Github repository with examples: <a href="">here</a> I highly recommend using <a href="">LittlevGL</a> for GUI development on the TFT32. <blockquote><em>LittlevGL is a free and open-source graphics library providing everything you need to create embedded GUI with easy-to-use graphical elements, beautiful visual effects, and low memory footprint.</em></blockquote> Example Arduino source code for touchscreen <a href="">Christmas lights controller</a> with MQTT backend is available to get you started with LittlevGL and the TFT32 on my Github repo. [caption id="attachment_4671" align="alignnone" width="300"]<a href=""><img class="wp-image-4671 size-medium" src="" alt="" width="300" height="200" /></a> Christmas lights controller[/caption] <h3>3D printable enclosure</h3> A 3D printable enclosure is available for <a href="">free here</a>. [gallery size="medium" ids="4599,4597,4598"] <h5><em>Note: The enclosure requires four <a href="">2.5x7mm screws</a>.</em></h5> <h3>Buy TFT32</h3> You can purchase the TFT32 project from my store: [products SKU="TFT32"]

OldNewDate CreatedAuthorActions
December 30, 2018 @ 19:49:07 Martin
December 30, 2018 @ 19:47:19 [Autosave] Martin
December 25, 2018 @ 20:12:57 Martin
December 25, 2018 @ 20:11:13 Martin
December 25, 2018 @ 19:37:07 Martin
December 25, 2018 @ 19:36:26 Martin
December 25, 2018 @ 19:36:01 Martin
December 25, 2018 @ 17:33:07 Martin
December 25, 2018 @ 17:32:41 Martin
December 24, 2018 @ 14:10:14 Martin
December 24, 2018 @ 14:03:16 Martin
December 24, 2018 @ 14:02:09 Martin
December 24, 2018 @ 13:59:59 Martin
December 24, 2018 @ 13:54:37 Martin
December 23, 2018 @ 21:20:41 Martin
December 23, 2018 @ 21:01:26 Martin
December 23, 2018 @ 11:12:56 Martin
December 23, 2018 @ 11:05:20 Martin
December 23, 2018 @ 11:01:48 Martin
December 23, 2018 @ 10:34:36 Martin
December 23, 2018 @ 10:33:56 Martin
December 23, 2018 @ 10:33:19 Martin
December 23, 2018 @ 10:31:25 Martin
December 23, 2018 @ 10:00:32 Martin
December 23, 2018 @ 09:57:32 Martin
December 23, 2018 @ 09:50:12 Martin
December 23, 2018 @ 09:48:16 Martin
December 23, 2018 @ 09:41:50 Martin
December 23, 2018 @ 09:31:21 Martin
December 23, 2018 @ 09:25:34 Martin
December 23, 2018 @ 09:19:47 Martin
December 23, 2018 @ 09:15:17 Martin

4 thoughts on “TFT32 – IoT gateway/control hub with TFT

  1. richard

    Hi Martin
    I had quite a time getting the christmas light controller to work i kept having exception errors and restarts, it was because i was using the latest lvgl library, i used a fork v5.1.1 and it worked 🙂
    Thanks for a great product

  2. Darrin Bolden

    Hello Martin,
    Have you tried the Nextion HMI with LvGL on ESP32? I have’nt found many examples to point me in the right direction so wondered if there is a compatabillity issue. In theory they should work together. Please let me know what you think
    DL Bolden

    1. Martin Post author

      No, I haven’t – those Nextons look pretty cool but are way too expensive to consider in any sort of commercial product. SO I quickly abandoned the idea to use them.
      I suggest checking with their support forum or Reddit, there might be someone who managed to get them to work, or at least comment if it is possible.