That noise is definitely related to your camera hardware or camera settings.
As you can see on the image from my post, there is no noise on the image with the camera i am using.
Posts made by Calin
-
RE: M5Stack Camera Streaming
-
RE: M5Stack Camera Streaming
Added Loboris TFT DMA library.
This library improve the framerate on M5Stack TFT. Is 30ms faster for each frame.The library is activated by macro -DUSE_DMA from platformio.ini
-
M5Stack Camera Streaming
Here is a repository with 2 projects on it: https://github.com/botofancalin/ESP32_Camera_System.git
- A camera software for M5Stack camera
- A M5Stack software that can recieve the video stream from M5Stack camera and display it on the screen.
The projects can be compiled using PlatformIO
The camera stream can be accessed from browser too and can set various settings on it, while running:
-
RE: Mod to programmatically disable speaker whine/hiss.
You can mute the speaker very easy from code.
Just call
dacWrite (25,0);
-
RE: Losing time?
@rop 在 Losing time? 中说:
I am writing an Arduino Time Library for ESP32. In the process of testing, I notice that the millis() counter on the M5Stack is fairly precise except it stops for 300 and sometimes 1300 ms all of a sudden, but only every once in a while. (maybe every 40 minutes so, but it seems to vary with what's running on it.) Does anyone (maybe at M5Stack?) have any idea what could be causing this?
Random odd behavior on various functions.
This is one of the reasons why i moved from arduino framework to ESP-IDF for my esp32 based projects... -
RE: M5ez, a complete interface builder system for the M5Stack as an Arduino library. Extremely easy to use.
@rop 在 M5ez, a complete interface builder system for the M5Stack as an Arduino library. Extremely easy to use. 中说:
@bobolink I haven't tried to convert any images myself, I have just taken the ones from Calin's code. I have been busy getting the new version out. I'll have a look at possibly creating a tool (or even an online tool) for this.
Open the file on HexWorkshop -> CTRL+A -> Edit -> Copy As -> C Source
Open the header file -> Paste :) -
RE: Understanding what's in a binary / reducing memory footprint
- The images stored as array, take considerable space on the project.
- I recommend you to switch to PlatformIO for development.
That IDE will give you a better look over the code objects and tier size. Just check the ".pioenvs" folder on the project.
You can easy convert the code from PlatformIO for Arduino "IDE" .ino if you want to. - avoid using "main" keyword on your code. Beginners may misunderstand that coding practice.
- avoid using preprocesor for class instances. Use "M5.Lcd.xxxx" instead "m5.lcd.xxxx".
In some cases, it can save some ram this way (i know... is weird).
The list of components running on demo project is long... and you don't have control on all of them.
Most of them are from the framework. Arduino on its own is a memory hog:The ez on itself don't use that much memory.
Here are the ez members that always reside in ram:Beside those, there are M5 members, tft_eSPI members, Wifi members (that take a lot of space) and so on...
Those are the components with the most memory usage.Here is a dependency graph for the demo project:
-
RE: M5Go versus M5Stack
@rop 在 M5Go versus M5Stack 中说:
Question: do the 4MB of RAM eat noticeably more power?
No.
Is barely noticeable... -
RE: Understanding what's in a binary / reducing memory footprint
I can use a debugger on your code to see what's using the memory...
You can't use a jtag on M5Stack but you can make a setup similar to M5Stack and you can debug the code on that one. -
RE: M5ez, a complete interface builder system for the M5Stack as an Arduino library. Extremely easy to use.
You can use nvs wrapper "preferences" for storing values that must survive reboot and even flashing: https://github.com/espressif/arduino-esp32/tree/master/libraries/Preferences
Also Arduino-esp32 provide an integrated NTP library: https://github.com/espressif/arduino-esp32/tree/master/libraries/ESP32/examples/Time -
RE: M5 stack board with normal code
What exactly do you call "normal code"?
Without a code sample, this community won't be able to help you...I had no problem running any ESP32 code on M5Stack, after i made the proper modifications related to GPIO assignment.
-
RE: M5Stack MultiApp Advanced Firmware
@kabron 在 M5Stack MultiApp Advanced Firmware 中说:
@calin 在 M5Stack MultiApp Advanced Firmware 中说:
Please update the Espressif 32 platform to latest version (v1.1.1 at this moment)
That should solve the problem.I have 1.1.2 installed and do not know how to degrade
P.S.
degrade with
platform = espressif32@1.1.1
and now it worksI just tested with espressif32 V1.1.2 and work's just fine.
Please download the latest repository commit and compile.
it should work just fine. -
RE: M5Stack MultiApp Advanced Firmware
@kabron 在 M5Stack MultiApp Advanced Firmware 中说:
New version compilation results:
M5StackMod initializing...[E][sd_diskio.cpp:739] sdcard_mount(): f_mount failed 0x(3)
E (705) SPIFFS: mount failed, -10025
[E][SPIFFS.cpp:47] begin(): Mounting SPIFFS failed! Error: -1
OK
[E][Preferences.cpp:330] getUShort(): nvs_get_u16 fail: light NOT_FOUND
and nothing more...any ideas?
Please update the Espressif 32 platform to latest version (v1.1.1 at this moment)
That should solve the problem. -
RE: M5Stack MultiApp Advanced Firmware
@picpic020960 在 M5Stack MultiApp Advanced Firmware 中说:
Hi Calin
when m5stack not connected i see ' <version....py>' at end of build report.
(from memory , now at work , not at home)
when m5stack connected i see nothing at end of build report.
i have com1 and com4. how to choose ?
thanks for help
Regards
You don't have to chose anything.
No need to select the upload port.
PlatformIO will detect the M5Stack port automatically, once is connected to PC USB. -
RE: M5Stack MultiApp Advanced Firmware
@picpic020960 在 M5Stack MultiApp Advanced Firmware 中说:
Calin
first compil :
src\Apps\WiFiWps\WpsConnect.cpp:73:16: error: no match for 'operator=' (operand types are 'esp_wps_config_t' and '<brace-enclosed initializer list>')some mistake ?
No. There is no mistake.
PlatformIO updated the Arduino-ESP32 framework to new version.
I updated the MultiApp firmware to work with this new version.
If you use git, just pull the latest commit from github and recompile.
If not, download the repository again then compile.edit :
commented ==> Build OK
but how to load the firmware in the m5stack ?Please READ the repository instructions !
other question : how to apply the patch ?
The old patch is no longer needed... because Espressif fixed the GPIO39 bug on the latest arduino-esp32 framework.
-
RE: M5Stack MultiApp Advanced Firmware
@picpic020960 在 M5Stack MultiApp Advanced Firmware 中说:
Hi Calin , OK
Download (and unzip) this repository ==> OK
Download and Install Visual Studio Code https://code.visualstudio.com/ ==>OK
Install the PlatformIO Extension ==> OK
Install ESP32 Framework on PlatformIO ==> How TO ? no link and a lot of ESP32 frameworkthanks for help
Regards
Go to Platforms
Type in ESP32 on the search bar
Click on Espressif 32
Click INSTALL
Wait to finish (this may take 1 - 5 minutes, depending on your internet connection speed)
Done.To open MultiApp Advanced project:
right click on the project folder
Select "Open in VsCode"
VsCode will open and the project will be loaded in PlatformIOYou don't need to install any library to compile the MultiApp-Advanced. All necessary resources are included into project.
-
RE: M5Stack MultiApp Advanced Firmware
@picpic020960 在 M5Stack MultiApp Advanced Firmware 中说:
Hi Calin
tested last night ! sync , download , finish , reset and ... black screen
maybe my error : use the old [not Advanced] FLASH_DOWNLOAD_TOOLS_V3.6.4.zip
other way : 'old MultiApp' is OK without SD card and no jpg , maybe 'Advanced' no ?
more : windows 10 (on thomson tablet)
my fear :have bad clone !
I test again tonight
Regards
As i told you... the best solution is to COMPILE the project on PlatformIO.
The M5Stack came with default factory partitions table.
That partition table is incompatible with MultiApp-Advanced firmware.
Old MultiApp firmware use standard partitions table and that's why that precompiled binary work.
The precompiled firmware only write the application data. So precom piled binary will be useful only if you try to update the multiapp-advanced firmware to a newer version.
Will NOT work if you try to write the multiapp-advanced over a different application.On MultiApp-advanced i use a custom partition table that is written if you compile and upload the project from PlatformIO.
-
RE: M5Stack MultiApp Advanced Firmware
@picpic020960 在 M5Stack MultiApp Advanced Firmware 中说:
no is straight forward with corporate proxy !
Well... yeah... you are right on this one...
[pre-compiled firmware is best for MultiApp popularity]
thanks
Ok... i will bring it back later today...