1 / 6
Alice in wonderland led lamp
Zamów wydruk tego modelu
Obliczymy ostateczną cenę na podstawie wybranego pliku. Sprawdzisz ją i zaakceptujesz przed płatnością.
Zapisane na tym urządzeniu.
Led lamp with Alice in Wonderland motive
- Ocena
- 5 / 5
- Polubienia
- 187
- Pobrania
- 414
- Wydruki
- 5
- Wyświetlenia
- 3067
- Oceny
- 5
Aktualizacja u źródła:
Informacje o modelu
- Źródło
- Printables
- Kategoria
- Electronics
- Licencja
- Creative Commons — Attribution — Noncommercial
SzczegółyPliki (6)Wydruki i komentarze (Wydruki: 5) (Komentarze: 15)Remiksy (1)Kolekcje (229)Powiązane
This remix is based on https://www.thingiverse.com/thing:4686926
Led lamp with Alice in Wonderland motive. The lamp is controlled by esp8266 using esphome.
Components:
- 2x touch sensor TTP223
- 1x esp8266
- 1x led strip (WS2812)
- 4x screw M3 8mm
The wiring diagram:

Esphome configuration
substitutions:
device: alice_in_wonderland
name: Alice in Wonderlandesphome:
name: ${device}
platform: ESP8266
board: d1_mini
logger:
level: INFO
globals:
- id: effect
type: int
restore_value: false
initial_value: '0'
binary_sensor:
- platform: gpio
pin: D7
internal: true
name: Alice power
filters:
- delayed_on: 80ms
on_press:
then:
- light.toggle:
id: svetlo
- platform: gpio
pin: D6
id: collor_alice_1
internal: true
name: Alice color
filters:
- delayed_on: 80ms
on_press:
then:
- if:
condition:
- lambda: |-
return id(effect) == 0;
then:
- light.turn_on:
id: svetlo
effect: Rainbow
- if:
condition:
- lambda: |-
return id(effect) == 1;
then:
- light.turn_on:
id: svetlo
effect: Wipe
- if:
condition:
- lambda: |-
return id(effect) == 2;
then:
- light.turn_on:
id: svetlo
effect: random
- if:
condition:
- lambda: |-
return id(effect) == 3;
then:
- light.turn_on:
id: svetlo
effect: Fireworks
- if:
condition:
- lambda: |-
return id(effect) == 4;
then:
- light.turn_on:
id: svetlo
effect: Twinkle_random
- if:
condition:
- lambda: |-
return id(effect) == 5;
then:
- light.turn_on:
id: svetlo
effect: Scan
- if:
condition:
- lambda: |-
return id(effect) == 6;
then:
- light.turn_on:
id: svetlo
effect: pulse
- if:
condition:
- lambda: |-
return id(effect) < 6;
then:
- lambda: |-
id(effect) = id(effect)+1;
else:
- globals.set:
id: effect
value: '0'
- logger.log: "else"
light:
- platform: fastled_clockless
id: svetlo
chipset: WS2812
pin: D5
num_leds: 29
rgb_order: GRB
name: "Světlo"
effects:
- random:
- pulse:
- addressable_color_wipe:
name: Wipe
- addressable_scan:
name: Scan
- addressable_random_twinkle:
name: Twinkle_random
- addressable_fireworks:
name: Fireworks
use_random_color: true
- addressable_rainbow:
name: Rainbow
on_turn_off:
then:
- globals.set:
id: effect
value: '0'