xod/common-hardware@0.30.1

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ɡ. Possible errors: — Invalid port
analog-sensor
Reads analog signal value from analog sensor. Possible errors: — Invalid port
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. Possible errors: — Invalid port
dht11-thermometer
Reads temperature and humidity from a DHT11 sensor. Also named RHT01. Possible errors: — Checksum failure — Read timeout — Initialization error — Invalid port
dht2x-thermometer
Reads temperature and humidity from a DHT21 or compatible sensor: DHT21, DHT22, DHT33, DHT44, AM2301, HM2301, AM2302, AM2303, RHT02, RHT03, RHT04, RHT05. Possible errors: — Checksum failure — Read timeout — Initialization error — Invalid port
ds18b20-thermometer
Reads temperature from a DS18B20 sensor. Expects single-drop bus setup, i.e. one thermometer on a port. Possible errors: — Invalid port — Initialization sequence error
h-bridge-dc-motor
Drives a DC motor through H-Bridge IC such as L293 or L298. Possible errors: — Invalid port
hc-sr04-ultrasonic-range
Measures distance with HC-SR04 ultrasonic range meter. Outputs infinity on no echo. Possible errors: — Invalid port — Initialization error
hc-sr04-ultrasonic-time
Measures sound roundtrip time with HC-SR04 ultrasonic range meter. Outputs infinity on no echo. Possible errors: — Invalid port — 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. Possible errors: — Invalid I2C address — Data too long to fit in transmit buffer — Received NACK on transmit of address — Received NACK on transmit of data — Other error — No bytes written. Probably due to buffer overflow — Can't read the value
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. Possible errors: — Invalid I2C address — Data too long to fit in transmit buffer — Received NACK on transmit of address — Received NACK on transmit of data — Other error — No bytes written. Probably due to buffer overflow — Can't read the value
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. Possible errors: — Invalid port
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. Possible errors: — Invalid I2C address — Data too long to fit in transmit buffer — Received NACK on transmit of address — Received NACK on transmit of data — Other error — No bytes written. Probably due to buffer overflow — Can't read the value
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. Possible errors: — Invalid I2C address — Data too long to fit in transmit buffer — Received NACK on transmit of address — Received NACK on transmit of data — Other error — No bytes written. Probably due to buffer overflow — Can't read the value
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. Possible errors: — Invalid I2C address — Data too long to fit in transmit buffer — Received NACK on transmit of address — Received NACK on transmit of data — Other error — No bytes written. Probably due to buffer overflow — Can't read the value
lps331-barometer
Reads temprature, pressure, altitude from a barometer based on LPS331 chip by STMicroelectronics. Possible errors: — Invalid I2C address — Data too long to fit in transmit buffer — Received NACK on transmit of address — Received NACK on transmit of data — Other error — No bytes written. Probably due to buffer overflow — Can't read the value
pot
Reads values from a generic potentiometer. Basically a thin wrapper around `analog-input` for a simpler learning experience. Possible errors: — Invalid port
sd-log
Appends lines of text to a file on SD card. Possible errors: — Can't open a file — Initialization failed or no SD card — Can't write data to SD card
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. Possible errors: — Invalid I2C address
thermometer-tmp36
Drives a digital thermometer based on TMP36 IC. Possible errors: — Invalid port
text-lcd-16x2
Drives a text LCD screen with HD44780 chip. Possible errors: — Invalid port