m5stack / M5-ProductExampleCodes

All example codes of products supplied by M5Stack have been collected in this reposity.
MIT License
339 stars 484 forks source link

CAM2CORE not working? #41

Open TheAnton205 opened 3 years ago

TheAnton205 commented 3 years ago

Hello, I am using unit cam with a Core 2. I want to communicate through UART, just like the video on that page. I followed the connections given, and uploaded the arduino sketch. After doing so, the blue LED blinks for three times then my previous firmware completely freezes and nothing else works. I have attempted to to erase the previous firmware, then uploading the arduino sketch. Nothing.

I have tried to use the m5flow programming blocks, yet there is no support for the unit? I attempt to click on it, yet it is grayed out. See this image.

I don't understand, am I doing something wrong?

felmue commented 3 years ago

Hello @TheAnton205

from what I can tell the unit cam Arduino example and UIFlow integration only is available for M5Stack (Base, Fire, etc.) but not yet for M5Core2. (BTW: That is the reason unit cam is grayed out in UIFlow when M5Core2 is selected.)

At this point I see three options:

Thanks Felix

veryalien commented 2 years ago

I've just realised that this suggestion is relatively simple:

try to adapt the M5Stack Arduino example for M5Core2.

You can simply replace the first line of the m5stack arduino sketch cam2core: #include with: #include

https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/UNIT_CAM/CAM2CORE

Compile and upload the sketch to a core2 and connect a unitcam to Port B (26, 36) and it should display the camera video stream on the screen.