If you are using a Grove ToF from Seeed there are pads to add a two pin header for the Xshutdown input and Interrupt output pins. You can use another GPIO to disable the first ToF while you program the second one to a different address. You do have to reprogram it every time you power up. Probably just easier to get the PaHUB.
Best posts made by ralphjy
-
RE: How to connect 2 ToF Sensors to a M5Stack Fire
-
UnitV2 Webinar MQTT demo notebook
I watched the UnitV2 Webinar on Hackster and would like to get a copy of the UnitV2-mqtt-demo.ipynb Jupyter notebook that was used. Is that available?
Latest posts made by ralphjy
-
RE: M5CoreS3 Camera Pinout for use with ESP32 CameraWebServer example
Hi Felix,
I discovered that the problem with the stream not starting is related to poor WiFi performance. It works when I put the M5CoreS3 near my WiFi access point.
From the comments in your program source, I guess you don't expect most of the features other than streaming to work.
I had hoped that resize and face detect might work. V-Flip, H-Mirror and Save seem to work.
Thanks, it's a place to start.
Ralph
-
RE: M5CoreS3 Camera Pinout for use with ESP32 CameraWebServer example
Hi @felmue,
Both of those partition files allowed me to compile and upload, but both have a different runtime partition error. I can connect to the webserver, but there isn't any stream. Not sure if that is caused by the partition errors.
With the original partitions,csv:
12:02:12.823 -> E (591) esp_core_dump_flash: No core dump partition found!
12:02:14.972 -> hello
12:02:15.235 -> Camera init ok.
12:02:15.268 -> Camera sensor found.
12:02:15.268 -> Camera PID: 0x9b GC0308_PID: 0x9b.
12:02:15.302 -> cam_hal: EV-VSYNC-OVF
12:02:15.807 -> .....................................
12:02:33.807 -> WiFi connected
12:02:33.847 -> Camera Ready! Use 'http://10.0.0.139' to connectWith the 8MB APP partitions.csv:
11:35:14.013 -> hello
11:35:14.013 -> Camera init ok.
11:35:14.013 -> Camera sensor found.
11:35:14.013 -> Camera PID: 0x9b GC0308_PID: 0x9b.
11:35:14.013 -> cam_hal: EV-VSYNC-OVF
11:35:14.013 -> ......................................................
11:35:36.199 -> WiFi connected
11:35:36.199 -> [0;31mE (30217) MFN: Partition Not found[0m
11:35:36.199 -> [0;31mE (30217) MFN: Please Set the Partition[0m
11:35:36.199 -> Camera Ready! Use 'http://10.0.0.139' to connectBut in either case there is no stream or image.
If it is working for you, I must just have some issue with my setup. I'll admit that never tried to set up partitions before. I don't even see the M5CoreS3 n the boards.txt file.
-
RE: M5CoreS3 Camera Pinout for use with ESP32 CameraWebServer example
Hi Felix,
Thanks - I just tried it and it ran out of storage space after compiling.
"Sketch uses 3259241 bytes (103%) of program storage space. Maximum is 3145728 bytes.
Global variables use 74760 bytes (22%) of dynamic memory, leaving 252920 bytes for local variables. Maximum is 327680 bytes."I've been using the Partition Scheme: "16M Flash (3MB APP/9.9MB FATFS)"
Are you using a Custom Scheme?
Ralph
-
M5CoreS3 Camera Pinout for use with ESP32 CameraWebServer example
Has anyone gotten the GC308 camera on the M5CoreS3 working with the ESP32 CameraWebServer example? If so, what configuration did you use? I'm compiling with the Arduino IDE 2.3.2 and tried using the pinout from the M5CoreS3 library Basic->Camera example that didn't work.
-
M5CoreS3 rebooting issue with PSRAM
I am using the Arduino IDE with the M5CoreS3 library and am having a reboot issue due to a PSRAM error when I upload any of the Basic examples. I have configured the boot setup per the documentation.
Arduino IDE 2.3.2
M5CoreS3 1.0.0
M5Unified 0.1.16Error message:
14:57:54.043 -> Rebooting... 14:57:54.043 -> ESP-ROM:esp32s3-20210327 14:57:54.043 -> Build:Mar 27 2021 14:57:54.043 -> rst:0xc (RTC_SW_CPU_RST),boot:0x2b (SPI_FAST_FLASH_BOOT) 14:57:54.043 -> Saved PC:0x40377b11 14:57:54.080 -> SPIWP:0xee 14:57:54.080 -> mode:DIO, clock div:1 14:57:54.080 -> load:0x3fce3818,len:0x508 14:57:54.080 -> load:0x403c9700,len:0x4 14:57:54.080 -> load:0x403c9704,len:0xad0 14:57:54.080 -> load:0x403cc700,len:0x29e4 14:57:54.080 -> entry 0x403c9880 14:57:55.084 -> E (1902) mmap: esp_mmu_unmap(595): munmap target pointer is outside external memory regions 14:57:55.326 -> 14:57:55.326 -> assert failed: spi_flash_munmap flash_mmap.c:241 (0 && "invalid handle, or handle already unmapped") 14:57:55.326 -> 14:57:55.326 -> 14:57:55.326 -> Backtrace: 0x403774fe:0x3fcf3cd0 0x4037c4ad:0x3fcf3cf0 0x4038297d:0x3fcf3d10 0x42018df7:0x3fcf3e40 0x4201892d:0x3fcf3e60 0x42018a31:0x3fcf3e80 0x42018ccb:0x3fcf3eb0 0x4200f0cc:0x3fcf3f10 0x42010521:0x3fcf3f40 0x420482a1:0x3fcf3f70 0x4037f092:0x3fcf3fb0 14:57:55.326 -> 14:57:55.326 -> 14:57:55.326 -> 14:57:55.326 -> 14:57:55.326 -> ELF file SHA256: f8a0ae31e3181488
Can someone help me debug this?
Thanks.
-
UnitV2 Stream Camera Video
Has anyone used a UnitV2 to stream the camera video? It appears that the ffmpeg in /usr/bin has been compiled with most of the video options disabled (e.g. libopencv, libx264, libx265,etc.).
I noticed that there is very little free memory available on the device ~65MB. If I use Jupyter Notebooks, each notebook uses ~20MB. I get memory errors even when using only a single notebook.
Has anyone done much other than the OOB examples?
-
UnitV2 No Swap Space
I am getting memory errors when trying to view video in Jupyter notebooks.
Is there a reason that there is no Swap space set up? The SD card that came with the unit is empty.
With so little physical memory it seems that a Swap space is required.
-
UnitV2 Webinar MQTT demo notebook
I watched the UnitV2 Webinar on Hackster and would like to get a copy of the UnitV2-mqtt-demo.ipynb Jupyter notebook that was used. Is that available?
-
Unit V2 Camera Resolution
I am trying to use the camera at full resolution (1080p). The default resolution appears to be 640x480@15fps. I've tried using OpenCV in Jupyter Notebooks but I can't set the resolution higher than 640x480. I was able to set 320x240@30fps, but also could not set a lower resolution (160x120).
Is there a document that describes how to configure the camera?
-
RE: M5StickCPlus doesn't program correctly
Thanks Felix,
That helped. I guess from the documentation I thought that just adding the M5StickCPlus library would work. I have verified that some other programs do work (Display, TFT_Clock, PowerWake) with adjustments for the larger display size.
The AXP192 and I2C_Tester programs work with your changes although I left Wire.begin() at default because I was checking the bus on the Grove port and that now is working.
I did notice that on the Plus there is a small current draw on the battery (-0.5 mA) when I am running on USB power but it is 0mA on the StickC.
Ralph