I'm trying to use CardKB with M5 Stick C through grove port. There is an example in the library (which looks like copy paste from M5Stack with only changed header name), but i couldn't make it work. One of the odd things is that messes with gpio5 which is connected to screen. Any suggestion on how to make CardKb work?
#define CARDKB_ADDR 0x5F
M5.Lcd.printf("IIC Address: 0x5F\n");
char c = Wire.read(); // re ceive a byte as characterif
if (c != 0)
@ajb2k3 said in Issue with Port C (UART) of M5Stack Fire (Finger unit OK but GPS No Good):
@liemph Try connecting the m5stack to a pc and opening a terminal connecting to the M5Stack.
the terminal may show more information.
I took the log file by using teraterm serial monitor program. I did not see any valuable information for debugging. This is the results:
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
mode:DIO, clock div:1
ho 0 tail 12 room 4
ho 0 tail 12 room 4
I (32) boot: ESP-IDF v3.3-beta1-696-gc4c54ce07 2nd stage bootloader
I (32) boot: compile time 19:36:27
I (32) boot: Enabling RNG early entropy source...
I (38) boot: SPI Speed : 80MHz
I (42) boot: SPI Mode : DIO
I (46) boot: SPI Flash Size : 16MB
I (50) boot: Partition Table:
I (54) boot: ## Label Usage Type ST Offset Length
I (61) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (69) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (76) boot: 2 factory factory app 00 00 00010000 001f0000
I (83) boot: 3 internalfs Unknown data 01 81 00200000 001ff000
I (91) boot: End of partition table
I (95) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0xe970c (956172) map
I (379) esp_image: segment 1: paddr=0x000f9734 vaddr=0x3ffbdb60 size=0x034dc ( 13532) load
I (383) esp_image: segment 2: paddr=0x000fcc18 vaddr=0x40080000 size=0x00400 ( 1024) load
I (386) esp_image: segment 3: paddr=0x000fd020 vaddr=0x40080400 size=0x02ff0 ( 12272) load
I (398) esp_image: segment 4: paddr=0x00100018 vaddr=0x400d0018 size=0xdbea8 (900776) map
I (662) esp_image: segment 5: paddr=0x001dbec8 vaddr=0x400833f0 size=0x12bf8 ( 76792) load
I (688) esp_image: segment 6: paddr=0x001eeac8 vaddr=0x400c0000 size=0x00064 ( 100) load
I (688) esp_image: segment 7: paddr=0x001eeb34 vaddr=0x50000000 size=0x00808 ( 2056) load
I (708) boot: Loaded app from partition at offset 0x10000
I (709) boot: Disabling RNG early entropy source...
I (709) cpu_start: Pro cpu up.
I (713) cpu_start: Application information:
I (717) cpu_start: Compile time: Mar 13 2020 19:36:49
I (724) cpu_start: ELF file SHA256: 0000000000000000...
I (730) cpu_start: ESP-IDF: v3.3-beta1-696-gc4c54ce07
I (736) cpu_start: Starting app cpu, entry point is 0x400836e4
I (0) cpu_start: App cpu up.
I (746) heap_init: Initializing. RAM available for dynamic allocation:
I (753) heap_init: At 3FFAE6E0 len 0000F480 (61 KiB): DRAM
I (759) heap_init: At 3FFCB2C8 len 00014D38 (83 KiB): DRAM
I (766) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (772) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (778) heap_init: At 40095FE8 len 0000A018 (40 KiB): IRAM
I (785) cpu_start: Pro cpu start user code
I (131) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
Internal FS (FatFS): Mounted on partition 'internalfs' [size: 2093056; Flash address: 0x200000]
Filesystem size: 2031616 B
Used: 1605632 B
Free: 425984 B
I (359) [TFTSPI]: attached display device, speed=8000000
I (359) [TFTSPI]: bus uses native pins: false
W (534) sdspi_host: spi bus changed (1 -> 2)
E (577) sdmmc_sd: sdmmc_init_spi_crc: sdmmc_send_cmd_crc_on_off returned 0x106
[ M5 ] init sd card Fail
[ M5 ] node id:<deleted>, api key:<deleted>
I (2018) uart: ALREADY NULL
Please note that I deleted the node id and api key.
Thank you very much for your answers help me understand this hardware.
Yes, that's my question. Use M5stack regulator to power the M5Stack and not from charger .
In this case and, it is a last question about this, there will be no problems with the USB input if it is powered by an external battery. In some other case I have had problems connecting the USB, because both 5v sometimes are not exactly and that small difference produced power noises by connecting the USB, and sometimes reestorting the unit.
Hi @heybin !
What do you want to show us with the picture: flickering due to problems with contacts?
Do you know what the meaning is of:
flashing? ( = 1s on > 1s off > 1s on > and so on: charging?)
What I noticed so far:
a) USB charging cable connected to M5GO CHG Base and M5GO CHG Base attached to M5GO Base: LED is flashing and obviously charging
b) M5GO disconnected from M5GO Base: LED = ON for 30 seconds , than OFF, but FIRE is still on and operational (Power from internal Lipo Battery?)
c) M5GO CHG Base attached to M5GO Base, but no power on USB-Cable: same behaviour as item b) above. (Power from internal Lipo battery AND/OR CHG Base Battery?)
For a) and b) so far, I didn't test, for how long the FIRE stays ON.
If it's not connecting to the device, what errors do you see? Paste your command line output here and maybe I can help further.
One other custom I did for ampy... I created the file ~/.ampy with these contents:
# Example .ampy file
# Please fill in your own port, baud rate, and delay
# Fix for macOS users' "Could not enter raw repl"; try 2.0 and lower from there:
If you create that file, you will not have to pass the port and baud rate options when running the ampy command. This is the standard way to run ampy when you don't have the .ampy file created.
world101$ ampy -p /dev/tty.SLAB_USBtoUART -b 115200 ls
Also, I was mistaken on the the v1.2.3 firmware with the beeps disabled by default. I just flashed one of my cores with the M5Burner and the beeps are there. I must have been running a custom firmware before.
How about this example code?
@ajb2k3 Thanks a lot !
@cepics "A custom ESP-WROOM-32 build without any flash chip added, so the existing GPIO6, GPIO7, GPIO8, GPIO9, GPIO10 and GPIO11 pins can be used to allow us to add a GD25Q127C (or similar) on our external circuit."
@kat @Rop you need to create and M5ez project, create a text place holder and set the code to replace the text with the values. Hopefully @Rop will pick up the notification and help you out. My knowledge is more towards Uiflow
Currently there is no support for png images in the micropython port that form the firmware of the m5Stack range.
BMP is its raw uncompressed state is a simple file to translate along with base level jpg (not JPEG!)
Until such time that a codec exist for micropython, we are all stuck with converting graphics into base level formats.
@rob-biernat which M5Stack or Stick are you using?
The M5Stacks and Sticks have an I2C grove port (port A) but this is also a digital I/O port in that it can read or write 0 or 1 values (on or off) I am currently triggering a relay unit from the port.
The M5Go base has has 2 additional port which are multi I/O (port b) and UART (port C) Unlike Arduinos, the esp32 which powers the M5Stack has no set pin functions and all pins can be used for a range of functions.
When using Port A Yellow is SCL (pin 22) and white is SDA (pin 21) and need to be defined.
I have started to document the different functions of the grove connector and you can find them on pg 19 and 20 of my WIP book here https://github.com/Ajb2k3/UIFlowHandbook/blob/master/UIHB1404192.pdf
@brij300 So sorry about that. We haven't tried to connect to AIOT website yet? But some guys make a project about opendimes. You can contact them. Thanks a lot.