The M5 Stack looks to be a reasonable use of the ESP32 and for those who need to start from a boxed product with display, it might just have a bright future.
In a nutshell this is a pretty looking ESP32-based box with display and buttons. Do with it what you will. It needs low voltage and the basic unit comes with internal battery supply. instructions, 0.1” pin leads and a USB C lead for charging and serial connection.
The M5 Stack Extensible Micro Control Module WiFi Bluetooth ESP32 Development Kit or Core Module — (update September 2021 – see M5Stack Core 2 article as this original M5Stack has been upgraded – and is now quite useful)
More Arduino Compatible SCM & DIY Kits — https://goo.gl/QRDLD6
I just HAD to order one and so I thought I’d put a note in here for people into the ESP32 and I’m already seeing responses including a useful note from Bob H and comments from others. All in all I’m already convinced I need this gadget on my hallway wall even though I’m not yet entirely sure what to do with it. Perhaps people who are ahead of me might write in soon to save me re-inventing the wheel.
For now I can learn all about it, in the Autumn when returning to the UK it could just end up as a useful central display for what will be a brand new Raspberry-Pi and ESP-Go based control system as we’ve moved from one house to another, 5 miles down the road.
The basic box with 320×240 colour display is around £27.48 sterling with free post (or not, depending where you live of course). Apart from Bluetooth, nothing I can’t do already with an ESP8266 but then it is all in a pretty box.
That has to be worth something as presentation is always an issue with home-brew IOT.
I’m counting on this box being able to do heavily customised MQTT messages from those 3 buttons. I hope I’m on the right track.
For now it needs a good charge.
Not sure yet what the first two errors mean but the SD error is easy enough, I’ve not inserted an SD so that’s reasonable. It clearly is picking up on my WiFi using it’s own firmware.
Hi,
I developed a stereo web radio for the M5Stack with software, audio board, 3d printed enclosure and documentation.
You can find it here: http://nakedninja.cc/smart_products
Howdy and hope you are well. The M5stack has a smaller format version available with colour screen battery etc. The price is the best part. Only 13 NZ dollars at the moment – the same as a bare esp32 module. Search for the M5stickC on Banggood.
Finally got round to trying out the Ulflow online development IDE and it’s really great to use…….. apart from the lack of documentation as per the rest of the site, I’m struggling to get MQTT working but as it links up via WiFi you can upload and run your code straight away.
I got my hopes up when I saw “USB-C”, thinking I’d finally found something with a *proper* USB port (not just fixed to serial port) that I could implement gadgets on, and maybe also use as a host. Oh well. The search goes on.
If I’m reading the version 2.0 release features correctly, registering user function in the M5ex idle loop should fix the blocking problems.
“M5ez 2.0 will also have backlight setting, a clock in the header bar as well as definable header widgets and the ability to register functions to be part of M5ez’s idle loop.”
I have the 2.0 beta and will be checking it out tomorrow.
With idle loop function calls, the menu object seems to be turning into an operating system. Maybe that’s better left to the experts.
I’ve had good luck with a two core approach with RTOS. One core just for the UI.
Also, M5Stack—SAM is non-blocking. But not as complete as M5ez.
A commercial remote with the M5Stack look.
https://www.evehome.com/en/eve-room
in case someone wants to experiment with this, and LoRa 🙂
http://tinkerman.cat/m5stack-node-things-network/
Some of the M5 stack “Fire” units (with 4M PSRAM) shipped defective.
They claim the problem has been fixed for new shipments.
The official test for this is found at M5stack.com->download->M5Burner-for-Windows
Unzip/run the M5Burner app on Windows. Has a little M5 icon.
Enter COM: Port, Baud 115200, Firmware: M5Fire-psram-test
Connect then Run
On the M5 Fire unit, read results.
I have two units.
Unit 1– PSRAM NOT Found
Unit 2 – PSRAM OK
for who uses the Arduino IDE, v1.8.6 is out today and introduces parallel build and better reuse of already compiled files… if you have a multicore CPU, it’s suggested to upgrade 😉
https://www.arduino.cc/en/Main/ReleaseNotes
and… you can now program a raspberry using arduino create, the arduino web editor 🙂
https://create.arduino.cc/projecthub/weargenius/rpi-gpio-programming-using-arduino-web-ide-4206d6
What I’m seeing are some awful demos – simple display etc. Anyone know of a sketch with WIFI+MQTT+display+buttons as a starting point?
I just used an ESP8266 MQTT sketch and added the M5 library to add the buttons and screnn control, it works fine apart from the readVCC function. I can post my code if you ant as long as you don’t laugh at it! 🙂
Sounds like a good start, Phil…
Oops, just saw how bad my typing is 🙁 must read post before submitting…..
I’m working on it. 🙂
I’ve used the M5ez library to give me a kickstart but menu’s are loop blocking which isn’t good for MQTT use. I’ve implemented a simple FreeRTOS background task though and that works really well. These things actually multi-task!
The M5ez library also has a very nice WiFi manager and a WiFi signal strength display for the header. Also has nice button management.
Power off and button wakeup also REALLY easy thanks to the M5stack library.
One thing not mentioned in the official docs. The basic unit has a 150 mAh built-in battery in the bottom cover – it will operate happily for about 10 minutes with no power management.
I really like this thing and will probably have to buy a second one for development and testing because I think a unit will be going “live” as a family-friendly home controller before too long.
just found a couple of nice esp32+lcd+3 buttons boards on aliexpress, not expensive but without a case… with microsd and battery charger
https://www.aliexpress.com/item/TS-V1-0-Esp32-1-44-TFT-Display-For-MicroSD-Card-Slot-Speakers-Bluetooth-WIFI-Module/32867893841.html
https://www.aliexpress.com/item/ESP32-LCD-Screen-Board-for-BTC-Price-Ticker-Program-4-MB-SPI-Flash-4-MB-Psram/32880180286.html
Good find there! Thanks for sharing. Just a shame they don’t come with a case – it would only add a few pennies to the price in China and would make a nice little setup. Likewise if there was an ESP8266 version, particularly given the ever decreasing cost of the ‘8266. The ESP32 is overkill for pretty much everything I need for my two IoT setups.
edited to say – I give in..I’ve bought one …the 2nd one you posted. It always happens on here…I end up buying stuff I don’t actually need! Cheers
If you find an easy case solution for that, let me know.
Right, I have the Arduino IDE Boards Manager add-ons file with ESP-32 support. Anyone know which board option to use to work with basic M5-Stack?
arduino ide board manager support: http://www.m5stack.com/download/package_m5stack_index.json
and lots of projects here: https://github.com/m5stack/M5Stack
Not a good start – Areduino ide after adding the M5 to board manager and selecting – http://www.m5stack.com/download/package_m5stack_index.json file signature verification failed. File ignored
http://forum.m5stack.com/topic/68/unable-to-add-board-in-arduino-ide/4
The correct board manager JSON file seems to be https://dl.espressif.com/dl/package_esp32_index.json
This is listed in the docs folder you get if you install the way suggested on the forum.
This seems to work just fine and is a lot simpler than the forum method since you should be able to continue to use the board manager for updates.
Anyone know of any prebuilt cases for ESP8266? Especially with LCD – and maybe battery too (though that’s less important)
Not all of us have the space, time or money for our own 3D printers.
Have you looked on Thingiverse or maybe try to design your own and get someone else to make it for you, I wouldn’t mind printing something for you or there’s a few on-line services like Shapeways or ITEAD.
Thanks for the offer Phil. I realise that I can get someone to print something for me. I was more thinking about something like the M5 stack but for an ESP8266 rather an an ESP32.
Just wondering really.
No problem, I suppose to get something similar you would just need a PCB design with a layout to attach the the esp8266 and the display in the right place to match a box but you probably already know all that😁
Yes. Sadly, not enough time to do things like that. Perhaps when I’m retired like Pete 🙂
I’ve been making or modding little boxes since I was a teenager – mind you they usually still look home made.
It actually looks like it is cheaper to buy the M5 than to have a box made for an ESP8266 project.
Currently on special “back to school” offer on AliExpress plus I got a loyalty code from AE so I ordered one 🙂
When you factor in the case with buttons and colour display, tf-card slot, speaker, definitely cheaper than doing it yourself I think.
Anyway, I can think of a couple of projects I’ve been meaning to get to for a while to make the HA system more family friendly, this will be nice for that.
Well, that was interesting. It arrived today, 20d delivery, would be pretty good for a China delivery though the packaging seems to show that it came from a unit in the UK. So maybe they have a deal on delivery with someone ordering in bulk.
Time to dust off the Arduino IDE!
What type of screen? I made this from a WiFi extender that broke so I used the plug case with 5V supply and added an ESP8266 and an OLED display and a 3D printed front plate, it runs Pete’s ESP-GO software and subscribes to MQTT message for my hot water tank.
Marvellous…
there’s a post on boxes on this blog, take a look… there are some cheap little boxes easy moddable, i bought 40 for 10€ or so, if i remember well…
Thanks. I have been collecting boxes and old cases like Phil’s suggestion above. I was just hoping someone might be selling something pre-made like this unit but with an ESP8266 in it.
No matter, I’m sure I’ll be getting one of these. They actually look a little like the roomstat on the Drayton Wiser smart heating system I got earlier in the year.
This might be the post on boxes https://tech.scargill.net/boxes-galore/
I bought a boat load of them thinking that I could use that existing hole for a Power Barrel Connector Jack 2.10mm. But with the pc board on the standoffs, it won’t align. I have no mechanical aptitude. None. And all my projects end up looking like the box on the right.
So the plan is: the M5stack is where people might see it and the project box (the thing controlled or sensor) is somewhere else–hidden..
The thing controlled by the M5Stack.
Rev 1 fits in the box!
Pretty good for a sw guy.
Nice little 3D printed back and stand containing a 1000mAH battery, the buttons turn off/on the display backlight or alter the brightness the display receives MQTT data on hot water temp and outside temp.
OK, that is seriously cool and my creative juices are rising with thoughts of an autumn project!
What battery life do you get out of that?
Thanks,
I’ve not done any testing yet but it runs for more than a couple of hours, I was trying to get the battery level so I could log it to the SD card but it’s not as simple as the ESP8266 apparently so I need to setup up a voltage divider to an ADC channel or maybe monitor it externally via the pins on the side.
Talking about battery level , are you using the on board battery charge IC ?
You can get an approximate level from it with the following function in Aurdrino
int8_t getBatteryLevel()
{
Wire.beginTransmission(0x75);
Wire.write(0x78);
if (Wire.endTransmission(false) == 0
&& Wire.requestFrom(0x75, 1)) {
switch (Wire.read() & 0xF0) {
case 0xE0: return 25;
case 0xC0: return 50;
case 0x80: return 75;
case 0x00: return 100;
default: return 0;
}
}
return -1;
}
M5.Lcd.print(getBatteryLevel()); // in loop()
function returns % charge in 25% increments from the onboard battery charge IC IP5306 in most core and the fire
if return= -1 then it may be an old revision.
I am trying to get the charge status also , but the data sheet is in Chinese , it is there tho
Thanks but thought that was only available for the M5 stack, have you got this working on the M5 Stack Basic version?
If you scan the I2C buss and see address 0X75 respond it should work.
My M5 stacks are the basic module. I think some old revisions don’t use the I2C version of charger IC ( IP5306 ).
I2C bus scan can be found in M5stack>Examples>Advanced>I2C_tester
You’ve gotta admit – that’s a neat looking setup there. I’m really tempted but it’s just a little bit more expensive than I’d like (which is silly really as it’s all good to go and I’ll spend more time and money casing up a bare board alternative…).
Yes, product info is pretty much total chaos. Which is part of the fun.
The Arduino IDE setup has vastly improved. Andreas shows how: https://youtu.be/DgaKlh081tU
An improved version of the Proto board they sell. Build/print this instead.
http://forum.m5stack.com/topic/95/custom-prototype-board
Currently, having trouble converting jpgs to C files for the M5ez image menu library format.
I love this product so much but there are so many problems.
as i can read here, there are 2 versions, one with a gyro+magnetometer+other, and one without… they load the same sketch on both, so those errors say you have the latter…
http://forum.m5stack.com/topic/269/new-m5stack-show-mpu-errors/5
Apparently some problem with psram on the Fire version of M5stack.
In this “You’re holding it wrong” world, personal accountability from Jimmy is refreshing.
https://mobile.twitter.com/M5Stack/status/1027828441653989376
One problem I’ve found, you can’t get a nice quiet beep, it’s a full volume LOUD beep and the volume control doesn’t seem to work! so be aware if you want it to give audible feedback it may be a problem.
The problem is you must write your own menu library.
Just kidding!
https://github.com/ropg/M5ez
Thank you for this – I hadn’t seen it before
This library is pretty amazing! Makes it really easy to display things, put up menus, etc. Also provides a WiFi manager.
Be careful with this library. It seems to block.
I’m trying to put M5EZ on the second core for my remote control.
I have a couple – excellent for projects and very attractive case with many options.
If you want something that is visible and you need interaction, it is the best esp32 option. For general sensors, just use an esp8266 and box.
If you get a Fire M5GO version with M5Cloud web IDE and want to replace it (like with Sonoff), I had to do a command line “make erase_flash” to get WiFi to completely work.
Double click the power switch to turn it off.
I find the magnetic base is very useful for a remote control to keep it from getting lost.
I like this thing.
Yep, already did that but mine wasn’t as nice looking as this one and I also have plans for using the Bluetooth and the built in speaker.
Don’t get me wrong it’s a bit pricey (got it from Amazon) and mine was an impulse buy but at £30 from China it’s just about worth it for a from ‘WAF’ perspective, IMO.
lol, don’t tell me about impulse… i’ve tons of SBCs 😀
oh, yes, i tend to forgot the WAF perspective, right 😀
I’ve bought one of these and it’s really good, I’m using it at the moment to display MQTT messages from other ESP8266s. There are quite a few really nice projects ou there for this device like a thermal camera https://github.com/hkoffer/M5Stack-Thermal-Camera- and an oscilloscope https://github.com/botofancalin/M5Stack-ESP32-Oscilloscope and many ready to go projects.
But I’ve found that there doesn’t seem to be any really god support documentation all in one place/document there’s info out there but it’s quite fragmented and the M5 stack site itself is very flashy but doesn’t seem to have been finished off.
Peter made a little esp8266+lcd display a while ago, which does exactly that: mqtt live display…
info on this blog: https://tech.scargill.net/vt100-terminal-for-hc2018/
video: https://www.youtube.com/watch?v=qBxXZcleKq0
People keep underestimating the ESP8266. However this does solve a long term issue if needing the lot put together in a nice box.
Or are just not so skilled in programming and tend to go where most of the development (and examples to copy from…) is: on the arduino ide… Which is good but does not allow the kind of optimizations you reached with your firmware, written in C 🙂
Yes it does, Arduino is built on top of the C SDK for the 8266. You can do the same things by doing native calls to the SDK functions or writing lower-level code while using Arduino if you want to mix and match. There is some overhead with the memory consumption of course, but otherwise not really.
ESP32 is similar, except that the native SDK (ESP-IDF) is way better than on the 8266.
Funny enough I’ve just spent 2 days updating the ESP-GO code ILI9340 and QD-TECH board handling to provide a half decent display with 3 buttons – using both on my walls right now.
It would not be the first software with less than ideal documentation. Maybe they are hoping users will contribute and I agree this is not ideal.
Is there something like tasmota or espurna firmware for this? I run tasmota on all my esps because it does everything I need it to but would not be able to code it myself.
If this has a firmware like tasmota, I’d have a couple of use cases around the house already.
Sadly it has Arduino lookalike code. If it turns out to be any good I may port ESP-GO to it.
That is pretty cool and useful for those of us without the kit or the design skills for 3D printing an enclosure. I would be more interested in an ESP8266 on as I haven’t found a need to use an ESP32 yet despite having a couple in my geek box as the ESP8266 is capable enough for most of my IoT node requirements.
Nice find though. I like stuff like this. The NanoPi Neo case with OLED is another example. OLED plus some GPIO buttons. Ace. I bought one of those. Will hold back on this ESP32 one though unless I think of a project that would suit it…
I wonder if you can use the BLE stack to do more accurate presence detection – always a pain for home automation.