Mô Đun Rơ Le 8ch I2c Sda Scl 8channel 5v I2c Pcf8574t Arduino


₫ 368.500

Sản phẩm Mô Đun Rơ Le 8ch I2c Sda Scl 8channel 5v I2c Pcf8574t Arduino đang được mở bán với mức giá siêu tốt khi mua online, giao hàng online trên toàn quốc với chi phí tiết kiệm nhất,0 đã được bán ra kể từ lúc chào bán lần cuối cùng.Trên đây là số liệu về sản phẩm chúng tôi thống kê và gửi đến bạn, hi vọng với những gợi ý ở trên giúp bạn mua sắm tốt hơn tại Pricespy Việt Nam

The 5v relay module with i2c control requires only 2 pin sda and scl data to control 8 relay.

It can be connected up to 128-256 channel relay by changing the i2c address of each i2c module.

Pcf8574t waveshare controller
Work voltage: 5v dc (min 1a)
Interface: I2c (sda scl)
Arduino library: Pcf8574.h
Take a library folder that pcf8574 only (cut to root folder library arduino)

Coding example:

#Inclusive
#Including "pcf8574.h"
Pcf8574 rjrelay;
#Define on 0 / / low active relay
#Define off 1.
#Define relay 8 / 8 channel number relay

Setup void () (
Serial.begin (115200);
Rjrelay.begin (0x20);
For (int i = 0; i < 8; i + +) (
Rjrelay.pinmode (i, output);
}
}
Void loop () (
For (int i = 0; i < 8; i + +) (
Rjrelay.digitalwrite (i, on);
Delay (300);)

For (int i = 0; i < 8; i + +) (
Rjrelay.digitalwrite (i, off);
Delay (300);)

For (int i = 0; i < 8; i + +) (
Delay (300);)

For (int a = 0; a < 5; a + +) (
For (int i = 0; i < 9; i + +) (
If (i > 0) (rjrelay.digitalwrite (i, on);
Rjrelay.digitalwrite (i-1, off);)
Else (rjrelay.digitalwrite (i, on);)
Delay (100);)
) diskussions and cheaper prices can directly chat admin yes😊😊

Not to mention any records we 'll send random as ready.no cancer no complaint no return.believe = a

Sản Phẩm Liên Quan

HOT

Bikini hàng Âu

₫ 400.000
HOT
HOT

Bikini Thái

₫ 300.000
HOT

Bikini OKISS- QCXK

₫ 400.000
HOT

Bikini xuất Âu

₫ 300.000