PIC32 Open-Scope Learning Hub

OPEN HARDWARE FOR LEARNERS · PIC32 OPEN-SCOPE

Build the hardware.
Write the firmware.
Ship the app.

A real, working, fully open board for the next generation of makers. Follow one signal from a pin, through a 12-bit ADC, through PIC32 firmware, over USB, into a C++ library, and onto a live plot on your PC or phone, then write your own driver for the sensor of your choice.

12-bit
dual ADC + dual DAC
2 × I²C
master buses
100%
open schematic, firmware, apps
Win · Linux · Android
one protocol everywhere
WHY THIS BOARD EXISTS

Learning embedded shouldn’t mean starting from zero

Most kits teach you to blink an LED. Real products need hardware, firmware, protocols and apps working together. This board is a complete, working system you can read end to end, break, fix and remix.

🎓

For young engineers

A platform to try things on, with working pieces to learn from. Nothing is hidden behind a binary blob.
🔧

For tinkerers

Plug an I²C sensor into the header and write your own driver from its datasheet in an afternoon.
📐

For future designers

The schematic is open (Altium) with Gerbers. Spin your own board and the same software still talks to it.
🏫

For educators

Guided labs with expected output, questions and challenges, plus a ready-made slide deck for your class.
END TO END

Follow one signal through the whole stack

You can enter at any layer and ignore the rest. Every layer is open, and a single 64-byte framed packet (SOH · escaped body · CRC-16 · EOT) carries every command over USB.

Sensor / signal
a voltage on a pin
▶
Hardware
ADC · DAC · I²C · GPIO
▶
PIC32 firmware
FreeRTOS · ISR · DMA · USB
▶
openlib
C++17 and C API
▶
Apps
Qt desktop · Flutter Android · yours
PICK YOUR PATH

You don’t have to learn everything

Each track is self-contained. Someone who only wants to build an Android app can jump straight in, and someone who only wants to design hardware can ignore the code.

🔌

Hardware

Read the schematic, probe the board, understand power and the analog front-end, then design your own.

multimetercuriosity
Guide: docs/02-hardware
🧠

Firmware (embedded C)

SPI, I²C, timers, DMA, input capture, UART and USB-CDC on a 32-bit PIC32 running FreeRTOS, plus a USB bootloader.

MPLAB XC32C99
Guide: docs/03-firmware
📚

openlib (C++ / C)

A clean library for scope, signal generator, I²C, GPIO and the daughter board. Write your own sensor library on top.

g++libusb
Guide: docs/04-openlib
🖥️

Desktop app (Qt)

Real-time plotting, GUIs and instrument software: oscilloscope, logic analyzer, I²C studio, bootloader.

Qt5Qwt
Guide: docs/05-desktop-app
📱

Android app (Flutter)

A live oscilloscope on your phone over USB-OTG. Learn Flutter, custom painters and the Kotlin USB bridge.

FlutterUSB-OTG phone
Guide: docs/06-android-app
🧪

Hands-on labs

Four guided experiments from first light to writing your own driver, each with expected output and a challenge.

the boardoptional IMU
Guide: docs/07-labs
MEET THE BOARD

Every connector documented

Annotated pinout images show every header, MCU pin number and signal, so you never have to dig through a schematic to find where something is wired.

PIC32 Open-Scope main board

Main board ($79.00)

PIC32 MCU, 12-bit SPI ADC and DAC, USB 2.0 Full-Speed, dual I²C master, UART and GPIO on screw terminals.

PIC32 Open-Scope with daughter board

With the extension / daughter board ($19.00)

LEDs, a 5 V relay and a buzzer: your first outputs, driven from your own code.

WHAT YOU GET

A whole lab on one board

SubsystemCapability
Oscilloscope2 channels, 12-bit SPI ADC, 0 to 5 V, 200 Hz to 500 kHz sampling, triggers, Vpp / Vrms / frequency / duty, FFT in the library
Signal generator2 channels, 12-bit SPI DAC, 0 to 5 V, sine / triangle / square / sawtooth and more, timer + DMA driven
I²CTwo hardware master buses with 100 kHz / 400 kHz; ready drivers for IMU, BME280, BH1750, LM75, DS3231, ADS1115, INA219, PCA9685, PCF8574 and 24Cxx EEPROM
GPIO · capturePort E header, IC / OC / timer header, input capture, two UARTs (TTL)
Host linkUSB 2.0 Full-Speed (CDC serial), 64-byte framed packets with CRC-16, ASCII command line for quick tests
Firmware updateUSB HID bootloader: update over USB without a programmer; ICSP header for recovery
Daughter board4 LEDs, 5 V relay, piezo buzzer, spare Port E breakouts
SoftwareQt5/Qwt desktop app, Flutter Android app, C++17 / C library, all open source, Windows / Linux / Android
THE MAIN GOAL

Write your own sensor library

The board gives you a trustworthy I²C bus. You write the driver for whatever sensor you like, by reading its datasheet. Six steps, about a hundred lines of C++.

1
Wire it
3.3 V, GND, SCL, SDA on the I2C Master header
2
Scan
find the device address
3
Read the ID
WHO_AM_I should answer 0x68
4
Configure
wake the sensor, set ranges
5
Burst read
14 bytes starting at 0x3B
6
Convert
counts to g, deg/s and degrees C
// connect (or fall back to the built-in simulator)
openlib::ProtocolClient client("/dev/ttyACM0", 115200);
if (!client.connect()) client.setSimulationMode(true);

openlib::I2CBus bus(client, 1);      // 1 = I2C2 header
bus.open(openlib::I2CSpeed::Standard100kHz);

// identify and wake an MPU-6050-class IMU
uint8_t id;
bus.readReg8(0x68, 0x75, id);        // WHO_AM_I
bus.writeReg8(0x68, 0x6B, 0x00);     // wake up

// burst-read 14 bytes, then convert
uint8_t b[14];
bus.readRegBlock(0x68, 0x3B, b, 14);
float ax = (int16_t)((b[0] << 8) | b[1]) / 16384.0f;

Tested with an IMU and the daughter board

The shipped example test_imu_daughter scans the I2C2 bus, reads an MPU-9050 / MPU-6050-class IMU (accel, gyro, temperature), chases the four LEDs, clicks the relay and beeps the buzzer. Run it with --sim to try it with no hardware at all.

scan I²CWHO_AM_Iaccel + gyroLED chaserelaybuzzer

Challenges: compute roll and pitch, add a complementary filter, show tilt on the LEDs, or port your driver to Python or to the Android app.

LEARN BY DOING

Four labs, from first light to your own driver

Every lab lists what you need, what you should see, questions to answer and a challenge to try.

Lab 1 · 15 min

First light

Build the library, run it in simulation, then connect the real board.

Lab 2 · 30 min

Scope meets signal generator

Loop the DAC into the ADC, measure the waves, and see aliasing happen.

Lab 3 · 45 min

IMU + daughter board

Run the stock example: IMU on I2C2, LEDs, relay and buzzer.

Lab 4 · 1 to 2 h

Your own sensor library

Pick any I²C sensor, read the datasheet, write the driver.

MAKE IT YOURS

Then design your own board

The point of an open platform: the apps and the library only care that your board speaks the same USB protocol.

1

Daughter boards

Sensors, motors and displays on the P1 / P2 / P3 headers or the I²C headers. Everything keeps working.

2

New layout

Same MCU, your own PCB. Firmware, library and apps are unchanged.

3

New analog front-end

Attenuators, buffers, wider ranges: adjust the scaling in the library.

4

A different MCU

Port the firmware and speak the same protocol, and the same apps still work.

Bring-up checklist
No shorts on the rails · +5 V in and 3.3 V out · load the bootloader through the ICSP header · the board enumerates on USB · load the application firmware · scan the I²C bus and capture a waveform
DOWNLOADS

Slides, pinouts and guides

Teach it, present it, or just keep the pinouts next to your keyboard.

Learning deck title slide

17-slide learning deck

Motivational and orientation deck for young learners. Editable PowerPoint and a PDF.

Learning deck: write a sensor library

Deck preview: your turn

Slide 14 summarises the six-step sensor-library recipe used in Lab 4.

Learning deck: daughter board

Deck preview: first outputs

LEDs D1 to D4, relay K1 and buzzer BZ1 on the daughter board.

The full learning guide (getting started, hardware, firmware, openlib, desktop app, Android app, labs) and the example code live in the docs/ folder of the open-source package.

QUESTIONS

Frequently asked

Do I need the board to start?

No. Every library example has a --sim mode with a built-in simulator, so you can read, build and run the code first.

Which computers and phones work?

The library and apps are cross-platform: Linux, Windows and Android. The Android app needs a phone with USB-OTG.

Which sensors can I use?

Any 3.3 V I²C sensor. Drivers are included for several popular ones, and the labs teach you to write your own.

Can I sell or modify my own version?

That is the point: schematic, Gerbers, firmware and software are open so you can learn from them and spin off your own board.

Is there an emulator for this board?

Not for the PIC32 board. The OmniPy STM32F429 board has a QEMU emulator. Here, the simulation mode of the library covers the software side.

FIRST EDITION · LIMITED QUANTITY · FIRST-COME, FIRST-SERVED

Your first board, your first driver, your first app.

Zlucent’s very first hardware product, made in a small batch for learners: $79.00 for the Main Board and $19.00 for the Extension / Daughter Board, with schematics, firmware and applications open to you.

Scroll to Top
🌙 ☀️