Smart home lighting controlled remotely through Telegram
This repository comprises a collection of effects designed for an addressable LED strip based on ESP8266, with remote control capabilities through a Telegram bot. The following sections will outline the instructions for managing the LED strip and the steps to establish its connection for operation.
Example of work on a ceiling-mounted led strip
๐ธList of modes from /mode: '\mode 2' smooth change of colours for the entire ribbon ๐ '\mode 3' a spinning rainbow ๐ช๏ธ๐ '\mode 4' random colour change ๐ฒ๐จ '\mode 5' running LED ๐โโ๏ธ๐ก '\mode 6' a running train of LEDs ๐๐ก '\mode 7' red and blue rotating ๐ด๐ต๐ '\mode 8' rotating half red and half blue ๐ด๐ต๐ '\mode 9' random strobe light โก๐ฒ '\mode 10' single colour pulsation ๐ฅ๐จ '\mode 11' colour changing pulsation ๐ฅ๐ '\mode 12' smooth vertical brightness change (for ring) ๐๐ผ๐ฝ '\mode 13' red LED madness ๐ด๐ก๐ฅ '\mode 14' random colour madness ๐จ๐ฅ '\mode 15' white blue red running in a circle ๐โโ๏ธ๐ตโช๐ด๐ '\mode 16' radiation icon pulsating โข๏ธ๐ฅ '\mode 17' red LED running in a circle ๐โโ๐ด๐ '\mode 18' white and blue gradient โช๐ต๐ '\mode 19' same thing's going on โญ๏ธ๐ '\mode 20' red flashes going down ๐ดโฌ๏ธ๐ฅ '\mode 21' crescent moon ๐ '\mode 22' flame effect ๐ฅ๐ฅ๐ฅ '\mode 23' rainbow in the vertical plane ๐๐ผ๐ฝ '\mode 24' Pac-Man ๐ฎ๐ '\mode 25' random flash madness ๐ฅ๐ฅ๐ฅ '\mode 26' police flasher ๐จ๐ต๐ด '\mode 27' RGB propeller ๐๐ด๐ข๐ต '\mode 28' random red flashes in the vertical plane. ๐ฅ๐ฒ '\mode 29' greens running around randomly ๐ข๐โโ๏ธ๐ '\mode 30' greens running around randomly ๐ข๐โโ๏ธ๐ '\mode 31' something's broken ๐ง '\mode 32' something's broken ๐ง '\mode 33' smooth colour fills ๐จ๐ '\mode 34' running LEDs ๐โโ๏ธ๐ก '\mode 35' line lights ๐ฆ '\mode 36' running circle sectors ๐ด๐ข๐ต๐ '\mode 37' very smooth rotating rainbows ๐๐ '\mode 38' random multi-coloured lights ๐จ๐ฒ '\mode 39' running lights ๐โโ๏ธ๐ก '\mode 40' random flashes of white ๐ฅโช '\mode 41' random flashes of white on a white background ๐ฅโช๐ณ '\mode 42' running every 3 times ๐โโ๏ธ๐โฐ '\mode 43' running every 3 rainbows ๐โโ๏ธ๐๐โฐ '\mode 44' strobe lights โก๐ก๐ฅ '\mode 45' bouncing balls ๐ '\mode 46' colored bouncing balls ๐จ๐โฌ๏ธ '\mode 888' long demo ๐๐ฎ '\mode 889' short demo ๐๐ฎ '\mode 999' pause โธ๏ธ ๐ธList of colors: โซ๏ธ'/black' โช๏ธ'/white' ๐ด'/red' ๐ข'/green' ๐ต'/blue' ๐ '/orange' ๐ฃ'/lavender' ๐๏ธ'/pxl #0000ff 25' - drawing pixel-to-pixel(25 pixel has a #0000ff colour) ๐จ'/all #0000ff' - to set the same color(all pixels have a #0000ff colour) ๐ธSettings: '/help' - to get commands '/mode' - to set specific mode(e.g. "/mode 3") '/restart' - to restart ESP '/bright 255' - to set brightness(all pixels have a 255 brightness) '/get_mode' - to get current mode
๐ธAssemble according to the above scheme
๐ธDownload repository
๐ธUnarchive
๐ธOpen ./libraries and copy all ones to the %ArduinoFolder%/libraries
๐ธOpen ./MAIN/MAIN.ino (Arduino IDE 1.8.9
- recommended)
๐ธEdit 8-11
lines:
8 - Enter Your WiFi login 9 - Enter Your WiFi password 10 - Enter Bot's Token, which You got with @BotFather 11 - Enter Telegram ID, which You got with @IDBot
๐ธIn boards manager select ESP8266 with 3.1.2
version
๐ธUpload code to Your board
๐ธGo to Your bot and send
/start
๐ธTo turn on/off press and hold Flash button
- You must have telegram
- Go to @BotFather
- Send
/newbot
- Then, send name You woud like to choose(Ex.:
AstroLamp
) - Send send username(Ex.:
astrolamp_bot
) - All right, You just created Your own bot!
- You must have telegram
- Go to @IDBot
- Send
/getid
- Copy Your id!
๐นAdd more effects โ
๐นCreate video tutorial ๐บ
๐นOptimise programm โจ