This Unity sample demonstrates sensor (IMU)-driven projector control on DigiLens ARGO. By tilting your head downward (~30°), the app automatically turns both eye displays (left and right projectors) on and shows a simple clock HUD; tilting back up turns them off. It uses the DigiOS SDK to switch projector modes safely and reliably.
The repository contains the Unity Status Display. This guide will help you download, set up, and build the APK.
- Unity Hub
- Unity Editor 2022.3.64f1 (Download from Unity Archive)
- DigiOS Software Build Version B1.0001.2145
- Open Unity Hub.
- Go to the Installs tab.
- If not installed, download Unity Editor 2022.3.64f1 from the Unity Download Archive.
- In the Instructions App GitHub repository:
- Click the green Code button:
- Use Open with GitHub Desktop, or
- Select Download ZIP and extract manually.
- Back in Unity Hub, head to the Projets tab and click Add → Add project from disk, and select the cloned/extracted repository folder.
The project has now been added to the Unity Hub and is ready to be opened.
- Go to File → Build Settings.
- Ensure Android is selected.
- Click Build to generate the APK.
- Install the application on your device and run it. You can install the apk using adb (Android Debug Bridge), also known as Android Tools, using this command:
adb install test.apkAlternatively, you can connect your device using Vysor, and drag & drop the installation file into the Vysor window while mirroring.
- After installing the application, run it. Looking forward, both displays should be off. Looking about 30 degrees downwards will turn both displays on and show you a clock.
-
On launch: projectors are set OFF (safety).
-
When you tilt down ~30° (configurable), the app:
-
Turns both projectors ON
-
Fades in a clock HUD
- Looking up reduces the “down” angle; below a lower threshold (hysteresis) the app:
-
Turns both projectors OFF
-
Fades out the HUD
- On pause/quit: projectors are restored ON (safety).
Show When Pitch Down (default 30)
Hide When Down Below (default 24) - smoothing to prevent flicker
Smooth Time (default 0.12s)
Debounce Seconds (default 0.15s)
Fade Seconds (default 0.18s)
Invert Pitch (if down/up is reversed)
Force On In Editor (keeps optics on in Play Mode)
Debug Log/Interval
This is one of three Status Display versions. To find the other two versions, follow these links:
Android Status Display: This Android sample uses IMU-driven hysteresis-based projector control and utilizes the DigiOS SDK API to control both displays, auto-toggling them and showing a simple clock HUD when looking downwards.
Android Status Display LDGreen: This Android sample uses DigiOS SDK API-based projector control to only leave the left display turned on, showing a simple clock HUD in green.