Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.73 KB

How-to-show-video-on-HDMI-with-MKR-4000-Vidor.md

File metadata and controls

37 lines (23 loc) · 1.73 KB
title id
How to show video on HDMI with MKR 4000 Vidor
360016912700

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 FPGA.begin().


What you’ll need

  • Hardware:
    • MKR Vidor 4000
    • Micro HDMI connector cable
    • Raspberry Pi v1.3 camera
  • Software
    • Arduino IDE

Steps

  1. 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 VidorGraphics library is installed and up to date.

  2. Upload the VideoEnableCam sketch.

    Open File > Examples > VidorGraphics > VidorEnableCam and upload it.

    IDE with Examples > VidorGraphics > VidorEnableCam selected in File menu

  3. 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.

  4. 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 vcam.end(); function.

If get an upload error, reset the board and try again.