Тёмный

ESP32 Display 

Vaclav Chaloupka
Подписаться 12 тыс.
Просмотров 49 тыс.
50% 1

The Elecrow ESP Termonal is all-in one ESP32 Touch display, with ESP32S3 microcontroller and 3.5 inch touch screen. So it is ready-to-use, in a compact acrylic body - no soldering required. But it also means the HMI layout needs to be programmed in the microcontroller.
And I use it as a control panel for my house Energy Management, to control automated charging of my electric cars.
Initially, I thought I’ll program it in ESPHome, but throughout the project I changed my plans and switched to Arduino. I used the SquareLine Studio to generate code, and just added the functions to communicated with Home Assistant through its REST API, and logic for the buttons to switch between manual and automatic modes.
And I even designed a simple French Cleat mount in Blender, printed it on my Prusa 3D printer, and mounted it to the wall. So you have it all, start to finish.
The Elecrow display: www.elecrow.com/esp-terminal-...
00:00 - intro
03:30 - trying with ESPHome
09:04 - SquareLine Studio
10:12 - Marker 15
10:15 - Marker 16
14:46 - genrated code
17:28 - setup - add WiFi
17:47 - communication - MQTT (why I do not use it at the end)
18:24 - Home Assistant API
20:16 - button logic
20:55 - updating values (production, consumption, battery etc.)
23:02 - upload
23:39 - finished display
25:20 - designing and 3D printing French cleat frame
28:12 - installation, finished project
28:42 - outro

Наука

Опубликовано:

 

10 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 41   
@RickWilliamsPlus
@RickWilliamsPlus Год назад
Great video! I appreciate you showing (to a degree) the dead ends and false starts you encountered along the way. I haven't attempted anything with esp yet, but I feel like your video gives me a reasonable idea of the kinds of issues and solutions that I may encounter.
@AndrewDanne
@AndrewDanne Год назад
Awesome work. I wish there was a well supported touch display that has highly customisable GUI with colors and functions that works natively in HA. You and others are progressively working toward this. Great work. Wish this had of been easier with ESPHome.
@BerndSchmitt-Martinique
@BerndSchmitt-Martinique Год назад
WT32-SC01 3.5" Capacitive Touch
@PatrickFelstead
@PatrickFelstead Год назад
Also thanks so much for showing the http POST and GET method of HA communication. I didn' t know about this. Sometimes I can't get ESPHome to do what I want, or its buggy (e.g. FastLED and RCSwitch), or I want to use a sensor or device that isn't supported so I often think of going back to Arduino C++ code and MQTT. So this is a nicer method I think!
@dfgdfg_
@dfgdfg_ Год назад
Making a GUI from software primitives on hardware like Adafruit PyPortal has always been time consuming - the Studio looks very nice and much faster!
@keepitdialed
@keepitdialed 10 месяцев назад
Seriously ninja outcome dude. TOP NOTCH. won’t be trying this myself though.
@martyb3783
@martyb3783 Год назад
Very cool. Well done!
@nemesis851_
@nemesis851_ 5 месяцев назад
Video saved to my Playlist - Thanks
@PatrickFelstead
@PatrickFelstead Год назад
Hey Vaclav, looks like a nice device. I have recently started using ESP32-S3's with ESPHome and have no problems flashing. I also use the Arduino framework. I don't need to press any buttons (boot or reset) to flash the first time. I find it easier if I connect the ESP32 to the physical computer running HA, rather than a remote laptop that you're accessing HA from. After first flash, obviously subsequent flash via OTA. I use this code: esp32: board: esp32-s3-devkitc-1 framework: type: arduino
@desmond-hawkins
@desmond-hawkins 11 месяцев назад
Hello! I'm curious about which device you're using that doesn't need to be put in firmware upload mode with BOOT and RESET, as far as I know all ESP32 devices from Elecrow need this. It's clearly documented on their wiki and their datasheets show why that's the case. Which ESP23-S3 device are you using that doesn't need this? From your comment that it "looks like a nice device" it sounds like it's not the same as the one shown here.
@PatrickFelstead
@PatrickFelstead 11 месяцев назад
@@desmond-hawkinsits a WROOM module I soldered to my own PCB design. But also the other S3 dev board I have from Lilygo does not need any button pushes to flash ESP32-S3 T-Display.
@desmond-hawkins
@desmond-hawkins 11 месяцев назад
@@PatrickFelstead Thanks for the reply! Yes I've used lots of different ESP32 boards and almost none need this manual step, which is a major downside of Elecrow products in my opinion. This depends on the way they connect 2 specific pins from the USB-to-serial converter (DTR & RTS) to 2 pins of the ESP32 (GPIO0 & EN). These are the pins on which a computer will signal to the board - via USB - that it wants to upload a firmware, so without these explicit connections on the PCB this step needs to be performed manually. I found it super annoying to have to do this with my Elecrow board and switched to a WT32-SC01 Plus instead.
@phamks6109
@phamks6109 7 дней назад
I already have exported the UI file same your instruction, but there isn't any .ino file; .ino file was exported by squareline or have you written it?
@Abc-sl1nf
@Abc-sl1nf 10 месяцев назад
Thanks! Can you share the code? Suppose I just wanted to display buttons and not use wifi because I actually have hardware I need to turn on and off locally and not wireless?
@chrisdixon5241
@chrisdixon5241 Год назад
Superb video, what a nice project! I would say that even if you had to invest some time learning new tools and libraries, it's worth it to get the result you want... and now you have new skills to make future projects easier. Since the whole interface seems to be generated from code, I suspect that it is using simple primitives to draw on the screen, meaning you could display anything you want - possibly create a simple Home Assistant bridge code to run on the display which could be told what to show by HA (for example to pop up an alert or notification)
@popsyann
@popsyann Год назад
Nice job!😊
@LimboDIY
@LimboDIY 5 месяцев назад
Thanx a lot for this incredible tutorial. I tried to program my display by your instructions, but it keeps failing at different places. Can you shere your code, that would really help me with troubleshooting!
@Hafenstrand5
@Hafenstrand5 Год назад
Nice video, would have been great if it worked out with esphome. Please tell if you find the right board in the future!
@muchtall
@muchtall 9 месяцев назад
Hi Vaclav! Your video inspired me to purchase a couple of these 3.5" units, only I thought I'd take it a step further and get the parallel version. Much like you, I had the original intent of using this with ESPHome, but figured I would get started with Arduino or PlatformIO to build a proof of concept. After spending hours digging through the example code, I realize there's some serious errors in Elecrow's documentation. Can you share your code to help some of us get over this initial hurdle?
@mateuszmalik1531
@mateuszmalik1531 Год назад
Hello Vaclav, can you tell me if you can check or get the maximum possible brightness value of this LCD panel? Is it more than 300lx? I am asking as I am looking for something that can be used in daylight.
@alperarslantas5771
@alperarslantas5771 4 месяца назад
respect ! liked !
@viktorhugo8252
@viktorhugo8252 9 месяцев назад
This is a good display but I want a 7“ with touch and minimum of 640x480 pixel with s3 inside. Sunton have one 8048S070. Your way of wall mounting is great . I always use a simple case 3D printed with back cover with 2 M3 screws on the top of this. you see the screws but is so simple to fix it on the wall and a maker don’t care of design price.
@gjsxnobody7534
@gjsxnobody7534 11 месяцев назад
Vaclo, dobri den, nice video good job bracho. :-) are you in CZ or West? Quick Questions, you said you switched to HTTP from MQTT? I would think you could send more data easier with MQTT no? or do I have it backwards?
@legnava
@legnava Год назад
Zdravím, poradil bys mi, kde prosím sehnat nějaký kod meteo stanice do esphome na desku esp32 a tft lcd 2.4" 320x240 ili9341
@PyroChimp75
@PyroChimp75 Год назад
I cannot smash the like button enough, thanks for this video!
@wkipo
@wkipo Год назад
Hi, Vaclav, thank you, as always great video! What Smart Home project would you recommend for Arduino beginners?
@bruxy70
@bruxy70 Год назад
Typically, you start with a blinking LED. Then perhaps adding a simple temperature sensor or something like that. And then start playing with the displays. They have simple demos on their web, like making one button. And then you can move to Square line. Perhaps watching some C tutorial before that would help. That's what I think...
@MrNetworx
@MrNetworx 6 месяцев назад
Hı, thank you for sharing, I have a 7" model but I couldn't manage to run it, can you provide a working library folder and example code for this ? I tried many libraries but result is zero :) Have a good year.
@ThePretester
@ThePretester 4 месяца назад
help help help how connect usb idont see port
@GeeTrieste
@GeeTrieste 6 месяцев назад
I would really like to use one of these integrated display/ESP32 devices, but so far as I have been able to determine there are very few PIO pins left for the numerous devices I need custom I/O for. Is it that the display takes up most of the all-purpose pins leaving only like 5 for other uses? Yes I know there are some bus based I/O connectors there, but I really would like to talk to my peripherals and transducers directly from the board. Maybe I am misreading all of this and it is not as bad as I think it is.
@Dan8254
@Dan8254 2 месяца назад
WT32-SC01 Plus has 6 GPIO pins exposed via JST connector. I use 4 of the GPIO for direct I/Os and use the remaining 2 GPIO for I2C which I connect to various I2C modules including a 16bit I/O extender.
@GeeTrieste
@GeeTrieste 2 месяца назад
​​@@Dan8254 Thank you for that info. 6 pins should be enough for my application. I will check out that model.
@jeffmaynard8371
@jeffmaynard8371 Месяц назад
I want to make something like this but i cannot seem to get my esp to communicate with home assistant. anyone willing to help
@keepitdialed
@keepitdialed 10 месяцев назад
He says “you just…” 🤣
@wojtekadams
@wojtekadams 11 месяцев назад
Did you run display with ESPHome?
@bruxy70
@bruxy70 11 месяцев назад
Not this one
@wojtekadams
@wojtekadams 11 месяцев назад
@@bruxy70 i see that ESPHome supports only śpi disp.
@desmond-hawkins
@desmond-hawkins 11 месяцев назад
I bought the same ESP Terminal from Elecrow and I have found it *so* painful to use with Arduino that I eventually gave up on it and replaced it with a WT32-SC01 Plus for my project. The video shows you putting the board into "firmware upload mode" several times with the BOOT and RESET, since this is needed *every time* you want to upload a sketch. Changed one line of code? You need to press these small buttons. This was making me waste so much time, I found it unusable as a development target. Very few other ESP32 boards I used had this issue, but from the Elecrow datasheets it looks like all their products have the same flaw. *Hard pass* for me until they fix it.
@MrHannesable
@MrHannesable 4 месяца назад
This is exactly what I'm trying to do right now with an Waveshare ESP32 S3 4.3 Touchscreen DevBoard. Is there any possibilty you could share the code? I still have some errors in mine I want to get rid off.
@smokey8400
@smokey8400 5 месяцев назад
Square Line is horrible software. On Windows 11 was freezing up, not saving buttons, not storing events, import doesn't work. Don't buy this
Далее
ESP32 Guide 2024 | Choosing and Using an ESP32 Board
41:06
ESP32 + 7in LCD + Fast RGB Interface
27:42
Просмотров 7 тыс.
ESPHome Guide for Advanced and Intermediate Users
13:36
STM32 + LCD TFT = Display Any Data
17:28
Просмотров 10 тыс.
Try these 16 Brilliant ESP32 projects!!!
11:18
Просмотров 549 тыс.