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

Title
TFT32 - IoT gateway/control hub with TFT
Content
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="https://www.espressif.com/sites/default/files/documentation/esp32-wroom-32_datasheet_en.pdf">ESP32</a> SoC</li> <li><a href="https://harizanov.com/wp-content/uploads/2018/12/ILI9341.pdf">ILI9341 based 2.4" TFT</a> with resistive touch, PWM dimming control</li> <li>Light sensor (<a href="https://en.wikipedia.org/wiki/Photoresistor">LDR</a>)</li> <li>433Mhz <a href="http://www.hoperf.cn/upload/docs/RF/SX/RFM69_DataSheet_v1.3.pdf">RFM69HW</a> ISM radio</li> <li>One <a href="https://harizanov.com/wp-content/uploads/2018/12/WS2812B-Datasheet.pdf">WS2812B</a> RGB LED (Neopixel)</li> <li><a href="https://harizanov.com/wp-content/uploads/2018/12/PB-0540MK-BQ.pdf">Piezo buzzer</a> for audible feedback</li> <li><a href="https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/171/1899_5F00_HTU21D_5F00_chip_5F00_datasheet.pdf">HTU21D/SHT21</a> temperature/humidity sensor</li> <li><a href="https://datasheets.maximintegrated.com/en/ds/DS1338-DS1338Z.pdf">DS1338</a> real-time clock with battery backup (CR1220 battery not included)</li> <li>Four multi-purpose buttons</li> <li>Option for <a href="http://ww1.microchip.com/downloads/en/devicedoc/Atmel-8740-CryptoAuth-ATSHA204-Datasheet.pdf">ATSHA204</a> crypto authentication device (not included)</li> </ul> <h3>Logical peripherals diagram</h3> <h3><img class="aligncenter size-full wp-image-4665" src="https://harizanov.com/wp-content/uploads/2018/12/requirements-1-e1545653348776.png" alt="" width="924" height="694" />Schematic</h3> <img class="aligncenter size-full wp-image-4620" src="https://harizanov.com/wp-content/uploads/2018/12/TFT32_rev6.png" 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="https://github.com/mharizanov/TFT32">here</a> I highly recommend using <a href="https://littlevgl.com/">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="https://github.com/mharizanov/TFT32/tree/master/examples/gui/mqtt_controller">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="https://github.com/mharizanov/TFT32/tree/master/examples/gui/mqtt_controller"><img class="wp-image-4671 size-medium" src="https://harizanov.com/wp-content/uploads/2018/12/20181225_111359-e1545751524126-300x200.jpg" alt="" width="300" height="200" /></a> Christmas lights controller[/caption] <h3>3D printable enclosure</h3> A 3D printable enclosure is available for <a href="https://harizanov.com/product/3d-printable-enclosure-for-tft32/">free here</a>. [gallery size="medium" ids="4599,4597,4598"] <h5><em>Note: The enclosure requires four <a href="https://de.screwerk.com/en/shop/detail/stp/STP21A0250070E.html">2.5x7mm screws</a>.</em></h5> <h3>Buy TFT32</h3> You can purchase the TFT32 project from my store: [products SKU="TFT32"]
Excerpt


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 https://github.com/abiandy/lvgl 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
    Sincerely
    DL Bolden

    1. Martin Post author

      Hello,
      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.
      Cheers