xod/common-hardware

License: AGPL-3.0

Hardware drivers for popular and simple peripherals
NodeDescription
adxl335-accelerometer
Reads acceleration from an ADXL335 based sensor. Note that concrete ADXL335 instances differ from each other and their output should be adjusted for precise mesearument. By default the values are coarse although reasonable enough to determine shaking and approximate orientation. For an ideally factored accelerometer the outputs are in range ±3ɡ.
dht11-thermometer
Reads temperature and humidity from a DHT11 sensor. Also named RHT01.
dht2x-thermometer
Reads temperature and humidity from a DHT21 or compatible sensor: DHT21, DHT22, DHT33, DHT44, AM2301, HM2301, AM2302, AM2303, RHT02, RHT03, RHT04, RHT05.
button
Reads a generic button or another mechanical switch. It is expected that the button is normally high, i.e. it is pulled up with a resistor. The node provides signal debounce with 20 ms settle delay.
analog-sensor
Reads analog signal value from analog sensor
ds18b20-thermometer
Reads temperature from a DS18B20 sensor. Expects single-drop bus setup, i.e. one thermometer on a port.
gp2y0a02-range-meter
Reads Sharp infrared range meter GP2Y0A02YK0F (the one with 20…150 cm range).
gp2y0a41-range-meter
Reads Sharp infrared range meter GP2Y0A41SK0F (the one with 4…30 cm range).
h-bridge-dc-motor
Drives a DC motor through H-Bridge IC such as L293 or L298.
gp2y0a21-range-meter
Reads Sharp infrared range meter GP2Y0A21YK0F (the one with 10…80 cm range).
hc-sr04-ultrasonic-range
Measures distance with HC-SR04 ultrasonic range meter. Keeps output intact if a ping fails (no echo or wrong connection).
l3g4200-gyro
Reads angular velocity from a gyroscope based on L3G4200 IC by STMicroelectronics. It is expected the gyro is connected to the first hardware I²C bus.
hc-sr04-ultrasonic-time
Measures sound roundtrip time with HC-SR04 ultrasonic range meter. Keeps output intact if a ping fails (no echo or wrong connection).
led
Drives a generic single color dimmable LED. The conversion between luminance and LED power is biased so that change in brightness on range 0…1 is percepted more or less uniformly by a human.
lis331dlh-accelerometer
Reads acceleration from an accelerometer based on LIS331DLH IC by STMicroelectronics. It is expected the accelerometer is connected to the first hardware I²C bus.
lis331hh-accelerometer
Reads acceleration from an accelerometer based on LIS331HH IC by STMicroelectronics. It is expected the accelerometer is connected to the first hardware I²C bus.
l3gd20h-gyro
Reads angular velocity from a gyroscope based on L3GD20H IC by STMicroelectronics. It is expected the gyro is connected to the first hardware I²C bus.
lis3dh-accelerometer
Reads acceleration from an accelerometer based on LIS3DH IC by STMicroelectronics. It is expected the accelerometer is connected to the first hardware I²C bus.
lps331-barometer
Reads temprature, pressure, altitude from a barometer based on LPS331 chip by STMicroelectronics.
pot
Reads values from a generic potentiometer. Basically a thin wrapper around `analog-input` for a simpler learning experience.
sd-log
Appends lines of text to a file on SD card
servo
Drives a standard hobby servo
text-lcd-16x2
Drives a text LCD screen with HD44780 chip
text-lcd-16x2-i2c
Drives a text LCD screen with a PCF8574 or PCA8574 I²C expander module. Usually have a value in range 0x20-0x27 or 0x38-0x3F. Consult LCD/expander documentation to know the exact value.
thermometer-tmp36
Drives a digital thermometer based on TMP36 IC