Documentation

Everything you need to get started with the Lilian Board

Getting Started

The Lilian Board requires only three components to function: the board itself, an electronic sensor, and an Android device with the Lilian App installed. Follow the steps below to make your first sensor reading.

Hardware Overview

The Lilian Board is a compact PCB featuring USB connectivity and breakout headers for I2C, SPI, UART, and GPIO signals. It is powered entirely by the Android device via USB, so no external power supply is required.

Supported Protocols

ProtocolRoleUse Case
I2CMasterSensors, displays, RTC modules
SPIMasterHigh-speed data, ADCs, flash memory
UARTFull-duplexGPS modules, serial debug
GPIOIn/OutLEDs, buttons, relays, interrupts

Python API

The Lilian App exposes a Python scripting environment. The board operates as the I2C master while a Python script embedded in the Android app orchestrates the operation sequence.

Code Examples

# Read temperature from an I2C sensor
import lilian

board = lilian.Board()
i2c = board.i2c(address=0x48)

temp_raw = i2c.read_register(0x00, 2)
temperature = (temp_raw[0] << 4 | temp_raw[1] >> 4) * 0.0625
print(f"Temperature: {temperature:.2f} °C")
Scroll to Top
Shopping Cart0