Community Packages
The HIL community has contributed 133 packages across 22 categories, covering sensors, actuators, displays, IoT, robotics, and more (Rashwan, 2026).
Package Statistics
Popular Packages
Sensors (21 packages)
| Package | Description |
|---|---|
lm35-temp | LM35 temperature sensor driver |
dht11-humidity | DHT11 humidity and temperature sensor |
dht22-humidity | DHT22 precision humidity sensor |
bmp280-pressure | BMP280 barometric pressure sensor |
ultrasonic-hc04 | HC-SR04 ultrasonic distance sensor |
pir-motion | PIR motion detection sensor |
ldr-light | Light-dependent resistor driver |
soil-moisture | Soil moisture sensor for agriculture |
flame-sensor | Flame detection sensor |
gas-mq2 | MQ-2 gas/smoke sensor |
mpu6050-accel | MPU6050 accelerometer/gyroscope |
hall-effect | Hall effect magnetic sensor |
water-level | Water level sensor |
vibration-sensor | SW-420 vibration detection |
touch-capacitive | Capacitive touch sensor |
rfid-rc522 | MFRC522 RFID reader |
max30102-oximeter | MAX30102 pulse oximeter |
aht20-temp | AHT20 temperature/humidity sensor |
tsl2591-light | TSL2591 high-dynamic-range light sensor |
hcsr04-array | Multi-sensor ultrasonic array |
bme680-env | BME680 environmental sensor |
Communication (11 packages)
| Package | Description |
|---|---|
uart-soft | Software serial UART |
i2c-core | I2C bus management |
spi-driver | SPI bus communication |
nrf24l01 | NRF24L01 wireless transceiver |
hc05-bluetooth | HC-05 Bluetooth module driver |
esp01-wifi | ESP8266 WiFi module driver |
lora-sx1276 | SX1276 LoRa transceiver |
ir-nec | NEC infrared remote protocol |
ws2812-driver | WS2812 RGB LED driver |
can-mcp2515 | MCP2515 CAN bus controller |
websocket-client | WebSocket client for IoT |
Control Systems (7 packages)
| Package | Description |
|---|---|
pid-controller | PID control loop implementation |
state-machine | Finite state machine framework |
moving-average | Moving average filter |
exponential-filter | EMA filter for sensor smoothing |
pid-auto-tune | Automatic PID tuning |
cascade-pid | Cascaded PID control |
fuzzy-control | Fuzzy logic controller |
Contributing Packages
Package Template
hilp init --template package
This creates:
my-package/
├── hil.json
├── metadata.json
├── README.md
├── lib/
│ └── main.hil
├── examples/
│ └── demo.hil
└── tests/
└── test.hil
Publishing Workflow
# 1. Create your package directory
mkdir my-package && cd my-package
# 2. Initialize with template
hilp init --template package
# 3. Write your library code
# Edit lib/main.hil
# 4. Test locally
hilp test
# 5. Publish to registry
hilp publish
Package Guidelines
- Naming: Use lowercase, hyphen-separated names (e.g.,
my-sensor-driver) - Documentation: Include a README with usage examples
- Dependencies: Declare all dependencies in
hil.json - Testing: Include test scripts in
tests/ - Examples: Provide working examples in
examples/
References
Rashwan, S. (2026). HIL: A LISP-based hardware-in-the-loop operating system. https://github.com/SRashwan/hilp