Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. My Project
  3. ESP32 based IoT gateway/control hub with TFT, touch, RFM69 and more..

ESP32 based IoT gateway/control hub with TFT, touch, RFM69 and more..

Scheduled Pinned Locked Moved My Project
23 Posts 7 Posters 6.5k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Martin Harizanov
    wrote on last edited by
    #21

    @nca78 said in ESP32 based IoT gateway/control hub with TFT, touch, RFM69 and more..:

    XPT2046

    I don't use the XPT2046 or any external ICs , the ESP32 handles it. This approach "costs" 4 pins, but I wanted to keep the BOM smaller. Also, I had concerns about sharing the HSPI with XPT2046, as I use DMA and double video buffer in my projects, I wasn't sure that would work well. The VSPI is dedicated for RFM69, maybe it can be shared with XPT2046 without issues. I guess this is something to experiment with in the following PCB revision

    Nca78N 1 Reply Last reply
    1
    • M Martin Harizanov

      @nca78 said in ESP32 based IoT gateway/control hub with TFT, touch, RFM69 and more..:

      XPT2046

      I don't use the XPT2046 or any external ICs , the ESP32 handles it. This approach "costs" 4 pins, but I wanted to keep the BOM smaller. Also, I had concerns about sharing the HSPI with XPT2046, as I use DMA and double video buffer in my projects, I wasn't sure that would work well. The VSPI is dedicated for RFM69, maybe it can be shared with XPT2046 without issues. I guess this is something to experiment with in the following PCB revision

      Nca78N Offline
      Nca78N Offline
      Nca78
      Hardware Contributor
      wrote on last edited by
      #22

      @martin-harizanov I had no problem with shared HSPI for both lcd and touch sensor. I use Bodmer TFT eSPI (it manages both lcd and xpt2046 for touch) and it's impressively fast. I have shared with SD card too, and still no problem.
      https://github.com/Bodmer/TFT_eSPI
      But you will not save 4 i/o as you need at least a chip select for touch, and maybe interrupt pin.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Martin Harizanov
        wrote on last edited by
        #23

        @nca78 said in ESP32 based IoT gateway/control hub with TFT, touch, RFM69 and more..:

        Bodmer TFT eSPI

        Bodmer TFT eSPI is just a normal SPI driver, well maybe optimized a bit. The key to speed (IMHO) is to use double frame buffer and DMA for the SPI, that leaves the CPU free to process the next frame while the hardware does the SPI transfer. I am not aware of such TFT library for Arduino.

        1 Reply Last reply
        1
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        18

        Online

        11.7k

        Users

        11.2k

        Topics

        113.1k

        Posts


        Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • MySensors
        • OpenHardware.io
        • Categories
        • Recent
        • Tags
        • Popular