This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remote LCD Nokia5510/JLX12864 with ESP32
#31
Sorry i dont understand your answer. It is just a quote
Reply
#32
attachment, remove pdf from end of file


Attached Files
.pdf   firmware.bin.xz.pdf (Size: 922.54 KB / Downloads: 177)
Reply
#33
Thank you for the .bin file. now it works !!!!

connected with my tinypilot!!

The problem now are the buttons. When i press the buttons on the ttgo they are not shown in the "lcd and remote controll setup" webpage to assign them to actions. How do i enable the tinypilot to recognize the buttons ? 

Also i see that you use the touch gpio's on the ttgo. Do i have to wire a switch or can i use them as touch inputs?

Could it be these errors on the console? 

Code:
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:4960
ho 0 tail 12 room 4
load:0x40078000,len:11608
ho 0 tail 12 room 4
load:0x40080400,len:6120
entry 0x400806bc
E (732) spiram: SPI RAM enabled but initialization failed. Bailing out.
wifi timeout, reconnecting wifi 0.0009999275
wifi connecting to kagourakiLab
connect to kagourakiLab MyPass
lcd driver default True False
set language en
loaded 1.866 : 0.0 0.0 1.743 0.06900001 0.05400014
E (4032) gpio: gpio_set_direction(236): GPIO number error
E (4032) gpio: gpio_set_level(178): GPIO output gpio_num error
E (4082) gpio: gpio_set_level(178): GPIO output gpio_num error
wifi connecting to pypilot at 192.168.1.11
connect to host: 192.168.1.11 ... connected!
Reply
#34
the buttons are defined in gpio_esp32.py Check this. Some have pull ups, some have pull downs, others expect external resistors.

I am not exactly sure which issue

There is no way to assign them through the webpage, because, the esp32 remote does not require the pypilot_hat service to be active so it does not handle them. It also does not run a web server on the esp32. The wifi remote talks directly to pypilot, and the buttons are just assigned directly for the 10 actions supported:
AUTO, MENU, SMALL_PORT, SMALL_STARBOARD, SELECT, BIG_PORT, BIG_STARBOARD, TACK, NUDGE_PORT, NUDGE_STARBOARD
Reply
#35
Ok i understand what's going on ! Now it's play time.
Thank you very much Sean !
Reply
#36
I added support for touchpads in the esp32 remote. I opened a pull request in github if my changes are welcomed !
I am not a professional so sorry if i have some mistakes.
I tested it and it works.
Next i want to order the 2.4 inch ttgo to give it a try. It would be nicer a bigger screen


Thank you very much for your help Sean.
Reply
#37
the bigger screen may have external ram
Reply
#38
Yes actually it has. But it has three times the price and it is out of stock everywhere

https://banggood.onelink.me/zMT7/8b7oyu8y
Reply
#39
the price was $17 a 2 years ago, then $30 last year. It seems $50 now, better buy some, in a few years they will be $800.
Reply
#40
May I ask if you have followed up on the project? Is there a stable running version of the ESP32 client?

Did you use a jlx1286 display? I get the following error message when I set the lcd driver to "jlx12864" (same error with "nokia5110"):
lcd driver jlx12864 True False
Traceback (most recent call last):
  File "boot.py", line 14, in <module>
  File "lcd_esp32.py", line 41, in <module>
  File "lcd.py", line 115, in __init__
AttributeError: 'module' object has no attribute 'spiscreen'
MicroPython v1.14-4-g5de2fa392 on 2021-06-08; ESP32 module with ESP32
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)