The MKR Vidor 4000 Camera enabling example activates a compatible camera connected to the MIPI Camera Connector and routes the image in real time to the microHDMI connector. It is a very basic example that shows how simple may be the usage of the advanced features of the Arduino MKR Vidor 4000 board. FPGA requires clock from SAM D21 in order to work and this is initialized with
What you’ll need
- MKR Vidor 4000
- Micro HDMI connector cable
- Raspberry Pi v1.3 camera
- Arduino IDE
Check that you have the required board package and library:
Make sure you have the latest SAMD Beta core. If you don’t, open Tools > Board > Boards Manager, and install the latest Arduino SAMD Beta Boards package.
Open Tools > Library Manager and make sure the
VidorGraphicslibrary is installed and up to date.
Open File > Examples > VidorGraphics > VidorEnableCam and upload it.
In our example, we create the object vcam and then we simply enable I2C communication and initialize the camera with the
vcam.begin()function. Please note that this function returns a value and we use it to print out an error message if initialization fails.
When the video stream is active and it is routed to the HDMI port, you can stop the video opening the serial monitor and typing STOP. This activates the
If get an upload error, reset the board and try again.