Esp32, 2.8 TFT . ads1115

Hello everyone,

I am pleased to join this forum and benefit from your expertise, as I am a beginner in learning programming. I strive to learn and overcome obstacles repeatedly before asking for help.

I would like to integrate an " adafruit_ADS1115 " with ESP32 2.8 TFT touch screen module and display three screens:

  1. The first screen shows the voltage value at the first input.
  2. The second screen allows me to read the voltage of the four inputs.
  3. The third screen displays the comparison between the first and second inputs.

I appreciate your support in helping me move forward with this step.

Thank you!

Hi, for your first step, you’ll need to get LVGL running on your hardware. The simplest approach is to select the Arduino TFT_eSPI board in SquareLine Studio, then configure the appropriate pins and settings to get your exported project displaying on your device.

Once you have the LVGL interface working, you can then focus on integrating the ADS1115. You’ll need to:

  1. Install the Adafruit ADS1115 library in your Arduino IDE
  2. Set up I2C communication between your ESP32 and the ADS1115
  3. Create functions to read the voltage values from the ADC
  4. Update your LVGL UI elements with these voltage values

For your three screens, you can use LVGL’s screen management to switch between them with buttons or other UI elements.

Thank you for your efforts in helping me with my inquiries. However, everything I needed assistance with, I have already done. I was able to build simple projects that operate with LEDs, but the problem with the ADC is the reason for the difficulty.
And more importantly, how to see the data for each input on the board. I succeeded in creating many screens and controlling LEDs, but dealing with the ADC creates difficulties for me.
how to handle reading this data, as well as controlling the gain (amplification) and displaying it on the screen, in addition to sending it via the Wi-Fi protocol.
thank you