Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

ArduCam Mini 2MP with Arduino MKR1000

Open pranjalranjan299 opened this issue 7 years ago • 10 comments

I would like to connect the ArduCam Mini 2MP with my Arduino MKR1000 for an IOT project. I would like to take pictures from the camera and save it to an SD card connected with the MKR1000 with an SD proto shield or a breakout board. Can you help me with the required pin connections and the code as well? I was unable to find much help online at other places so hoping you can help me here!

pranjalranjan299 avatar Sep 01 '18 05:09 pranjalranjan299

@pranjalranjan299 Please refer to this discussion https://github.com/ArduCAM/Arduino/issues/329

UCTRONICS avatar Sep 03 '18 00:09 UCTRONICS

@UCTRONICS That discussion is not fruitful to be honest, you just surrendered saying you've not added support yet. What am I supposed to do? I've bought an ArduCAM and I need to get it working with the MKR1000. Let me know what I can do.

pranjalranjan299 avatar Sep 03 '18 02:09 pranjalranjan299

@pranjalranjan299 I have helped you add support it Please replace the ArduCAM.h with the file I attached for you. ArduCAM.zip

UCTRONICS avatar Sep 03 '18 03:09 UCTRONICS

@UCTRONICS I have already added the block for the MKR1000 in the ArduCAM.h file. The problem I'm encountering is that the host app v2 crashes after taking a single picture from the camera. Is there any need to change some other code for the MKR?

pranjalranjan299 avatar Sep 03 '18 05:09 pranjalranjan299

@pranjalranjan299 Firstly, does your SPI and I2C interface work normally? Have you detected the camera? I think you should not change any other code. Please let me know more details You'd better attach some pictures and I will help you check.

UCTRONICS avatar Sep 03 '18 05:09 UCTRONICS

@UCTRONICS I'm able to get pictures on my SD card from the example code so I'm guessing my SPI and I2C interfaces work normally. I'm able to get a picture or two from the host app as well. But after some time it gets hanged and stops to respond. Have tried the same on another laptop as well which gave similar results. Whereas it's working smoothly with the Arduino Uno and I'm getting some really good frames per second rates on it. This is a bit weird since MKR is superior to Uno in terms of almost all parameters. Why is it getting buggy on the host V2 app then? image

pranjalranjan299 avatar Sep 03 '18 14:09 pranjalranjan299

@pranjalranjan299 Have you tried the low baud rate? You can try to set the baud rate to 115200 to try. I have not tested it on MKR1000 platform.

UCTRONICS avatar Sep 04 '18 02:09 UCTRONICS

@UCTRONICS yes, tried all baud rates, still stops to respond after a while unfortunately

pranjalranjan299 avatar Sep 04 '18 12:09 pranjalranjan299

@pranjalranjan299

OK, what's the system of your computer? It seems that has something to do with the PC system. We have tested the Host V2 many times and it works normally.

Another way, when it stops, can you still find the serial port of your MKR1000? You can check it in the device manager. If the serial port disappears, it may cause an exception

UCTRONICS avatar Sep 05 '18 00:09 UCTRONICS

Hi Any update with this anyone able to work Arduino MKR1000 and above boards with Arducam Mini 5MP Plus? PLease tell me then how?

nipuna-chamara avatar Mar 01 '20 21:03 nipuna-chamara