-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for M5Stack Core2 planned? #145
Comments
Hey, the Core2 should already be supported. |
Interesting, not sure you're aware but the Dutch magazine Computer Totaal mentioned your work and they suggested the Core2 implementation wasn't yet ready (https://computertotaal.nl/artikelen/internet-thuis/zo-maak-je-een-eenvoudig-dashboard-voor-je-domoticasysteem/). This is why I got myself a Core. The Core2 with its touchscreen would be way cooler. I actually found that to get the colors in their article I also had to set the displayColorInverted to true on the Core. |
Oh, wow. I wasn't aware of this! I guess it's time I order myself a Core2 and tidy this up nicer! |
Ah, cool. I actually found their description of how to get things up and running pretty helpful at times, it felt slightly more detailed than your own (their demographic includes less experienced users as well). I'm a Product Owner, not a die-hard techy, though I like fiddling around with things, possibly it would be useful if I write something up regarding my experience, as feedback? |
Absolutely! There's a Wiki here on Github which I sadly have neglected way too much where this could be very useful for! |
Where do I send it? |
Thanks, that was the intention of my article, to help non-techies with getting Homepoint up and running :-) Nice to hear that this worked. In fact, I tried flashing Homepoint to the M5Stack Core2, but the device didn't boot (or at least I didn't see anything), and I didn't have the time then to investigate this further. Maybe the display code needs more changes than just inverting the colors, or maybe it's something else. In the mean time, I have been using my M5Stack Core 2 for another purpose, so I haven't been able to look at it further. But I agree with the touch screen it would be a very cool device for Homepoint! |
@koenvervloesem Thanks for the article! :) @cerietke you can mail it to me at matthias (at) s-r-n.de |
Mijn nederlands is unfortunately not zo goed als dat ik dit en engels vertaalen kan (als en duitser ;)). |
@koenvervloesem Good article! I read it with google translator. ;-) I was looking for a touchscreen for an ESP32 or ESP8266 to send mqtt signals to my mosquitto and ioBroker. |
Cool that you're also checking in here Koen, I was not aware of homepoint nor the M5Stacks and it covers a lot of nice usecases I was looking for solutions for. Better stick with English or German ;-). I'll mail you with feedback. As an experiment I essentially turned the M5Stack Core into a lights and music remote control for my bedroom (receiver is in another room), but I was also thinking about the wall switch replacement option. |
Thanks! For Wallswitches, I vaguely recall there was a Kickstarter Project trying to achieve this too: |
Yes i found that project too. But the Core2 is ready to go. I ordered 2 from digikey.de for 39 Euro each. |
Received one today, but this will take longer than expected. Can't even get the screen to work right now. |
I use the Arduino IDE. There i have to change the library from "#include <M5Stack.h>" to "#include <M5Core2.h>" for example to run most code for the Stack on the Core2. I dont know how it works with the Espressif IDE. |
Yeah. But HomePoint supports multiple platforms with multiple capabilities and introducing dependencies on specific platforms is to be avoided. For it to work on all of them the code has to be generic and abstracted enough, and there come the challenges when a device introduces new components (like Core2 using a different touch-screen handler and moving certain TFT related capabilities to a separate power management chip) |
Ok i see. It is much more work than changing a library. But i hope you like your Core2 and will have time to make homepoint run on it. |
I got one as well, so hoping to see homepoint work on it at some point in the future. |
Got the display up and running today, next up Touch Driver support. If you feel like helping out but lack the programming skills. the best way is a small donation (there's a link at the end of the front page README) as I bought this device just to add compatibility for all the requests. |
Yay! Sitting here at virtual FOSDEM and tinkering with HomePoint and the Core2. Display won't turn on, version 0.6 with displayColorInverted set. Going to wait for a pre-compiled binary core the Core2. |
Here's a first beta. Sadly the images dont look super pretty. The Core2 library is sadly also a far-cry from the Core1 one (m5stack/M5Core2#33). Ultimately I might have to tear the Core2 one apart, which might mean lots of more work until things look as good as with other ESP32 devices. |
I uploaded the new core2 binary and have access to the web interface. I change the config file, so the Core2 is in my wifi network. |
Sorry. there was a bug in the build script that leads to the binary actually being the same as M5Stack (non-Core2) |
Now it works! I made an OTA update and a reboot. |
Alright, just implemented proper JPG drawing, so no more artefacts. Did a new release too: https://github.com/sieren/Homepoint/releases/tag/v0.07 If you enjoy this work, please consider donating so I might be able to recoup the Core2 which I bought for this ;) |
Trying to flash 0.07, but after flashing the full (and the OTA), I hear the device constantly booting with a typical 'reset' tick sound. It physically makes noise: ticking and sometimes a high-pitch whining. Screen won't turn on, and no 'homepoint' access point. If I flash back the factory test program with m5burner, the device works. Any idea what's happening? Factory test indicates no hardware problems. |
Hi, i first flashed the core2_full binary. |
Oh boy, this looks like a bug. I'll take a look later today. |
Awesome..I'll add this. But will keep the x at the top too. As nice as this gesture is, discovery might be an issue. |
@cerietke you have to make sure your images are of PNG & 16 bit indexed colors. Here are a two images from the upcoming release: Worth noting that re-coloring these is now happening on the fly. Eliminating the need to have two separate icons. |
Ha, I started from JPG. Still unsure how to get paint.net to output as 16 bit indexed, but I'll try later and report back. |
I'm sure it can be done. But what do you use to get to the correct image? I cannot find the correct option in paint.net. I am happy to use something else. Or am I using the wrong settings on https://lvgl.io/tools/imageconverter ? |
Both GIMP and Photoshop can get the job done. (e.g. https://docs.gimp.org/2.10/en/gimp-image-convert-indexed.html ) Your settings seemed right to me |
Indeed appears like paint.net doesn't have an indexed mode. |
Trying gimp, when I copy your file it works. When I start from my png it does not. I do image -> mode -> indexed -> maximum number of colors (16) -> convert, then I export to png (leaving the default settings). There must be something you're doing different than I am. Besides the images, any insight on the screensaver? I'd plan to use this as a nightstand device, so screen always on would be a no-go. In fact it would be very nice to be able to disable the LED at the bottom and any other lights as well. |
Yes, I converted it to Greyscale before going indexed just to make sure there's no colors left in it. As for the screensaver: It's coming back at some point. It was a lot of work transitioning to this library and I'm not done yet, I'll do the screensaver pretty soon after cause I'm facing the same problem as you. |
Oh, one thing I forgot. I used the "Fill" tool once on the black background of your image since it wasnt really entirely black before. there were a few greyish pixels. |
What do you mean with "it doesnt show the picture" ? like, not at all? |
Yeah, not at all. I also tried to update the json to use it instead of the working picture you provided to confirm it was not a problem with the json. |
I literally chose indexed though :( |
I can't choose color map of the image under custom palette. Btw, if you want to communicate more directly I am happy to. I imagine that a process for others being able to create the images would be important. I left that at the default settings, looks the same as yours, could it be a Mac vs. Windows issue? |
Hi Matt, i tested the new version and it is cool. Swiping is nice. The config file bug seems fixed. But every 5 minutes my device restarts? And i have a problem to get temperatures shown. Switching lights works so mqtt seems to work. topic : kw97/laden_temperatur/tele/SENSOR Homepoint config: Doesn't work. That was the same in the old version, no new problem. |
Hey @kraus-wagner, can you paste the whole config? @cerietke I've just checked with GIMP and using the same workflow in it I've been using in Photoshop results in no icon showing. (Plus GIMP is an absolute dumpster fire...). I'll continue to investigate this. |
Good to know I am not completely crazy 😉. At least with paint.net I did get an image to show. I'm not a big fan of gimp either, possibly paint.net is more promising? |
Maybe? I suppose Paint.Net is what's formerly known as MS Paint? 😅 FWIW I can't even get your image working with Photoshop anymore. Maybe my brain's too fried today. Can you attach your original image to work with? |
No, it's not MS Paint related. It's getpaint.net btw. I'm on mobile now, can upload the image tomorrow. |
{ All temperatures and power shows 0. |
I am not sure if this project is still supported by @sieren but if anyone is interested I made some fixes to the Homepoint v1 (non lvgl-based) version for M5Core2 in my fork: https://github.com/Girgitt/Homepoint/tree/v1-m5core2-fixes Major issues fixed:
Minor issues fixed:
With empty wifi config M5Core2 is still not rock-solid but stable enough to get to the initial config web page to set wifi credentials - just do not refresh the config page multiple times. With wifi configured you can experience couple crashes on initial access to the config web page but after that it works stable. My longest test so far was 38h with about 10h with lost wifi connection (I took it to work; mine has battery in the base) and after getting back home wifi reconnected just fine and mqtt was working straight away. Good enough for me. |
If nobody else I definitely appreciate your effort. |
OK, I think I am getting somewhere my dev_1_0_2 build (https://github.com/Girgitt/Homepoint/releases/tag/dev_1_0_2) works ok on three different M5Core2 with multiple pages and hierarchies (room->device). I have not tested measurements, only switching lights. |
There is one important prerequisite for M5Core2 to work with Homepoint - the touchscreen internal firmware must be in a correct version. Most of my devices (5 out of 6) had firmware version 0x10 which barely works (detecting short presses only, no responsive at all after longer operation). The correct version is 0x11. I described how to check/change the fw in issue: Girgitt#9 |
Will you support the new M5Stack Core2?
The text was updated successfully, but these errors were encountered: