Page 1 of 2

IOT-Solution examples on ESP-wrover-kit V3

Posted: Thu Dec 13, 2018 7:11 pm
by Alen59
Hi,

i need to know if it is possible to run IOT-Solution examples on ESP-wrover-kit V3?

i like to run HMI-->lvgl_example with TFT lcd that is already installed on ESP-wrover-kit V3

thank you

Re: IOT-Solution examples on ESP-wrover-kit V3

Posted: Tue Dec 18, 2018 1:17 pm
by Alen59
any comment?

Re: IOT-Solution examples on ESP-wrover-kit V3

Posted: Thu Dec 20, 2018 10:53 am
by fivdiAtESP32
i need to know if it is possible to run IOT-Solution examples on ESP-wrover-kit V3?
As a general rule it will not be possible to assume that each and every example will run unmodified on an ESP-WROVER-KIT V3. It will depend on whether the required hardware is present and connected to the ESP-WROVER-KIT V3 the way the software wants it to be connected.
i like to run HMI-->lvgl_example with TFT lcd that is already installed on ESP-wrover-kit V3
With a few modifications it's possible to get the lvgl_example to run on an ESP-WROVER-KIT V3. Here's what I did:

- Run make menuconfig and in "LVGL Settings" turn "LittlevGL Touch Screen Enable" off as the ILI9341 display on a ESP-WROVER-KIT V3 isn't a touch screen.
- Run make menuconfig and in "LVGL Settings >> Config Driver" set the screen driver to "Choose Screen Driver (ILI9341)"
- Run make menuconfig and in "LVGL Settings >> Config Driver >> ILI9341 Screen Pin Configuration" set all the GPIO numbers to the correct values.

A few software changes are also needed.

Because the ILI9341 display on a ESP-WROVER-KIT V3 isn't a touch screen the following lines in app_main.cpp were commented out:

this one:

Code: Select all

 lv_indev_drv_t indevdrv = lvgl_indev_init(); /*Initialize your indev*/
and this one:

Code: Select all

 lvgl_calibrate_mouse(indevdrv);
Finally, this line in ILI9341_adapter.cpp was modified from:

Code: Select all

 .bckl_active_level = 1,
to:

Code: Select all

 .bckl_active_level = 0,
The modification to ILI9341_adapter.cpp is a terrible hack but unfortunately there isn't a configuration option available in menuconfig for bckl_active_level. An alternative to this hack would be to implement your own variant of lvgl_lcd_display_init (called something else) and then call your variant rather than calling lvgl_lcd_display_init in app_main.cpp.

Re: IOT-Solution examples on ESP-wrover-kit V3

Posted: Fri Dec 21, 2018 1:01 pm
by Alen59
thank you, but i still have problem the screen is black and if i press EN (SW1) the screen comes up with trend for a second and goes back to black screen

Re: IOT-Solution examples on ESP-wrover-kit V3

Posted: Fri Dec 21, 2018 2:29 pm
by fivdiAtESP32
The same thing happened to me too the first time I tried it :)

Did you modify the correct line ILI9341_adapter.cpp?

The line to modifiy looks like this:

Code: Select all

 .bckl_active_level = 1,
This line appears twice in ILI9341_adapter.cpp. The first occurance is for µGFX and the second occurance is for LittlevGL. It's the second occurance that needs to be modified to:

Code: Select all

 .bckl_active_level = 0,
Please ensure that you have modified the correct line.

Re: IOT-Solution examples on ESP-wrover-kit V3

Posted: Fri Dec 21, 2018 3:25 pm
by Alen59
yep you were correct, got it, working now

i like to run the full feature of littleVGL on touch screen with my esp-wrover-kit v3, any touch screen that you recommend i buy to connect to this board?

thanks again with your help on this

Re: IOT-Solution examples on ESP-wrover-kit V3

Posted: Fri Dec 21, 2018 5:23 pm
by ESP_@In逍遥子
Hi, you can buy the xpt2046 touch screen because its driver is already in the iotsolution.This can help you develop quickly

Re: IOT-Solution examples on ESP-wrover-kit V3

Posted: Fri Dec 21, 2018 6:41 pm
by Alen59
thanks, any capacitance touch with bigger screen?

Re: IOT-Solution examples on ESP-wrover-kit V3

Posted: Fri Dec 21, 2018 7:11 pm
by fivdiAtESP32
I was also going to suggest an LCD module with an ILI9341 LCD driver chip and an XPT2046 touch screen controller.

One like this that actually has the XPT2046 touch screen controller soldered on.

And not one like this that looks more or less identical but doesn't have the XPT2046 touch screen controller soldered on.

That being said, I'm not sure if you'll face issues connecting a second LCD to the ESP32-WROVER_KIT. It's not something I've tried.

Re: IOT-Solution examples on ESP-wrover-kit V3

Posted: Sat Dec 22, 2018 4:51 am
by ESP_@In逍遥子
Iotsolution provides a ft5x06 touchscreen driver for larger screens.