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ɡ.
adxl335-convert
Utility node. Converts raw ADC value of an ADXL335 accelerometer to approximate acceleration in ɡ (standard gravity) units.
analog-sensor
Reads analog signal value from analog sensor
dht11-thermometer
Reads temperature and humidity from a DHT11 sensor. Also named RHT01.
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.
dht2x-pack
Utility. Packs raw data from a DHT21 or higher thermometer into meaningful humidity and temperature.
dht2x-thermometer
Reads temperature and humidity from a DHT21 or compatible sensor: DHT21, DHT22, DHT33, DHT44, AM2301, HM2301, AM2302, AM2303, RHT02, RHT03, RHT04, RHT05.
dhtxx-read-raw
Utility. Reads raw data bytes from a DHTxx thermometer with one-wire interface.
ds1307-rtc-read
Reads a date/time value from a DS1307, DS1337, DS1338, or DS3231real-time clock IC
ds1307-rtc-write
Writes a new date/time value to a DS1307, DS1337, DS1338, or DS3231 real-time clock IC. Useful as a throw-away node to setup the RTC once after you install a backup battery.
ds18b20-thermometer
Reads temperature from a DS18B20 sensor. Expects single-drop bus setup, i.e. one thermometer on a port.
gp2y0a-linearize
Transforms raw analog values of a Sharp infrared range meter to distance units.
gp2y0a02-range-meter
Reads Sharp infrared range meter GP2Y0A02YK0F (the one with 20…150 cm range).
gp2y0a21-range-meter
Reads Sharp infrared range meter GP2Y0A21YK0F (the one with 10…80 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.
hc-sr04-ultrasonic-range
Measures distance with HC-SR04 ultrasonic range meter. Keeps output intact if a ping fails (no echo or wrong connection).
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).
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.
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.
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.
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.
pot
Reads values from a generic potentiometer. Basically a thin wrapper around `analog-input` for a simpler learning experience.
lps331-barometer
Reads temprature, pressure, altitude from a barometer based on LPS331 chip by STMicroelectronics.
sd-log
Appends lines of text to a file on SD card
servo
Drives a standard hobby servo
st-barometer-read-pressure-rawNo description
st-barometer-read-tmp-rawNo description
st-barometer-write-registerNo description
st-imu-generic-sensor
Utility node. Reads raw X/Y/Z data from a STMicroelectronics IMU sensor.
st-imu-normalize-acc
Converts raw axis register value of an ST IMU to a value in g units
st-imu-normalize-va
Converts raw axis register value of an ST IMU to an angular velocity expressed in radians per second
st-imu-read-xyzNo description
st-imu-round-sensitivity
Rounds up a desired sensitivity of an ST IMU sensor `SEN` to one of [S0, S1, S2, S3]
st-imu-write-registerNo description
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