r/esp32 • u/ImaginaryTango • 6h ago
Software help needed General Programming Question - Programming Environments and Frameworks
This is a, "I'm not sure which way to go and want to plan where to focus my research," situation. I'm used to Python, don't mind other languages, but I'm nowhere near a pro or that highly experienced with embedded programming. In the past I've tried out a number of frameworks like ESPHome, Tasmota, and others. Then I had to set aside my ESP32 work and experimentation for other things. That was at least 18 months ago and now I want to get back into this. I found that, like so many choices in programming, it's a tradeoff. ESPHome gives me some great features, but adding a touch screen was quite complex. Other environments made touchscreens easier, but didn't offer other features.
I've considered using Espressif's libraries and environment. The advantage to some of these frameworks, like ESPHome, is that a lot of the coding is under the hood, so you don't have to deal with it. I've looked at Espressif's website and info on their libraries and how to write for them, but I have a some questions about what they have. I did find they have things documented, but I was looking for an overview of some things I can't easily find. So I'm trying to get an understanding of what Espressif includes (or if there is a better development option).
I'd like to find some good tutorials on programming with Espressif's tools or with any other toolkit, framework, or libraries people recommend.
Ultimately, I do want to include touchscreens (I know touch screens can depend a lot on what screen you use) and being able to handle output like PWM, or turning devices on or off. I did find, at least, that Espressif's libraries do have included things like PWM, but there's no clear overview of, "This is what you can do with our tools." For example, I remember seeing Python mentioned, but didn't see anything to indicate how to use their tools from Python. I was trying to just find example projects on their site but could not.
I'll admit it's quite possible I missed some info on Espressif's site.
So what options exist if I want to program an ESP32 directly and do any have advanced libraries that will do things like make setting up a touchscreen easy? Or will make, say, timers easy to use? In other words, I'm hoping that I can find libraries or a framework that gives me control, but also includes higher level functions like I've mentioned, so I don't have to, say, write something on my own to create touch screen controls or times or PWM (for fans) output.
I know there are a lot of frameworks out there. I read slowly and it takes me a few days, full time (on the few times I can spend that much on this!) to look into a framework and decide if it would be a good choice. I'm trying to narrow down choices so I can research a few options instead of a dozen or more.
1
u/hayleygyl 1h ago
I’d probably start with Arduino + LVGL. You get easy access to PWM, timers and GPIO without having to dive straight into ESP-IDF. Since you’re already familiar with Python, MicroPython is also worth a look, but I’d lean towards Arduino if touchscreens are a priority.