Regular readers may recall a couple of years ago I wrote about the M5Stack – https://tech.scargill.net/the-m5-stack/ and here we are again with the M5Stack Core 2 – the ESP32 IoT development kit which comes complete with 2 inch touch display. Now, I know what you;re going to say – why is he bumping an old blog entry? The last time I did this was September 1, 2020 – so what’s changed?
WELL, I just learned about this ESP32 variation having 16MG, not 4MB of FLASH – and that could not be timed better as Tasmota are in the process of upgrading the graphics capacility of their alternative firmware and I’ve just spent the better part of two days talking with their guys and beginning the process of turning the Core2 into a truly useful addition to my home IOT. I just wish all the sales companies would make it clearer when selling ESP32 boards, what size FLASH they come with – it can make a BIG difference – anyway, read on…
The upgraded Core2 has 8MB or RAM, a 390maH battery and you can easily add a bunch of peripherals.
Doing nothing more than pressing the ON button, my CORE2 actually DOES something – ideal for ESP32 novices. Some say a picture is worth 1000 words so here goes – this is all internal – I have no SD mounted – this is straight out of the box. There’s a little Chinese in there but hey, these are (were) early days and the images are just the default demo.
I can’t wait to have a go at the Arduino library on Github which also has sample code, and I suggest rather than me copying a load of specs, interested readers check out the Core2 documentation in the Wiki
This is exciting – there’s a microphone and a load of other sensors inside the Core2 unit. See the “Sound FFT” section above – I just said “hello” and it started reacting. I’m also seeing a charging indicator – shame I’ve no idea what the Chinese bits mean. There is a sound system in there and some kind of motor/vibrator. In short, lots of things to play with before lifting a programming finger.
September 14, 2021 Update
THIS is fun… SO, taking the PC-downloadable M5BURNER software, I grabbed (one button press to download, another to burn) the Core2_tools software (replacing the original demo which ships with the Core2)…
I now have the UIFlow IDE set up for both the Core2 and the M5Paper. I’m in the early stages of experimenting with the various demos and up to now, pretty much no technical knowledge required.
I then used the tools to set the time and date (NOW I can go back to that calendar and actually use it properly)
Note that because of the ESP32 core, the device can onl;y recognise 2.4Ghz WiFi and not 5Ghz WiFi.
AND now I realised the bottom of the Core2 comes off exposing the connector, I guesss I’ll have to find out what that is in that defaultt installed cover (one chip) – I’m sure it is all detailed somewhere but somehow I missed that – still – all part of the fun. So, taking off the first cover exposing the edge connector is easy – taking off the back to expose the PCB needs an Allen key – simple enough – and from there you can get to the 3v7 replaceable battery.
‘Now isn’t that hany? The connector diagram above tells you what each pin on their connector does and how they relate to ESP pins – Tasmota users will find that VERY handy for setting up the config.
Note the 4 magnets in the base. I KNEW I’d find a use for all those 3D-Printer-Kit Allen keys some day. Anyway I only needed one. As the CORE2 unit uses an ILI9341 display it should not be a problem making use of this unit with Tasmota for anyone who feels that way inclined. I’m so excited because I need a wall display with touch and that until now that meant finding a decent case with battery compartment etc to handle the ESP32, display etc…. now thanks to this I can use the CORE2 with Tasmota tools I love. I need MORE of these units!
Are you READY? Minutes later – with the Core2 plugged in – I grabbed the CORE2 bin file from Tasmota and using my usual flashing tool… one Tasmota’d Core2. I entered my WiFi credentials – which meant I could now continue on my PC.
The very first thing to do is give the unit a decent name in Configuration – see all those peripherals running in the Core2 – no battery consumption as I was running on USB. After removing the USB the consumption went to 60ma on average.
Initially the display showed back to front – but jason2866 in Tasmota DISPLAYS in DISCORD told me about an as-yet undocumented command DISPLAYTYPE.
In the Tasmota console I entered DISPLAYTYPE 2 and that fixed the display. He and s-hadinger have been of GREAT help in the tasmota-displays area and all of our conversation is there for others to benefit from.
The Core2 device itself has a temperature sensor which is not far off – it’s warm in my office.
But this is only the beginning – now I have the new FLASHER and as of this evening – with requests for help leading to some changes – we now have a great development base on the 16MB FLASH-BASED (and 4MB RAM) CORE2.
Notice the gyros, temperatures, voltages etc in the Tasmota console to the right – that’s all built in to the CORE2 and the relevant Tasmota build – AND NOW – LVGL with support for PNG files and various fonts – I’m excited. I’ve yet to do anything useful with the new LVGL capability but I’ve already read the temperature in MQTT from the unit and once I get some graphics in there and have a play with the on-screen buttons – the sky’s the limit.
Ok so the photo below says Pete’s Demo – it’s not actually mine – SFROMIS and S_HADINGER on Tasmoa DISPLAYS Discord set this up with eth buttons in Tasmota LVGL and at this point I’ve only JUST figured out how to change colours, font and text so I could not resist personalising it. See Simon Horner’s comment about the side power connector. Hmmm, it would be better out the back..
I also have the M5Stack ATOM Lite ESP32 Development Board – but more on that later when I get some peripherals.