Wire it, paste the helper, pick the mode
No library to install: paste the "helper" into the sketch — the first few lines (address, structs) at the top, the functions at the bottom. Then you can call ucReadBlob() and friends.
- Wiring: camera 5V → 5V (the camera draws a lot; an external 5 V 2 A supply with joined GND is best), GND → GND, SDA → A4, SCL → A5 (UNO/Nano). UNO R4: the pins marked SDA/SCL; ESP32: GPIO 21 (SDA) / 22 (SCL).
- I2C pins are provisional until hardware testing: on the camera, SDA = IO3 and SCL = IO1 for now; the camera needs the "I2C" firmware (it shares IO1/IO3 with the LEGO serial firmware, so it is one or the other).
- Paste the program marked ① on the right into the Arduino IDE (the helper is at the bottom; "Show helper" shows it all, and "Copy program" always copies everything). You can also download MBC_UniCam.h into the sketch folder and use
#include "MBC_UniCam.h"instead. - Pick the camera mode: click a mode number below (mode number = camera mode × 10 + sub-option). Over I2C the program can switch the mode: the step-2 code does it at power-on.