Skip to content

LED strip effects package controlled via Telegram using ESP8266

License

Notifications You must be signed in to change notification settings

astrosander/LEDeffects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

073eaff ยท Jan 31, 2024

History

51 Commits
Aug 9, 2023
Nov 5, 2023
Dec 10, 2023
Dec 13, 2023
Jan 31, 2024
Jun 27, 2023

Repository files navigation

LEDeffects




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.

Demonstration


Example of work on a ceiling-mounted led strip

๐Ÿ“œWiki

  ๐Ÿ”ธ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
  
  

First steps๐Ÿพ

๐Ÿ”ธ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

How to create a bot in Telegram

  1. You must have telegram
  2. Go to @BotFather
  3. Send /newbot
  4. Then, send name You woud like to choose(Ex.: AstroLamp)
  5. Send send username(Ex.: astrolamp_bot)
  6. All right, You just created Your own bot!

How to get my Telegram ID

  1. You must have telegram
  2. Go to @IDBot
  3. Send /getid
  4. Copy Your id!

Plans for future๐Ÿ“œ

๐Ÿ”นAdd more effects โž•

๐Ÿ”นCreate video tutorial ๐Ÿ“บ

๐Ÿ”นOptimise programm โŒจ