Turn Your Smartphone into a Camera for AI Object Detection on the Arduino UNO Q
AI object detection on a maker board rarely fails because of the board – it fails because of the camera. Order a module, hunt for an adapter, fiddle with drivers, and end up with a cable draped across your desk. On the Arduino UNO Q you can skip all of that: the Arduino IoT Remote app streams your smartphone’s camera feed straight to the board over Wi-Fi – and the UNO Q runs the object detection locally. No webcam to buy, no cable, no cloud.
In this guide we set it up in a few minutes: start the example app in App Lab, scan a QR code, point your phone at a few objects. For me it’s also the groundwork for a bigger project – automatically watching my 3D printer. More on that at the end.
The Arduino IoT Remote app turns your smartphone (iOS or Android) into a Wi-Fi camera for the UNO Q. Pairing is done via a QR code, and the video runs exclusively over your local network – not through the Arduino Cloud. On the board, the
video_objectdetection brick analyses the images with a pre-trained model. Effort: about 15 minutes, extra hardware: none.
What you need
- an Arduino UNO Q (2 GB or 4 GB) – you can get it as a 4 GB bundle* or 2 GB bundle*; our guide Arduino UNO Q setup covers the first steps
- a smartphone with iOS or Android – model and age barely matter, the board does the compute
- the free Arduino IoT Remote app from the App Store or Google Play
- Arduino App Lab on your computer (version 0.10.0 at the time of writing) and an Arduino account – you can’t sign in to the phone app without one
- board and phone on the same Wi-Fi – this is the condition that trips people up most often (turn off mobile data on the phone!)
If you don’t know your UNO Q yet: in our review of the Arduino UNO Q versus the Raspberry Pi 5 we looked at benchmarks, power draw and the dual-brain idea in detail – the short version: the board runs a full Debian Linux, and that’s exactly where our AI model runs in a moment.
How the phone becomes a camera
Before we start, a quick look at the mechanism – it helps with troubleshooting later. Pairing happens in three stages:
- QR code: when the app starts, the UNO Q generates a one-time six-digit password and packs it together with its IP address and port into a QR code that the web interface displays.
- Handshake: you scan the code with your phone’s camera app, whereupon the IoT Remote app opens and authenticates with the board over an encrypted WebSocket connection. This channel only carries control messages.
- Video stream: only then does the phone send the camera image – over HTTP on port 4912 – to the UNO Q. From there it goes into the AI model and back into the web interface.
Important for anyone who (like me) reflexively thinks “cloud” when they hear “IoT app”: the video stream runs exclusively over your local network, straight from the phone to the board. Arduino confirms this explicitly in the official documentation on the IoT Remote integration. You still need an Arduino account to sign in to the phone app – that’s the only point where an internet connection is required.
Step 1: Start the example app in App Lab
Arduino ships the matching example, so we don’t have to write a single line of code. Start App Lab, connect your UNO Q and proceed as follows:
- In the example overview under “Inspirations”, search for “smartphone”.
- Select the “Detect Objects on Smartphone Camera” example (with read-only examples, duplicate it first via “Copy and edit app”).
- Click Run in the top right and wait for the container to start – the first time takes noticeably longer because the AI model is downloaded.
- The web interface opens automatically in your browser. If it doesn’t, open it by hand:
http://<board-name>.local:7000– for examplehttp://unoq.local:7000.
In the browser you now see a large QR code with a six-digit number below it. The two belong together: the QR code is just the convenient option, you can also type the code in by hand.
Step 2: Pair your phone
Install the Arduino IoT Remote app on your smartphone and sign in with your Arduino account. After that you have two options:
Option A: scan the QR code
Just open your phone’s normal camera app and point it at the QR code in the browser. The IoT Remote app opens automatically and connects. Hold the phone steady, about 10 to 15 cm from the screen – with a dark monitor it helps to turn the brightness up.
Option B: without the QR code, by hand
- In the app, go to Devices and tap the plus icon.
- Select “Stream phone camera to UNO Q”.
- Pick your UNO Q from the list – it only shows up if it’s on the same network.
- Enter the six-digit code from the web interface. The stream starts right away.
Once the connection is up, the web interface switches from the QR code to the live image from your phone camera. The code is used up at that point – it’s valid for a single connection and expires after about five minutes anyway. If you need a new one, just reload the browser page.
Step 3: Detect objects
Now the fun part: point the phone camera at objects around the room. In the web interface a box appears around detected objects, with the name and the confidence next to it – for example “95 % potted plant”. The interface also lists the last five detections with timestamps.
The bundled model is trained on typical everyday objects. The example app even reacts to six of them with a little animation, so it’s worth looking for these specifically:
- cat and dog
- cell phone
- clock
- cup
- potted plant
The slider in the interface sets the confidence threshold, i.e. the probability from which a detection is reported at all. Turn it down and the model detects more – but also more nonsense. For your first attempts the default is a good starting point; anyone automating something serious later will end up tuning this.

The honest part: CPU, GPU or the much-advertised “AI acceleration”?
Qualcomm and Arduino like to advertise the UNO Q’s chip with its AI acceleration. So the interesting question: does the object detection really run on the GPU – or on the plain CPU after all? We simply let htop run alongside during detection.

yolo-x-nano.eim eats around 70 % CPU – the detection runs on the processor.The answer is clear: the bundled model is called YOLO-X-nano (it recognises the 80 common COCO object classes) and runs via TensorFlow Lite on the CPU. In htop, the process yolo-x-nano.eim steadily pulls around 70 % of one core – no sign of the GPU. Even so, in our test it managed around 10 frames per second – smooth enough that the boxes follow the objects without any annoying lag.
When it doesn’t work: the most common snags
| Symptom | Cause and fix |
|---|---|
| QR code isn’t recognised | Screen too dark or wrong distance. Turn up the brightness, hold the phone steady, 10–15 cm away. |
| “Connection failed” | Phone and board are on different networks. Check that the phone is really on Wi-Fi and hasn’t switched to mobile data – and whether your router separates guest and main Wi-Fi. |
| No video although paired | Port 4912 is blocked. Check the firewall on your computer; on corporate networks the port is often closed. |
| Image stutters or freezes | Wi-Fi congested. In your own app, reduce the resolution from (480, 640) to (320, 480). |
| “Invalid secret” | The code has expired (about five minutes) or was already used. Reload the browser page for a new code. |
| Stream suddenly stops | The phone went to sleep. Extend the display timeout and keep the app in the foreground. |
Building the phone camera into your own apps
The example is nice, but it gets really interesting when you pull the phone camera into your own app. For that you need the WebSocketCamera class on the Python side. It creates the secured endpoint the phone connects to:
import secrets
import string
from arduino.app_peripherals.camera import WebSocketCamera
def generate_secret() -> str:
return ''.join(secrets.choice(string.digits) for _ in range(6))
secret = generate_secret()
resolution = (480, 640) # portrait, fits the phone
camera = WebSocketCamera(
resolution=resolution,
secret=secret,
encrypt=True,
)
You then hand the resulting camera object to the brick that should analyse the images – in the example that’s VideoObjectDetection(camera, ...). The connection details (IP, port and the secret) are sent to your web interface, which builds the QR code from them. Arduino provides the complete, commented source of the example in the GitHub repository app-bricks-examples – the fastest way, though, is to duplicate the example in App Lab via “Copy and edit app” and start tinkering directly.
The camera stream isn’t tied to object detection either: according to Arduino’s documentation you can feed other vision bricks with it, such as video_classifier for image classification or face_detection for face detection.
Limits – and when a real camera is the better choice
As convenient as the entry point is: the phone is an excellent prototype and a poor permanent setup. Display on, app in the foreground, battery on the cable, phone tied up – for fifteen minutes of trying it out that’s fine, for monitoring over eight hours it isn’t. If you want to film permanently, you have two alternatives:
- USB webcam – any UVC-compatible camera will do, and an inexpensive one like the Logitech C270* is perfectly good enough for object detection. For this the UNO Q needs the official USB-C docking station* or an actively powered USB hub. The matching example in App Lab is called “Detect Objects on Camera”.
- Camera module on the UNO Media Carrier – the official carrier board brings two MIPI-CSI connectors, but currently only accepts sensors of the IMX219 type. If you have a Raspberry Pi Camera v2 in a drawer, you’re set; the newer Pi camera modules don’t fit. How to set up such a module on the Raspberry Pi is shown in our guide set up the Raspberry Pi camera.
Cameras that work with the UNO Q:
The boxes pull today’s prices automatically. The USB webcam additionally needs the docking station or an actively powered USB hub, the camera module needs the UNO Media Carrier.
And then there’s the bundled model. It recognises everyday objects, but only the ones it was trained on – it has never heard of a failed 3D print or a specific component. For that you need your own model. That’s exactly why Arduino integrated Edge Impulse directly into App Lab: the brick has an AI models tab with a Train new AI model button, your Arduino account also works with Edge Impulse, and in the end an .eim file lands in your app.
.eim model also runs on the phone stream isn’t documented anywhere.
Training your own model – and then exporting it specifically as “Arduino UNO Q (GPU)” so it uses the GPU – is exactly the path to a real application. For us it leads to the next project: an automatic 3D-print monitor that spots a failed print (the infamous “spaghetti”). That will be its own article – this one was the foundation: camera attached, detection running.
Why I built this in the first place
Behind the fun with the cup there’s a concrete plan: I want to monitor my 3D printer automatically. A nine-hour print that turns into a ball of filament after two hours costs material, time and nerves – and you usually only notice the next morning. Commercial solutions exist, but they mostly run in the cloud and on a subscription.
The UNO Q would have everything you need for it: a Linux side that analyses the camera image, a real-time chip for the reaction, and at 0.4 watts idle a power draw that makes permanent operation painless. What’s still missing is a self-trained model and the connection to the printer. We’ll tackle both in a separate article – this one was the first building block: the camera. Until then you can look at how local AI performs on the Raspberry Pi 5, or get to know the other half of the UNO Q with the marble maze – the real-time chip.
Frequently asked questions
No. The video goes straight from the smartphone to the UNO Q, exclusively over your local network – Arduino confirms this in the documentation. The internet is only used to sign in to the IoT Remote app, for which you need a free Arduino account.
Not to get started. An Arduino UNO Q, a smartphone with iOS or Android and a shared Wi-Fi network are enough. You only need a USB webcam or an IMX219 camera module on the UNO Media Carrier once the camera has to sit permanently in a fixed position.
Typical everyday objects. The bundled model is YOLO-X-nano and covers the 80 common COCO classes; the example app reacts to six of them with an animation: cat, dog, cell phone, clock, cup and potted plant. For anything beyond that – such as a failed 3D print – you have to train your own model.
You train your own models via the Edge Impulse integration in App Lab and select them in the brick under ‘AI models’. Arduino’s guide for that assumes a USB camera, though; whether the combination of a custom .eim model and the smartphone stream works isn’t documented. We’re testing it and will add the result here.
Out of the box, no – the bundled model runs on the CPU (we measured around 70 % of one core and roughly 10 FPS). GPU acceleration exists but is opt-in: only a model exported specifically as ‘Arduino UNO Q (GPU)’ in Edge Impulse uses the Adreno GPU. Qualcomm lists no dedicated NPU for the chip, only a Hexagon DSP for audio, sensor data and lightweight AI tasks, with the CPU and GPU as the main route for AI models.
In almost all cases it’s one of three things: phone and board are on different networks (mobile data or guest Wi-Fi), port 4912 is blocked by a firewall, or the six-digit code has expired. It’s valid once and for about five minutes – reloading the browser page creates a new one.
Conclusion
The path from unboxing to your first working object detection on the UNO Q goes through not a single extra part – the phone that’s lying around anyway is enough. For prototypes, demos and getting into computer vision, it’s the fastest route I’ve seen on a maker board so far. For permanent operation you’ll want a fixed camera after all, and for anything beyond cups and potted plants, your own model.
That’s exactly where we go next. Have fun trying it out – and let us know in the comments what your UNO Q recognises, and what it doesn’t.


