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

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.

主站蜘蛛池模板: 曲阳县| 武清区| 重庆市| 敦煌市| 南和县| 西青区| 溧水县| 靖远县| 仪陇县| 成安县| 镇安县| 敦煌市| 宁明县| 清苑县| 奉节县| 玉树县| 宜黄县| 舞钢市| 靖宇县| 建德市| 铁岭市| 镶黄旗| 芒康县| 阿拉善盟| 兰溪市| 衡阳市| 罗田县| 玛多县| 嫩江县| 平塘县| 五大连池市| 石景山区| 鹤庆县| 黄骅市| 加查县| 区。| 江安县| 辽源市| 宁南县| 六枝特区| 丹东市|