I am using a stepper motor, create a twinkle effect for my fiber optic star ceiling, I need to set the stepper to run indefinitely until I stop it. Can you help please.
My Current config:
esphome:
name: ceilinglights
esp32:
board: nodemcu-32s
framework:
type: arduino
Enable logging
logger:
Enable Home Assistant API
api:
services:
- service: control_stepper
variables:
target: int
then:
- stepper.set_target:
id: twinkle
target: !lambda ‘return target;’
ota:
password: “6fb9fbfdfcbfcbc5cc9542cea7ecb924”
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: “ssid”
password: “password”
captive_portal:
stepper:
- platform: uln2003
id: twinkle
pin_a: GPIO15
pin_b: GPIO16
pin_c: GPIO17
pin_d: GPIO18
max_speed: 50 steps/s
sleep_when_done: true
light:
- platform: rgbw
name: “Star Lights”
red: red_output_1
green: green_output_1
blue: blue_output_1
white: white_output_1 - platform: rgb
name: “Accent RGB”
red: red_output_2
green: green_output_2
blue: blue_output_2
output:
- platform: ledc
id: red_output_1
pin: GPIO12
max_power: 50%
frequency: 1000HZ - platform: ledc
id: green_output_1
pin: GPIO14
max_power: 50%
frequency: 1000HZ - platform: ledc
id: blue_output_1
pin: GPIO27
max_power: 50%
frequency: 1000HZ - platform: ledc
id: white_output_1
pin: GPIO26
max_power: 50%
frequency: 1000HZ - platform: ledc
id: red_output_2
pin: GPIO33
max_power: 75%
frequency: 1000HZ - platform: ledc
id: green_output_2
pin: GPIO32
max_power: 75%
frequency: 1000HZ - platform: ledc
id: blue_output_2
pin: GPIO25
max_power: 75%
frequency: 1000HZ
1 post - 1 participant