I’m stuck with a very big problem. Namely, I ordered a 28BYJ-48 Stepper Motor and ULN2003 Stepper Motor Driver, this should actually switch the switch of my heater control… I plugged the ULN2003 into a D1 Mini…
here the yaml
esphome:
name: heizungssteuerung
esp8266:
board: d1_mini
mqtt:
broker: 192.168.178.77
username: broker
password: MQTT_PASSWORD
ota:
password: "OTA_PASSWORD"
wifi:
ssid: "kleine geile Nonne"
password: "SSID_PASSWORD"
fast_connect: true
ap:
ssid: "Heizungssteuerung"
password: "AP_PASSWORD"
web_server:
port: 80
logger:
api:
encryption:
key: "API_KEY"
services:
- service: control_stepper
variables:
target: int
then:
- stepper.set_target:
id: my_stepper
target: !lambda 'return target;'
captive_portal:
stepper:
- platform: uln2003
id: my_stepper
sleep_when_done: False
pin_a: D5
pin_b: D6
pin_c: D7
pin_d: D8
max_speed: 250 steps/s
step_mode: FULL_STEP
acceleration: inf
deceleration: inf
in the configuration.yaml
input_number:
stepper_control:
name: Stepper Control
initial: 0
min: -1000
max: 1000
step: 1
mode: slider
and last in the automations.yaml alias:
- alias: Write stepper Value to ESP
trigger:
- platform: state
entity_id: input_number.stepper_control
action:
- service: esphome.stepper_control_stepper
data_template:
my_stepper: '{{ trigger.to_state.state | int }}'
no matter what I do, the ULN does not appear under the entities. I thought the D1mini was damaged and fortunately I had a second one there… Even there, it doesn’t show up. Neither in MQTT broker, nor in ESPHome. Only the status of the D1 Mini and firmware. It should actually appear at least as a device that is not connected if the connections are wrong I’m getting desperate, I don’t know what to do anymore. It can’t be the ULN2003, the motor was successfully controlled with a demo sketch flashed with Arduino IDE