Không có sản phẩm trong giỏ hàng!
Thanks for reading this tutorial. If you have any technical inquiry, please post at Cytron Technical Forum.
Besides using Telegram message to do display on dot matrix, we also can control things, such as relay modules, to on and off. To do that, we need to compare the message received and assign what task to do. In this video tutorial, we will share on how to control electrical appliances using Telegram messages and Raspberry Pi.
Before that, you may need to refer following tutorial first:
This video will show you on how to control electrical appliances through Telegram message using Raspberry Pi.
Untuk versi bahasa Melayu, sila rujuk video dibawah.
Item used in the video.
Wiring connection table.
Maker pHAT | Relay 2 Channels | AC Socket | AC Plug |
5V | VCC | ||
GND | GND | ||
13 | IN1 | ||
19 | IN2 | ||
COM1 | Live | ||
COM2 | Live | ||
NO1 | Live1 | ||
NO2 | Live2 | ||
Neutral1 | Neutral | ||
Neutral2 | Neutral |
This is the sample code used in the video. Anyway it will be updated from time to time.
[gist https://gist.github.com/IdrisCytron/d9306158907b1513d4fa3db63bc9a5bb/]
References:
Thanks for reading this tutorial. If you have any technical inquiry, please post at Cytron Technical Forum.