Hi,
I am new to both HA and esphome, but needs to have HA to activate 2 motors driving a cover for my robot.
I can program it in arduino ide, but i do not know how to do it in yaml.
the process I need to do:
send a “on” to esp8266 to activate - here the cover i closed and limit switch 1 is activated.
when it is “on” 2 motors should move the cover to open - where it hits limit switch 2. - here it should stay until off.
when I send “off” to esp8266 - then the motors should close the cover and stop when it hits the limit switch 1
Can anyone help me understanding how yaml controls inputs and outputs vs arduino IDE?
Pin to IN1 - I understand, it is located beside the power input on L298N
Pin to IN2 - I understand, it is located beside the power input on L298N
Pin to EAN - What is this and where is it located?
Google image “thing X pinout” usually gets you a labelled diagram pretty quick.
The EN’s control motor speed
“The ENA pin controls Motor A and the ENB pin controls Motor B. When these pins are HIGH, power is output to the motor. By using PWM, you are turning power on and off very quickly to adjust the speed of the motor. The longer the PWM duty cycle is, the faster the motor will turn.”