Software/Arduino Core/Reference

Example Index

Every example sketch shipped with the core, grouped by library, with the hardware each requires, and the bench sketches kept out of the menu.

beginner5 min read

Examples appear under File > Examples when the Neuro N6 is the selected board. Those shipped by Ohm Lab follow the Arduino style guide: a title block, then commented code. Diagnostic and benchmark sketches are kept in extras/bench and are not listed in the menu.

NeuroN6Examples

ExampleRequiresDemonstrates
01.Basics/BlinkBoarddigitalWrite on the active-low LED
01.Basics/BlinkWithoutDelayBoardNon-blocking timing
01.Basics/FadeBoardanalogWrite on an LED channel
01.Basics/RgbLedBoardThe RGB object
01.Basics/DigitalReadSerialBoardReading the USER button
01.Basics/ButtonInterruptBoardattachInterrupt on the button
01.Basics/AnalogReadSerialBoardanalogRead at 1.8 V full scale
01.Basics/I2cScannerBoardProbing I2C1 through the HAL
02.Camera/CameraStreamOV5640Camera-only streaming with every setting documented
02.Camera/CameraResolutionOV5640Changing the camera mode
02.Camera/CameraOptionsOV5640, TFT carrierEvery VisionConfig field, output on the panel
03.NeuralNetwork/ObjectDetectionOV5640The Nia detector to Neuro Studio
03.NeuralNetwork/ObjectDetectionDisplayOV5640, TFT carrierThe Nia detector on the panel
03.NeuralNetwork/ObjectSegmentationOV5640YOLOv8 segmentation at 5 MP
03.NeuralNetwork/ObjectSegmentationDisplayOV5640, TFT carrierYOLOv8 segmentation on the panel
03.NeuralNetwork/PoseEstimationOV5640YOLOv8 pose with keypoint readout
03.NeuralNetwork/CascadedModelsOV5640Two models on one frame with slots and overlay modes
03.NeuralNetwork/HandLandmarksOV5640Detector and landmark cascade with tracker

Camera libraries

LibraryExampleRequiresDemonstrates
OV5640CustomSensorAnySkeleton ImageSensor implementation
VD66GYGlobalShutterVisionSTCam module1.4 MP at 45 fps with segmentation and the IMU, magnetometer and ToF
VD66GYGlobalShutterThermalThermal moduleVD66GY on the thermal carrier

Vision libraries

LibraryExampleRequiresDemonstrates
QuircQrReaderOV5640 or VD66GYQR decoding to Neuro Studio
QuircQrReaderDisplayTFT carrierQR decoding on the panel
Barcode1DBarcodeReaderOV5640EAN and UPC decoding
AprilTagAprilTagReaderOV5640Tag detection, tracking and pose
N6ImgprocBlobTrackerOV5640Colour blob tracking with live tuning
N6ImgprocBlobTrackerDisplayTFT carrierColour blob tracking on the panel
FaceIDFaceRecognitionOV5640, TFT carrierDetector and embedder cascade with enrolment

Sensor and audio libraries

LibraryExampleRequiresDemonstrates
LSM6DSLReadAccelerationBoardIMU readout and streaming
MMC5603NJReadMagneticFieldBoardMagnetometer readout and heading
VL53L1CBReadDistanceOV5640, TFT or STCam module4x4 distance grid
GT911CalibrateTouchTFT carrierDeriving the touch mapping
NeuroVisionThermalThermalCameraThermal moduleLepton streaming as main video
MicrophoneMicrophoneLevelBoardLevel meter with streaming
SpeakerSpeakerToneTFT carrierTones and PCM streaming
SpeakerSpeakerClipTFT carrierPlaying an embedded clip
N6AudioAudioSpectrumTFT carrier64-band analyser on the panel
N6AudioAudioWaterfallTFT carrierScrolling spectrogram
N6AudioAIAudioEventDetectionOV5640Ten-class sound classifier to Neuro Studio
N6AudioAIAudioEventDetectionDisplayTFT carrierSound classifier on the panel

Connectivity and system libraries

LibraryExampleRequiresDemonstrates
MayaW476WiFiVideoStreamOV5640-WVideo over an access point
MayaW476WiFiAccessPointTFT-WAccess point, BLE, panel and speaker together
BluetoothMayaBleBeaconOV5640-W or TFT-WNon-connectable beacon
BluetoothMayaBlePeripheralOV5640-W or TFT-WConnectable GATT service via ArduinoBLE
ArduinoBLECentral, PeripheralOV5640-W or TFT-WUpstream ArduinoBLE examples
A7683EVideoLteThermalUploadThermal module, A7683E modemPeriodic upload over LTE
N6OTAOtaOverWiFiOV5640-W or TFT-WManifest check, download, apply and rollback
N6OTAOtaSelfStageBoardSlot mechanism without a network
N6EventsEventRecordingOV5640, SD cardMotion gate, network, clip to card
N6EventsEventRecordingLowPowerThermal module, SD cardDormant tier with one-shot capture
NeuroN6-PowersaveSleepAndWakeThermal module, SD cardFull duty cycle at about 23 mA
SPISpiTransferBoardByte transfer with software chip select
WireWireScannerBoardI2C address scan

Bench sketches

Located in extras/bench and compiled by the build verification tooling.

SketchPurpose
AprilTagDoctorReports where tag detection failed
AprilTagPoseSelfTestPose solver against known corners
AprilTagSyntheticDetector on a generated image
AssetStoreTestAsset store persistence
CameraAwbModeWhite balance comparison between modules
CameraBringUpVd66gyGlobal shutter sensor bring-up
CameraColourCheckColour fault localisation by resolution
CameraFingerprintSensor register dump for comparison
DisplayBenchmarkDisplay and overlay throughput
DisplayTouchBringUpPanel and touch controller
EventsParkedUnverified event pipeline composition
EventsRingSelfTestRing buffer unit test
EvidenceGateTestHost subscription contract
FlashReadRepeatabilityMapped flash read error rate
ImgprocSelfTestImage primitive unit test
ModelBenchPer-frame inference timing
PsramDecay, PsramRetention, PsramSizeProbe, PsramStressExternal memory tests
RfTestLabEMC laboratory firmware. Requires the RF test mode option. Not for shipment
SdCardDoctor, SdCardLogStability, SdCardWriteBenchmarkSD card diagnostics and soak
ThermalI2cVerify, ThermalVoSpiTestThermal camera interfaces
Vd66gyStrobeTestStrobe output
WatchdogClickTest, WatchdogClickRecoveryExternal watchdog
WiFiStreamingStubSuperseded by WiFiVideoStream

Build verification

tools/build_all_examples.py compiles every example and bench sketch and records a SHA-256 of each unsigned binary and ELF. The --compare option diffs two runs, which is how cosmetic changes to the core are shown to produce byte-identical output.