@kentinker Excellent. Probs a good idea to have a nice working link for the future. No worries - didn't mess me up. Good luck with the github - so far so good. Its very useful and powerful once you get into it.
I will add your files up to my github later on.... thanks again.
@m5stack No, not at all! It was just sitting on my desk and over the course of two days a crack appeared and gradually grew over the whole width. The other three edges show no problem. This is why I suspect a problem with the extrusion mould.
Is it easy to disable the MPU9250 so that I can use the pins as GPIO? In this case for an ethanol content sensor with pullup to 3.3V. Or would I be better with an M5stack without MPU9250?
By adding a CAN transceiver inside, I will have a new twisted pair coming out of the case, but if I power through USB C and use Grove for GPIO I could get rid of all the pin headers and use a slimmer base.
For an order in quantity of hundreds, what customisations are feasible? Having a unit with a CAN transceiver, no battery and a slimmer base already would probably cost less to manufacture, but it depends on the quantities to design another model.
@donck Hi, this is not "official", but I'm pretty confident this is the correct spec for a cable to connect to the battery socket on the M5:
JST SH - 2 pin - 1.0 pin pitch - Side mount (not top mount like many LiPo connectors)
The point about it being side mount is critical.
The plug connecting into the battery socket on the M5, should have lines on the sides that connect into the grooves that you can see in the socket on the M5. These are horizontal lines. The lines need to be around half-way up the body of the plug - not at top or bottom.
I measured with digital calipers & compared against other similarly sized JST cables of known size - so I'm pretty sure it's correct.
Hi Chris, haven't seen any other reports of this..... I've used quite a few M5's without any button problems.
Some parts are referenced on the last page of the info sheet included with the M5 - but not the buttons. Don't think there is another list referencing parts.
In terms of a fix:
Presumably the M5 powers on when connected to USB. So I'm assuming you sometimes need the on/off/reset button to operate as the reset button when you are uploading code. And naturally you need the button to power on the M5 when dis-connected from USB. Is that right?
Connecting a capacitor between the RST and GND ports should solve both these problems. Connect negative to ground , positive to RST.
When NOT connected to USB, connecting the cap should power it up (can remove cap once started**). Also when uploading code, leaving it connected should allow code to load - or if use of the reset button is needed when uploading, just disconnect and re-connect the cap. Or - connect a button along with the cap.
The cap I use is a 22 uf through-hole cap with polarity. 10 uf max has been suggested as the ideal max - but I've had no problems.
Hi World101, Just to clarify, I was saying the one you have is "not the most recent model with 4Mb PS-RAM and MPU-9250" - emphasis on the AND. So your model does have the MPU9250 - but it does not have the 4 Mb PS-RAM.
At this time - Feb 2018 - all models in grey cases include the MPU9250. The models in black and white cases do not include MPU9250.
The model in the grey case that includes the 4 Mb PS-RAM features a different chip (SoC) that is much smaller and does not have a sticker on the back showing the GPIO ports. Check the photo comparison. The photo on the left does show a black case model but the chip is the same as in yours - as you can see.
Thanks for clarifying the issue you had and multiple kudos to you for following up your earlier posts and noting how you fixed things. Good operator!
I also flashed mine with micropython. To get it back to the factory program that came installed, I connected it to the Arduino IDE, selected Tools > Board: M5Stack-Core-ESP32. Next I opened: File > Examples > M5Stack > Basics > FactoryTest. Upload that to the m5stack and you should be back to the factory program.
If you don't have the M5Stack custom libraries, you can install it from Sketch > Include Library > Manage Libraries... Type m5stack in the filter box, select the result, and install the latest version.
@pkourany Hi, You don't need to enable the PSRAM to run standard sketches in the Arduino IDE.
The Arduino IDE does not act on a low enough level for it to write directly to the PSRAM... you have to use something else like the ESP Flash Download Tool, which is used for example when you load Micro Python onto the M5Stack. Or the ESP-IDF compiler / flashing program....