Node-Red node für i2c IO Relais Erweiterung mit XL9535(China clone des TCA95535) Chip.
Die Relais Karte habe ich mir bei Aliexpress besorgt
und betreibe sie mit meinem VanPiCore von PeKaWay.
- Jeder IO Pin (0-15) kann als Ein- oder Ausgang verwendet werden
- Der Eingangsstatus der Eingangspins kann ausgelesen werden
- Die Ausgangspins können auf 0 oder 1 gesetzt werden.
- Busadresse 'xx' kann gesetzt werden (/dev/i2c-xx).
- Die Deviceadresse kann gesetzt werden 0x20 - 0x27 (je nach Adresspin A0 - A2).
Install with Node-Red Palette Manager or run npm command:
cd ~/.node-red
npm install @isky04/node-red-xl9535
run raspi-config to enable I2C
in nodes configuration choose correct pin number, I2C address 0x2x and Bus address(/dev/i2c-xx)
for input inject msg.payload = true/1 for high state and false/0 for low state
for output inject any value to trigger reading
- Raspberry Pi4 mit VanPi OS 2.0.0.
- node-red 4.0.1