meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
3.35k stars 816 forks source link

[Board]: M5Stack CoreS3 + LoRa868_V1.1 Module #4768

Open lboue opened 1 week ago

lboue commented 1 week ago

SOC

ESP32

Lora IC

SX1276

Product Link

https://shop.m5stack.com/products/lora-module-868mhz-v1-1

Description

Setup

Features

Schematic image

Coopersmith-24601 commented 1 week ago

It's already being worked on. I personally can't hardly wait to see it. It's going to be an incredibly interesting opportunity to add a bajillion different types of sensors.

lboue commented 1 week ago

Do you know who's working on it? I was thinking of starting too.

Coopersmith-24601 commented 1 week ago

Yes, NM.Patriot over on the Discord.

https://discord.com/channels/867578229534359593/931765413350613052/1285356293485494375

lboue commented 1 week ago

Thanks

lboue commented 5 days ago

M5Stack CoreS3 has AXP2101 power management chip like tbeam-s3-core variant. I managed to start up the CoreS3 with power management.

IMG_1821_

Boot log

//\ E S H T /\ S T / C

INFO  | ??:??:?? 4 Booted, wake cause 0 (boot count 1), reset_reason=reset
DEBUG | ??:??:?? 4 Filesystem files (16384/1048576 Bytes):
DEBUG | ??:??:?? 4  /prefs/channels.proto (57 Bytes)
DEBUG | ??:??:?? 4  /prefs/config.proto (171 Bytes)
DEBUG | ??:??:?? 4  /prefs/db.proto (373 Bytes)
DEBUG | ??:??:?? 4  /prefs/module.proto (96 Bytes)
[  4437][I][esp32-hal-i2c.c:75] i2cInit(): Initialising I2C Master: sda=12 scl=11 freq=100000
[  4446][I][XPowersCommon.tpp:248] begin(): SDA:12 SCL:11
[  4452][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
INFO  | ??:??:?? 4 AXP2101 PMU init succeeded, using AXP2101 PMU
[  4460][D][XPowersAXP2101.tpp:2791] setInterruptImpl(): DISABLE - HEX:0xffffffff BIN:
DEBUG | ??:??:?? 4 =======================================================================
DEBUG | ??:??:?? 4 DC1  : +   Voltage:3300 mV
DEBUG | ??:??:?? 4 DC2  : -   Voltage:1200 mV
DEBUG | ??:??:?? 4 DC3  : +   Voltage:3300 mV
DEBUG | ??:??:?? 4 DC4  : -   Voltage:1800 mV
DEBUG | ??:??:?? 4 ALDO1: +   Voltage:1800 mV
DEBUG | ??:??:?? 4 ALDO2: +   Voltage:3300 mV
DEBUG | ??:??:?? 4 ALDO3: -   Voltage:3300 mV
DEBUG | ??:??:?? 4 ALDO4: +   Voltage:3300 mV
DEBUG | ??:??:?? 4 BLDO1: -   Voltage:2800 mV
DEBUG | ??:??:?? 4 BLDO2: -   Voltage:1500 mV
DEBUG | ??:??:?? 4 =======================================================================
DEBUG | ??:??:?? 4 Battery: usbPower=0, isCharging=1, batMv=3788, batPct=26
INFO  | ??:??:?? 4 Scanning for i2c devices...
[  4509][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
DEBUG | ??:??:?? 4 Scanning for I2C devices on port 1
DEBUG | ??:??:?? 4 I2C device found at address 0x34
INFO  | ??:??:?? 4 axp192/axp2101 PMU found
DEBUG | ??:??:?? 4 I2C device found at address 0x40
DEBUG | ??:??:?? 4 Wire.available() = 2
DEBUG | ??:??:?? 4 Register MFG_UID: 0xffff
INFO  | ??:??:?? 4 INA219 sensor found at address 0x40
DEBUG | ??:??:?? 4 I2C device found at address 0x51
INFO  | ??:??:?? 4 Device found at address 0x51 was not able to be enumerated
DEBUG | ??:??:?? 4 I2C device found at address 0x58
INFO  | ??:??:?? 4 Device found at address 0x58 was not able to be enumerated
DEBUG | ??:??:?? 4 I2C device found at address 0x69
INFO  | ??:??:?? 4 BMX160 accelerometer found
INFO  | ??:??:?? 4 3 I2C devices found
DEBUG | ??:??:?? 4 acc_info = 45
DEBUG | ??:??:?? 4 found i2c sensor meshtastic_TelemetrySensorType_INA219
INFO  | ??:??:?? 4 S:B:255,2.5.1.e6eb5e97
INFO  | ??:??:?? 4 Build timestamp: 1726997239
DEBUG | ??:??:?? 4 Total heap: 287800
DEBUG | ??:??:?? 4 Free heap: 253068
DEBUG | ??:??:?? 4 Total PSRAM: 8386295
DEBUG | ??:??:?? 4 Free PSRAM: 8386295
DEBUG | ??:??:?? 4 NVS: UsedEntries 97, FreeEntries 533, AllEntries 630, NameSpaces 4
DEBUG | ??:??:?? 4 Setup Preferences in Flash Storage
DEBUG | ??:??:?? 4 Number of Device Reboots: 6
lboue commented 4 days ago

AXP2101 usage

M5Stack
CoreS3
ALDO1 VDD 1v8 ALDO1
ALDO2 VDDA 3v3 ALDO2
ALDO3 CAM 3v3 ALDO3
ALDO4 TF 3v3 ALDO4
BLDO1 AVDD BLDO1
BLDO2 DVDD BLDO2
DLDO1/DC1 LCD BL DLDO1/DC1
DLDO2/DC2 --- DLDO2/DC2
BACKUP RTC BAT BACKUP