Skip to main content

Community Packages

The HIL community has contributed 133 packages across 22 categories, covering sensors, actuators, displays, IoT, robotics, and more (Rashwan, 2026).

Package Statistics​

Sensors (21 packages)​

PackageDescription
lm35-tempLM35 temperature sensor driver
dht11-humidityDHT11 humidity and temperature sensor
dht22-humidityDHT22 precision humidity sensor
bmp280-pressureBMP280 barometric pressure sensor
ultrasonic-hc04HC-SR04 ultrasonic distance sensor
pir-motionPIR motion detection sensor
ldr-lightLight-dependent resistor driver
soil-moistureSoil moisture sensor for agriculture
flame-sensorFlame detection sensor
gas-mq2MQ-2 gas/smoke sensor
mpu6050-accelMPU6050 accelerometer/gyroscope
hall-effectHall effect magnetic sensor
water-levelWater level sensor
vibration-sensorSW-420 vibration detection
touch-capacitiveCapacitive touch sensor
rfid-rc522MFRC522 RFID reader
max30102-oximeterMAX30102 pulse oximeter
aht20-tempAHT20 temperature/humidity sensor
tsl2591-lightTSL2591 high-dynamic-range light sensor
hcsr04-arrayMulti-sensor ultrasonic array
bme680-envBME680 environmental sensor

Communication (11 packages)​

PackageDescription
uart-softSoftware serial UART
i2c-coreI2C bus management
spi-driverSPI bus communication
nrf24l01NRF24L01 wireless transceiver
hc05-bluetoothHC-05 Bluetooth module driver
esp01-wifiESP8266 WiFi module driver
lora-sx1276SX1276 LoRa transceiver
ir-necNEC infrared remote protocol
ws2812-driverWS2812 RGB LED driver
can-mcp2515MCP2515 CAN bus controller
websocket-clientWebSocket client for IoT

Control Systems (7 packages)​

PackageDescription
pid-controllerPID control loop implementation
state-machineFinite state machine framework
moving-averageMoving average filter
exponential-filterEMA filter for sensor smoothing
pid-auto-tuneAutomatic PID tuning
cascade-pidCascaded PID control
fuzzy-controlFuzzy 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​

  1. Naming: Use lowercase, hyphen-separated names (e.g., my-sensor-driver)
  2. Documentation: Include a README with usage examples
  3. Dependencies: Declare all dependencies in hil.json
  4. Testing: Include test scripts in tests/
  5. 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