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

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.

主站蜘蛛池模板: 娱乐| 马公市| 鱼台县| 汾阳市| 富民县| 镇巴县| 鄂州市| 天全县| 无极县| 庄河市| 浑源县| 武邑县| 土默特右旗| 巴东县| 龙山县| 会同县| 湛江市| 辉南县| 塘沽区| 合阳县| 松潘县| 子洲县| 潢川县| 左云县| 常宁市| 屏东市| 淮滨县| 晋宁县| 伊宁市| 濮阳市| 金塔县| 永嘉县| 科尔| 台安县| 阜宁县| 连平县| 北辰区| 读书| 溧阳市| 长沙市| 姜堰市|