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:
-
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
-
@calin Do you know if this code will work "M5Camera" or is it only for the "ESP32Cam"? I'm getting these names from this doc : https://github.com/m5stack/M5-Schematic/blob/master/Units/m5camera/hardware_diff_with_ESP32CAM_M5Camera.md
Edit: Nevermind! It is working with the "M5Camera". I just had to change D0_GPIO_NUM from 17 to 32. It looks like the pins in that link are all messed up...
For some reason the images I'm getting have a ton of noise. Not sure if it's my camera or what...
-
@mrjellofingers, @Calin Just for comparison, here's an image taken with an ArduCam mini, which also uses an OV2640:
The ArduCam has a lens, but it doesn't seem like that would make a difference as far as the noise I'm getting using the M5Camera...
This isn't specific to your project, Calin, the noise was showing up with the original firmware and program that the M5Camera came with.
Anyone have any ideas on how to improve the image quality?
-
@mrjellofingers
Hey, have a try with this code
https://github.com/m5stack/m5stack-cam-psramBe carefull that We have two version M5Cameras(one is A model, another is B).
-
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. -
@Calin @m5-docs Thanks all, I guess I just got a bad camera.
I tried using a different camera and the image quality is fine using this example: https://github.com/espressif/esp-who/tree/master/examples/single_chip/camera_web_server.
I have a "model A" camera and I wasn't able to get the code at https://github.com/m5stack/m5stack-cam-psram to work using the ModeA branch and setting the flag #define M5_CAM_KIND 1.
-
@mrjellofingers Is your M5Camera (A Model) not working properly?
-
@mrjellofingers said in M5Stack Camera Streaming:
I have a "model A" camera and I wasn't able to get the code at https://github.com/m5stack/m5stack-cam-psram to work using the ModeA branch and setting the flag #define M5_CAM_KIND 1.
Can you post a picture of you camera?