INFO ESPHome 2024.9.2
INFO Reading configuration /config/esphome/vent-ctl.yaml...
Failed config
stepper.uln2003: [source /config/esphome/vent-ctl.yaml:76]
platform: uln2003
id: ventCtl_move_stepper
Cannot resolve pin name 'ventCtl G0' for board esp01_1m.
pin_a: ventCtl G0
...
So my questions are:
is it not possible to use port expander GPIO ports for the stepper component?
or can only native GPIO ports (like GPIO0 and GPIO2 for the ESP01). So that I will have to use another ESP familiy variant with more native GPIO ports?
While I’m not sure if you can make it work with Esp-01, at least you have to have I2C and mcp23017 components on your yaml.
My honest opinion is to use another Esp board with sufficient number of Gpios.
The immediate cause of the error is your failure to correctly specify the I/O pins for the stepper. You should not be defining those switches, just put the full pin schema in the stepper config, something like this:
While I would second the advice to use a better board for the task, it might just work with what you have though the max speed of 250 steps/s might not be achievable.
Hi Karosm,
Thank you for your reply. I do have I2C and mcp23017 components configured. But omitted them for brevity.
And I agree that using a more capable ESP board would make my day easier. But I am just interested to see if an ESP01 and a port expander could be used with the step motor
Hi Clyde,
Thank you for your reply. Yes, this was exactly what I was looking for. And after modifying my stepper component pin configuration as per your example, controlling the step motor through home assistant worked like a charm