官术网_书友最值得收藏!

Relays

To control the status lights and the non-permanent power outlets in the room, we use a number of relays, in this case four relays:

The idea here is that the power status relay is connected to a switch that controls the mains power to outlets that are not powered when the club status is off. The status lights indicate the current club status. The next section provides the details on the implementation of this concept.

To simplify the design, we will use a ready-made relay board containing four relays, which are driven by an NXP PCAL9535A I/O port chip (GPIO expander) connected to the I2C bus of the Raspberry Pi SBC:

This particular board is the Seeed Studio Raspberry Pi Relay Board v1.0: http://wiki.seeedstudio.com/Raspberry_Pi_Relay_Board_v1.0/. It offers the four relays we require, allowing us to switch lights and switches up to 30 VDC (direct current) or 250 VAC (alternating current). This allows one to connect practically any type of lighting and further relays and kin.

The connection with the SBC is made by stacking the relay board on top of the SBC using its GPIO header, which allows us to add further boards on top of the relay board. This allows us to add the debounce functionality to the system, as indicated in the wiring plan diagram.

主站蜘蛛池模板: 慈利县| 延津县| 肃北| 清原| 舞钢市| 卓尼县| 建宁县| 新建县| 赣州市| 淅川县| 治县。| 宾阳县| 高尔夫| 突泉县| 平度市| 彭山县| 汕尾市| 华池县| 米脂县| 旺苍县| 南阳市| 姜堰市| 孟连| 广河县| 西林县| 镶黄旗| 永德县| 福州市| 定西市| 广州市| 五大连池市| 浦江县| 威海市| 台北县| 高密市| 宝鸡市| 德安县| 广安市| 玛纳斯县| 温泉县| 永和县|