mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-15 03:52:11 +01:00
Created Controlling Motors with GPIO (markdown)
parent
db8443ac83
commit
a687b53f06
1 changed files with 10 additions and 0 deletions
10
Controlling-Motors-with-GPIO.md
Normal file
10
Controlling-Motors-with-GPIO.md
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
ESPSomfy RTS allows you to connect motors via GPIO to external relays. In this configuration you can mix and match radio based motors with hardwired motors that are controlled via relays. You can use any of the available output pins that are remaining on your ESP32 to control up or down on the motor.
|
||||
|
||||
Once configured, ESPSomfy RTS will trigger the up pin when the motor should be moving up and the down pin when the motor should be moving down. If the motor should be at rest it will turn off (pull low) both pins so the motor is not energized. In this configuration, the motors operate as if they are controlled by the radio. All functions such as the My function work just like a radio controlled motor. Even the positioning works. If you have a spare channel on a remote you can even link that and begin moving this non-radio enabled motor with your remote. How cool is that! But I didn't stop there you can even link this motor to a sun or wind sensor and all the functions work for that as well.
|
||||
|
||||
To set this up select the GPIO protocol for the Shade. When you do this, two dropdowns will appear next to the protocol dropdown. Select the pins that are used to energize the up relay and down relays then press save. Don't forget to set your timing so that the motor knows when to stop especially if you have no limit switches.
|
||||
|
||||

|
||||
|
||||
# Technical Bits
|
||||
Only one pin is pulled high at a time to ensure only either the up or down is energized. The length of time that the pin is pulled high is determined by the up or down timing. So if you have a slow up and fast down motor then you are still in business. This also works with integrated tilt motors, toggles, and dry contact types. In the case of dry contact it will pull the down pin high for on.
|
||||
Loading…
Add table
Add a link
Reference in a new issue