IOT-Solution examples on ESP-wrover-kit V3

Alen59
Posts: 25
Joined: Mon Mar 19, 2018 12:00 pm

IOT-Solution examples on ESP-wrover-kit V3

Postby Alen59 » Thu Dec 13, 2018 7:11 pm

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

Alen59
Posts: 25
Joined: Mon Mar 19, 2018 12:00 pm

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

Postby Alen59 » Tue Dec 18, 2018 1:17 pm

any comment?

fivdiAtESP32
Posts: 47
Joined: Thu Dec 20, 2018 9:47 am

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

Postby fivdiAtESP32 » Thu Dec 20, 2018 10:53 am

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.

Alen59
Posts: 25
Joined: Mon Mar 19, 2018 12:00 pm

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

Postby Alen59 » Fri Dec 21, 2018 1:01 pm

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

fivdiAtESP32
Posts: 47
Joined: Thu Dec 20, 2018 9:47 am

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

Postby fivdiAtESP32 » Fri Dec 21, 2018 2:29 pm

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.

Alen59
Posts: 25
Joined: Mon Mar 19, 2018 12:00 pm

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

Postby Alen59 » Fri Dec 21, 2018 3:25 pm

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

ESP_@In逍遥子
Posts: 132
Joined: Thu Nov 15, 2018 2:06 am

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

Postby ESP_@In逍遥子 » Fri Dec 21, 2018 5:23 pm

Hi, you can buy the xpt2046 touch screen because its driver is already in the iotsolution.This can help you develop quickly

Alen59
Posts: 25
Joined: Mon Mar 19, 2018 12:00 pm

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

Postby Alen59 » Fri Dec 21, 2018 6:41 pm

thanks, any capacitance touch with bigger screen?

fivdiAtESP32
Posts: 47
Joined: Thu Dec 20, 2018 9:47 am

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

Postby fivdiAtESP32 » Fri Dec 21, 2018 7:11 pm

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.

ESP_@In逍遥子
Posts: 132
Joined: Thu Nov 15, 2018 2:06 am

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

Postby ESP_@In逍遥子 » Sat Dec 22, 2018 4:51 am

Iotsolution provides a ft5x06 touchscreen driver for larger screens.

Who is online

Users browsing this forum: Google [Bot] and 4 guests