xoseperez / espurna

Home automation firmware for ESP8266-based devices
http://tinkerman.cat
GNU General Public License v3.0
2.99k stars 636 forks source link

Add Servo support #2242

Open zafrirron opened 4 years ago

zafrirron commented 4 years ago

Nice addition to Espurna is mechanical servo (pwm step motors) support... I've implemented Servo support (as a 3'rd party plugin to begin with),

  1. Using Relay switches to set predefined positions
  2. Using Button to move in predefined steps
  3. Saving manual position, recall saved positions
  4. API integration (terminal/rest) to set and get Servo position
  5. Using set/get settings to save last position . . and all other espurna goodies...

If this is an interesting use case, this could easily become a new "relay" type, to support multiple Servos as native espurna thing...

Using: Servo library core esp8266 waveform generator

mcspr commented 4 years ago

If this works for you, sure.

I have only minor questions: