Thanks so much, Felix !
Posts made by F3l1x
-
[Solved] IMU - MPU9250
Hi
I've tried to use the accelerometer in arduino IDE with a Fire stack
I did try the examples at MakerFactory and it works for the AK8963 chip (IMU.initAK8963(IMU.magCalibration);
Unfortunately IMU.calibrateMPU9250(IMU.gyroBias, IMU.accelBias); does not work, nor does readGyroData or readAccelData. It does not print anything, screen flashes and Fire keeps rebooting for ever, so I can't use accelerometer/gyro
The hardware is ok as I could use it with UIFlow
I tried the WHO_I_AM thing and it says MPU9250: I am 19 / I should be 71
Could it be the problem ?
When I comment out IMU.calibrateMPU9250(IMU.gyroBias, IMU.accelBias), no more reboot - but of course it only shows 0s, so it's not very useful -
RE: [Solved] Displaying images, various formats
Well...using only 320x240 input and "ImageToCode" converter it seems to be OK not always but most of the time
Thanks for your help -
RE: [Solved] Displaying images, various formats
Believe me I did search...the forum and many other places...At the moment I'm trying to "reverse engineer" the only c filethat is working
-
RE: [Solved] Displaying images, various formats
@robalstona
Thanx for your help
I added the c file in the arduino IDE, that's how it's done in the example Factory Test
It DOES work with the exemple (M5 logo) where the c file is given, that's why I suppose my problem is about converting jpg/bmp -> c file
There are a lot of converters out there, none gave me a c file that could be correctly displayed with drawBitmap -
RE: [Solved] Displaying images, various formats
Thanx for your help
Unfortunately it does not work for me
instead of
Does not even work with pushImage
Are they parameters/arguments I should use? -
[Solved] Displaying images, various formats
Hi
I would like to display images on the Fire's screen
I've read docs about drawBitmap function, I've read the Lesson, I've read a seemingly complete tuto, but I still don't get it working (image as a c file from flash memory).
What should the c file look like ? How do I call it in code?
Code:
#include <M5Stack.h>
#define imgName codeImage
#define PicArray extern unsigned char
PicArray imgName[];void setup() {
M5.begin();
M5.Lcd.drawBitmap(0,0,320, 240, (uint16_t *)imgName);
}
void loop() {
}
"codeImage.c" file:
const unsigned char codeImage [] = {(
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, (...)0x00, 0x00, 0x00, 0x1f)};I used the UTFT library tool as recommended (libraries\UTFT\Tools\ImageConverter565.exe)
It does work with M5.Lcd.pushImage instead of M5.Lcd.drawBitmap if I use imageToCode
So I guess the key here is the c file...is there a detailed doc on this topic ? -
RE: [SOLVED] Arduino IDE on Windows won't flash
Thanx a lot, it works!
What if I use windows 10 and WSL (linux inside windows) ? Will I avoid driver problems ?
-
[SOLVED] Arduino IDE on Windows won't flash
Hi
I had problems using arduino IDE with a Fire board on a windows 7 laptop (got time out error)
I tried many solutions, including updating the COM driver, using command line esptool, or installing OTA on arduino IDE
Every solution does work ONCE, the first time, and then won't work anymore
It is the same on a windows 10 desktop, but I found out that everything was ok on my old Debian laptop
So my question is : is arduino IDE really usable on windows machines ? Is there a "hack" I should know? -
RE: "Timed out waiting for packet header"
Getting worse...M5burner won't even erase now
Erase now
esptool.py v2.5.0
Serial port COM26
Connecting........_
Detecting chip type...It stays there for ever
Pliz someone help me ?! -
RE: "Timed out waiting for packet header"
Oups...not solved at all
It did it again and again. Won't flash from arduino IDEArduino : 1.8.1 (Windows 7), Carte : "M5Stack-FIRE, Enabled, Default (2 x 6.5 MB app, 3.6 MB SPIFFS), 115200, Debug"
[ ]
C:\Users\xxx\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\2.6.1/esptool.exe --chip esp32 --port COM26 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 C:\Users\xxx\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4/tools/partitions/boot_app0.bin 0x1000 C:\Users\xxx\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4/tools/sdk/bin/bootloader_dio_80m.bin 0x10000 C:\Users\xxx\AppData\Local\Temp\arduino_build_345911/FireScreen.ino.bin 0x8000 C:\Users\xxx\AppData\Local\Temp\arduino_build_345911/FireScreen.ino.partitions.bin
esptool.py v2.6
Serial port COM26
Connecting........___.....
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: a4:cf:12:44:6d:d0
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Warning: Could not auto-detect Flash size (FlashID=0xffffff, SizeID=0xff), defaulting to 4MB
Compressed 8192 bytes to 47...A fatal error occurred: Timed out waiting for packet content
I did erase and reflash firmware...fail again
I'm getting mad at this Fire thing
So promising and so disappointing! -
RE: "Timed out waiting for packet header"
Thanx...everything back to normal
Is there a way to mark topic as [solved] ? -
RE: "Timed out waiting for packet header"
Sooooo...
The arduino code did upload - I don't know why!
But the program did not show anything so I tried to edit it, and now it won't upload.
So I thought it was something about the USB mode. Unfortunately, I don't have the setup option anymore
So I tried burning the 1.6.2 firmware again...M5Burner fails with this message:
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse
MAC: a4:cf:12:44:6d:d0
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Warning: Could not auto-detect Flash size (FlashID=0xffffff, SizeID=0xff), defaulting to 4MB
A fatal error occured: File C:\Users\zzz\Downloads\M5Burner\packages\fw\other\wifi.bin (length 100) at offset 6287360 will not fit in 4194304 bytes of flash. Use --flash-size argument, or change flashing address
Burned failedI feel so stupid...
-
"Timed out waiting for packet header"
Hi
Trying to follow an official M5 tuto, I want to upload the arduino code to the Fire board.
I get a time out error. Full message :
Arduino : 1.8.1 (Windows 7), Carte : "M5Stack-FIRE, Enabled, Default (2 x 6.5 MB app, 3.6 MB SPIFFS), 115200, None"
[...]
esptool.py v2.6
Serial port COM26
Connecting......................................____Une erreur est survenue lors du transfert du croquis
_A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
I tried many baudrates, with no luck
Some people say it is because we need to hold-down the “BOOT/FLASH” button while uploading ...is there a simple way to do it with the Fire board ? -
RE: Emoji with M5 Fire
Thanx
I used the old M5burner, as the new one is for Windows10. Apparently it is ok with windows 7 too -
RE: Emoji with M5 Fire
My M5burner does not have more than 1.5.2 for UIFlow-Fire firmware. Where can I find 1.6.2 ?
-
Emoji with M5 Fire
Hi
When I try to use emoji with UIFlow desktop and M5 Fire, it says "Error. No module named 'emoji' "
Details are
"File "<string>", line 3, in <module>
Import error: no module named 'square' "
I just updated the Fire to latest firmware so I don't understand what's wrong ?
(It does not work with UIFlow online either) -
UIFlox desktop on windows 7
Hi everybody
I would like to use M5Fire and UIFlow in a workshop. I am not sure if I'll have an internet connexion, so I would like to install UIFlow desktop and use USB instead of wifi.
The download is for windows 10...is there an previous version for windows 7? -
RE: M5 Fire "get battery level" block
I did erase, and M5Burner did never complain but it didn't solve the problem
I don't know why but as I tried again and again, it worked...pretty weird...