I want make a pet feeder with D1 mini and 28byj-48 5V. I have tried 28byj-48 with ULN2003 and D1 mini, but motor haven’t enough torque to rotate a cornflakes dispenser.
Now I think convert 28byj-48 in Bipolar and use with L298N driver with D1 mini. Please guide me how can I setup in ESPHome. which components I need in ESPHome?
Here is what i want to do -
esphome:
name: test
esp8266:
board: d1_mini
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
password: "XXXXXXXXXXX"
wifi:
ssid: "XXXXX"
password: "XXXXX"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Test Fallback Hotspot"
password: "XXXXX"
captive_portal:
output:
- platform: gpio
id: motor_forward_pin
pin: GPIO5
- platform: gpio
id: motor_reverse_pin
pin: GPIO4
fan:
- platform: hbridge
id: test
name: "test"
pin_a: motor_forward_pin
pin_b: motor_reverse_pin
# enable_pin: motor_enable
decay_mode: slow # slow decay mode (braking) or fast decay (coasting).
Error
INFO Reading configuration /config/esphome/test.yaml...
Failed config
fan.hbridge: [source /config/esphome/test.yaml:37]
platform: hbridge
id: test
name: test
ID 'motor_forward_pin' of type gpio::GPIOBinaryOutput doesn't inherit from output::FloatOutput. Please double check your ID is pointing to the correct value.
pin_a: motor_forward_pin [source /config/esphome/test.yaml:40]
ID 'motor_reverse_pin' of type gpio::GPIOBinaryOutput doesn't inherit from output::FloatOutput. Please double check your ID is pointing to the correct value.
pin_b: motor_reverse_pin [source /config/esphome/test.yaml:41]
decay_mode: SLOW
disabled_by_default: False
restore_mode: RESTORE_DEFAULT_OFF
speed_count: 100