Skip to main content

Getting Started

Choose How to Use the Board​

  • Connect via computer: Install Arduino App Lab on a Windows, macOS, or Linux computer, connect the board with a USB-C data cable, and power the board separately.
  • Use the onboard desktop: Use the board as a single-board computer (SBC) by connecting an HDMI monitor, USB keyboard, and mouse, and use the onboard App Lab.
  • Connect over the network: After completing the initial setup, connect the computer and the board to the same local network, and then connect from App Lab on the computer.

Prepare the Device and Power Supply​

  • Arduino VENTUNO Q × 1.
  • An external power supply that meets the power requirements, connected to a DC power source through the DC barrel jack or the screw terminal.
  • Computer USB-C mode: a USB-C cable that supports data transfer and a computer with internet access.
  • Onboard SBC mode: an HDMI monitor and cable, plus a USB keyboard and mouse.
  • A network connection for initial configuration and updates.

Place the board on standoffs to prevent the bottom of the PCB from contacting conductive objects. Connect the external power supply first, and then connect the computer USB-C data cable; do not rely solely on the computer USB port for power.

Option 1: Set Up via a Computer​

Arduino VENTUNO Q external power supply and computer USB-C connection illustration, source: Arduino official manual

  1. Power the board through the DC barrel jack or the screw terminal.

  2. Connect the board's USB-C port to the computer, and confirm that the cable supports data transfer.

  3. Download and install the latest version of Arduino App Lab for your computer's operating system from the Arduino official software download page, and then open the software.

  4. Select VENTUNO Q from the device list. During the initial setup, follow the wizard to enter the board name, keyboard language, and Wi-Fi information, and complete the board password and other configuration.

    Arduino App Lab selecting VENTUNO Q, source: Arduino official tutorial

  5. Follow the wizard to complete the board update. Keep the board powered and connected during the update.

For the complete wizard, see the Arduino VENTUNO Q first setup tutorial.

Option 2: Set Up via the Onboard Desktop​

Arduino VENTUNO Q HDMI, keyboard and mouse, and power connection diagram, source: Arduino official manual

The figure shows a 12–24 V DC power supply. For the complete power connector specifications, see Power Supply.

  1. Connect the monitor to the HDMI port, and connect the keyboard and mouse to the USB-A ports.
  2. Power the board through the DC barrel jack or the screw terminal.
  3. On first boot, follow the on-screen prompts to create a Linux password. When finished, you should reach the Ubuntu desktop.
  4. Open the preinstalled Arduino App Lab from the desktop navigation bar.
  5. Follow the on-screen prompts to connect to Wi-Fi and complete the required updates.

Running a Sketch requires installing the Arduino Zephyr core that includes the VENTUNO Q definition. During the initial setup, complete the board update as prompted by App Lab; if the Unknown FQBN error appears, refer to the FAQ troubleshooting steps.

  1. In "Examples" in App Lab, find and open "Blinking an LED" or "Blink LED" and review the example description. The example name may differ between versions.

  2. Click "Run" in the upper-right corner and wait for compilation, transfer, and launch. The first run may require internet access to download the runtime; wait for the launch process in "App launch" to finish.

  3. Observe the onboard LED. Once the example is running, the LED blinks on for 1 second and off for 1 second in a loop.

  4. If the launch fails, first check the startup log in "Console". Refer to App Lab console instructions to distinguish compilation errors from runtime errors; if the runtime download fails, refer to the FAQ.

Switch to a Network Connection After Setup​

Keep the board powered, connect the computer and the board to the same local network, and reopen App Lab on the computer. Select the VENTUNO Q with the network icon from the device list, and enter the board password set during the initial configuration. Note that this is different from the Wi-Fi password.

If network discovery behaves abnormally, refer to the FAQ.

Configure the Network​

Wi-Fi​

You can configure the network in the App Lab initial wizard or settings. In onboard SBC mode, you can also open the system menu in the upper-right corner of Ubuntu, select a Wi-Fi network, and enter the password.

VENTUNO Q Ubuntu Wi-Fi settings, source: Arduino official manual

You can also run the network management tool in the board terminal:

sudo nmtui

Select and connect to a network in the text interface. When finished, run the following command in the board terminal to view the IP address:

hostname -I

The output may contain addresses for multiple network interfaces. For a remote connection, choose the address on the same local network as the computer.

Wired Ethernet​

Connect the RJ45 port to your network, and check the connection status and IP address in the Ubuntu network settings. The maximum port speed is 2.5 Gbit/s; the actual negotiated speed also depends on the switch, router, and cable.

Bluetooth​

Open the Bluetooth settings from the system menu in the upper-right corner of Ubuntu, put the external device into discoverable mode, select the device, and follow the prompts to complete pairing.

Enabling Bluetooth occupies some 40PIN header signals. Before connecting an external HAT, check the expansion interface notes.

Access the Board Terminal​

It is recommended that you first complete the App Lab initial configuration, set the board password, and connect to the network. If the network has not yet been configured, you can first enter the terminal via ADB.

SSH: Connect over the Local Network​

Connect the computer and the board to the same local network, and obtain the board's IP address through App Lab or hostname -I. Run the following in the computer terminal, replacing <ipaddress> with the actual IP address:

ssh arduino@<ipaddress>

On the first connection, verify the device fingerprint and confirm it, then enter the board password. After logging in, you enter the board's Ubuntu command line.

After logging in, run the following command to turn on the red LED:

echo 255 > /sys/class/leds/pca963x:red_1/brightness

The RGB LED should be steadily red.

ADB: Connect via USB-C​

ADB (Android Debug Bridge) can access the board terminal via USB-C. On a Windows computer, you can install Platform-Tools in PowerShell:

winget install --id Google.PlatformTools --exact

After installation is complete, reopen the terminal and run adb version to check the installation result. For other installation methods, see Android SDK Platform-Tools download and instructions. Connect the board to the external power supply first, and then connect the computer data cable.

Run the following in the computer terminal:

adb devices
adb shell

Confirm that the device appears in the list, and enter the board terminal.

After entering adb shell, run the following command to turn on the red LED:

echo 255 > /sys/class/leds/pca963x:red_1/brightness

The RGB LED should be steadily red.

Onboard Desktop: Open the Terminal Directly​

Open "Terminal" on the board's Ubuntu desktop and run the following command to turn on the red LED:

echo 255 > /sys/class/leds/pca963x:red_1/brightness

The RGB LED should be steadily red.

After testing, run the following command to turn off the red LED:

echo 0 > /sys/class/leds/pca963x:red_1/brightness

For information on viewing applications through the terminal, see Working with App Lab.

Working with CSI Camera​

First connect the camera according to the Arduino VENTUNO Q CSI camera connection instructions, and then start the board.

Install the Camera Components​

In the board terminal, update the system packages, install the Qualcomm camera plugin and the mpv player, and then reboot:

sudo apt update
sudo apt upgrade
sudo apt install gstreamer1.0-plugins-qcom mpv
sudo reboot

gstreamer1.0-plugins-qcom installs the camera capture and video processing plugins; mpv is used to play recordings and display the preview.

Check Camera Detection​

After rebooting, check the sensor probe records in the board terminal:

sudo dmesg | grep Probe

Check whether there is a Probe success record for the corresponding sensor. During probing, Probe failed records for other sensors may also appear; do not conclude that the camera is not connected based solely on these failure records.

Record Video​

Before recording or previewing, stop any other applications or commands that are using the camera.

camera=0 in the command is the software-recognized camera index. When multiple cameras are connected, you can change it to 1, 2, or another index based on the actual detection result; the software index does not necessarily correspond to the number labeled on the connector.

Run the following command in the board terminal to record a 640 × 480 video:

gst-launch-1.0 -e \
qtiqmmfsrc camera=0 name=camsrc video_0::type=preview ! \
'video/x-raw,format=NV12_Q08C,width=640,height=480,framerate=30/1,interlace-mode=progressive,colorimetry=bt601' ! \
queue ! \
v4l2h264enc capture-io-mode=4 output-io-mode=5 ! \
h264parse ! \
mp4mux ! \
queue ! \
filesink location=capture.mp4

Press Ctrl+C to stop recording; the video is saved as capture.mp4 in the current directory. Before recording again, change the file name to avoid overwriting the existing video. You can play the recording using mpv on the board desktop.

Live Preview​

Open a terminal on the board desktop and run the following command:

gst-launch-1.0 -q -e \
qtiqmmfsrc camera=0 name=camsrc video_0::type=preview ! \
'video/x-raw,format=NV12_Q08C,width=640,height=480,framerate=30/1,interlace-mode=progressive,colorimetry=bt601' ! \
queue ! \
v4l2h264enc capture-io-mode=4 output-io-mode=5 ! \
h264parse config-interval=-1 ! \
'video/x-h264,stream-format=byte-stream,alignment=au' ! \
fdsink fd=1 | \
mpv --no-config --hwdec=no --profile=low-latency \
--demuxer-lavf-format=h264 --no-cache --force-window=yes -

The window displays the live image. Press Ctrl+C to stop the preview. If a remote terminal cannot display the window, run the command in a terminal on the board desktop.