@teastain said in ESP32 Arduino vs M5Stack Arduino:
Кстати:
Какую версию Arduino IDE вы используете?
Does not matter. Same for 2.3.4.
@teastain said in ESP32 Arduino vs M5Stack Arduino:
Кстати:
Какую версию Arduino IDE вы используете?
Does not matter. Same for 2.3.4.
If you are going to define M5 family board in Board Manager, you'll have to choose between two separate variants:
ESP32 Arduino and M5Stack Arduino.
See the screenshots.
These variants are not the same but quite different.
And compilation results also different.
As I partially understand the first variant will works with mostly ESP32 libraries,
while the second one will use M5Stack oriented libraries.
Are there gurus who can describe in details these differences?
I noticed that theese libs are significatelly different and realised different functions. Which one should I use to get the most functional AXP192 control?
I guess, this is a possible solution for longer battery use.
Here is discharge curve with 0.8V correction.
Correction could not be done easily by substracting the error, because below Battery voltage 3.5V, measurement begins rapidly grow. Device stops work at 3.4V.
It is difficult to name this device as a successful design.
Measured values are approximatelly 0.8V greater when WiFi or BT are used.
@ajb2k3 I see no answer to my question in this site. Maybe you could?
@felmue I draw schematic above from my exemplar. Obviously it's too old.
IC is SOT-23-5 and its marking corresond with MP1541 datasheet.
The root of the evil is M5STACK's absolutely lackadaisical documentation for all the products.
Definitelly, M5SticC and M5SticC Plus have different schematics. DC-Boost in M5SticC Plus is sgm6603-5.
So, according to schematic switching off 5V is fundamentally impossible. IPSOUT via L1 and D3 allways present at output.
It's not a Schematic, it's a parody of a Schematic. Shame!
What is part # of DC-Boost IC for 5V out???
@felmue I tested it:
void AXP192::SetPeripherialsPower(uint8_t state) {
if (!state){
Write1Byte(0x10, Read8bit(0x10) & 0XFB);
Write1Byte(0x12, Read8bit(0x12) & 0XBF);
}
else if (state) {
Write1Byte(0x10, Read8bit(0x10) | 0X04);
Write1Byte(0x12, Read8bit(0x12) | 0X40);
}
EXT_BOOST_EN controlled correctly, DC-Boost stops generating, but bypassed input Vbatt to 5V output.
What an idiot designed this part of schematic?
I could not identify DC-Boost IC(Sot-23-5 marked IB3KB)/
@felmue It only switched 5V to Vbatt
I see the only way to reconnect EXT_BOOST_EN of the BOOST converter to VESP_3V3.
I tested it - does not work at all
Join the question
Obviously EXT_VDD is enabled via EXT_BOOST_EN pin of the AXP192, so it must be a way to control it.
I already wrote about poor documentation(
https://community.m5stack.com/topic/2482/ecg-module-code)
Now, I tested acquisition speed of the device.
Maximum data rate(DisplayECG() - OFF, delay(5) - OFF) is 66Hz.
And it could not be increased without changing onboard STM32 FW.
This uC acts as BLACK BOX. No description, no source code.
DisplayECG() - ON, delay(5) - OFF - 45Hz
Any serious ECG measurements started with data rate at least 250Hz.
Initially, I planned to use it with IR pulse sensor for Blood Pressure estimation. Obviously, with 15 mS accuracy it is impossible.
Make your own conclusions