|
1 | 1 | # LEDWallclock |
2 | 2 | very low cost Wallclock based on ESP01 and WS2812B Leds |
3 | 3 |
|
4 | | - include NeoPixelBus libary |
5 | | - |
6 | 4 | # Features: |
7 | 5 | - get current time from NTP (instead of buying a RTC-Modul) |
8 | 6 | - use free pixels as Color light (MQTT /Clock/colorRGB/set) |
9 | 7 | - use Alarm-time (MQTT /Clock/alarm/set) |
10 | 8 | - Animation-Alarm (MQTT /Clock/effect/set) |
11 | 9 |
|
12 | | - # Parts: |
13 | | - - PCB (60mm*40mm) |
14 | | - - DC DC Converter (set to 5V output) (e.g. for 60 LEDs this will be okay, for more LEDs take something bigger: |
15 | | - https://www.amazon.de/AZDelivery-LM2596S-Netzteil-Adapter-Arduino/dp/B07DP3JX2X/ref=sr_1_4?__mk_de_DE=%C3%85M%C3%85%C5%BD%C3%95%C3%91&crid=37NAW85CZCOXT&keywords=dcdc+wandler&qid=1574410661&sprefix=dc+dc%2Caps%2C169&sr=8-4) |
16 | | - - Level Shifter (e.g. https://www.amazon.de/XCSOURCE®-Logisches-Konverter-Bi-Direktional-TE291/dp/B0148BLZGE/ref=sr_1_6?__mk_de_DE=%C3%85M%C3%85%C5%BD%C3%95%C3%91&crid=3PXRUEETCBDR9&keywords=level+shifter&qid=1574411353&sprefix=level+%2Caps%2C182&sr=8-6) |
17 | | - - Resistor 470Ohm |
18 | | - - Capacitor 1000µF/6.3V |
19 | | - - DC Powersupply |
20 | | - - ESP8266-01 |
21 | | - - WS2812B LED Strip or Ring, looks best with a multiple of 60 LEDs |
| 10 | + # MQTT |
| 11 | + you will need an MQTT Broker (I tested with Mosquitto) |
| 12 | + Topics are: |
| 13 | + - ("/Uhr/colorRGB/set") |
| 14 | + - ("/Uhr/effect/set") |
| 15 | + - ("/Uhr/timer/set") |
| 16 | + - ("/Uhr/alarm/set") |
| 17 | + - ("/Uhr/TimerLimit/set") |
| 18 | + - ("/Uhr/Rotation/set") |
| 19 | + - ("/Uhr/Csecond/set") |
| 20 | + - ("/Uhr/Cminute/set") |
| 21 | + - ("/Uhr/Chour/set") |
| 22 | + - ("/Uhr/Csegment5/set") |
| 23 | + - ("/Uhr/Csegment15/set") |
| 24 | + - ("/Uhr/Ctimer/set") |
| 25 | + - ("/Uhr/NextAnimation/set") |
| 26 | + - ("/Uhr/AniTime/set") |
| 27 | + |
| 28 | +# Parts: |
| 29 | + in addition to the WS2812B strip: |
| 30 | + - ESP8266-01 (ESP-01) |
| 31 | + - ESP8266 ESP-01/01S RGB-LED-Controller-Adapter. |
| 32 | + - 5V Powersupply (or something like this https://www.amazon.de/dp/B0F9Y5LQJB?ref=ppx_yo2ov_dt_b_fed_asin_title) |
| 33 | + |
| 34 | + *when I created this Project it was nessesary to build your own PCB but now you can buy one assembled with, I will keep everything here in case someone wants to solder it himself |
| 35 | + - PCB (60mm * 40mm) |
| 36 | + - DC-DC Converter (set to 5V output) (e.g., for 60 LEDs this will be sufficient; for more LEDs, use a bigger one) |
| 37 | + https://www.amazon.de/AZDelivery-LM2596S-Netzteil-Adapter-Arduino/dp/B07DP3JX2X/ |
| 38 | + - Level Shifter (e.g., https://www.amazon.de/XCSOURCE®-Logisches-Konverter-Bi-Direktional-TE291/dp/B0148BLZGE/) |
| 39 | + - Resistor 470 Ohm |
| 40 | + - Capacitor 1000µF / 6.3V |
| 41 | + - DC Power Supply |
| 42 | + * |
| 43 | + # Libraries |
| 44 | + |
| 45 | + - FS / SPIFFS |
| 46 | + - WiFiManager |
| 47 | + - WiFi / WiFiUDP |
| 48 | + - TimeLib (Time) |
| 49 | + - ArduinoJson (v6.x) |
| 50 | + - NeoPixelBus |
| 51 | + - NeoPixelAnimator |
| 52 | + - PubSubClient |
| 53 | + |
| 54 | +|Bibliothek|SPIFFS (File System)| |
| 55 | +| ------------- |:-------------:| |
| 56 | + | Benötigt für: | Speichern von Konfigurationsdateien und Daten auf dem ESP8266. | |
| 57 | + | Installieren: |Für ESP8266: FS ist standardmäßig enthalten, SPIFFS ebenfalls.| |
| 58 | +| |Für ESP32: SPIFFS über Bibliotheksmanager installieren.| |
| 59 | + |
| 60 | +| Bibliothek| WiFiManager| |
| 61 | +| ------------- |:-------------:| |
| 62 | +|Autor: |tzapu| |
| 63 | +|Benötigt für: |WLAN-Konfiguration über Captive Portal (falls kein festes WLAN in Code).| |
| 64 | +|Arduino IDE Installation:| |
| 65 | +|Menü: |Sketch → Bibliothek einbinden → Bibliotheken verwalten → Suche: WiFiManager → Installieren| |
| 66 | +|GitHub: |https://github.com/tzapu/WiFiManager| |
| 67 | + |
| 68 | +|Bibliothek: |WiFi (inkl. WiFiUDP)| |
| 69 | +| ------------- |:-------------:| |
| 70 | +|Benötigt für: |WLAN-Verbindung und NTP (UDP) Kommunikation.| |
| 71 | +|Hinweis: |Für ESP8266 ist standardmäßig enthalten. |
| 72 | +||Für ESP32: WiFi über Bibliotheksmanager.| |
| 73 | + |
| 74 | +|Bibliothek: |Time (TimeLib)| |
| 75 | +| ------------- |:-------------:| |
| 76 | +|Autor: |Michael Margolis| |
| 77 | +|Benötigt für: |Zeitfunktionen wie now(), hour(), minute(), etc.| |
| 78 | +|Arduino IDE Installation: |Bibliotheksmanager → Suche: TimeLib → Installieren| |
| 79 | +|GitHub: https://github.com/PaulStoffregen/Time| |
| 80 | + |
| 81 | +|Bibliothek: |ArduinoJson| |
| 82 | +| ------------- |:-------------:| |
| 83 | +|Autor: |Benoit Blanchon| |
| 84 | +|Benötigt für: |JSON-Parsing für MQTT Konfigurationen.| |
| 85 | +|Hinweis: |Version 6.x empfohlen| |
| 86 | +|Arduino IDE Installation: |Bibliotheksmanager → Suche: ArduinoJson → Installieren |
| 87 | +|GitHub: |https://github.com/bblanchon/ArduinoJson| |
| 88 | + |
| 89 | +|Bibliothek: |NeoPixelBus| |
| 90 | +| ------------- |:-------------:| |
| 91 | +|Autor: |Makuna| |
| 92 | +|Benötigt für: |Steuerung der WS2812B LEDs| |
| 93 | +|Arduino IDE Installation: |Bibliotheksmanager → Suche: NeoPixelBus → Installieren| |
| 94 | +|GitHub: |https://github.com/Makuna/NeoPixelBus| |
| 95 | + |
| 96 | +|Bibliothek: |NeoPixelAnimator| |
| 97 | +| ------------- |:-------------:| |
| 98 | +|Benötigt für: |Animationen / Fade / Blending der LEDs| |
| 99 | +|Hinweis: |Wird in der Regel automatisch mit NeoPixelBus mitinstalliert, sonst separat installieren| |
| 100 | +|Arduino IDE Installation: |Bibliotheksmanager → Suche: NeoPixelAnimator → Installieren| |
| 101 | + |
| 102 | +|Bibliothek: |PubSubClient| |
| 103 | +| ------------- |:-------------:| |
| 104 | +|Autor: |Nick O'Leary| |
| 105 | +|Benötigt für: |MQTT-Kommunikation| |
| 106 | +|Arduino IDE Installation: |Bibliotheksmanager → Suche: PubSubClient → Installieren| |
| 107 | +|GitHub: |https://github.com/knolleary/pubsubclient| |
0 commit comments