HomeGenie Forum

Development => Feature request => Topic started by: artichost on November 10, 2015, 12:54:48 PM

Title: Plugin for servo
Post by: artichost on November 10, 2015, 12:54:48 PM
Im done setting upp temperature sensors in our house, Now i wuld like to connect a servo to our furnice to remotely
controll the temperature,

Are there some plugin to controll a servomotor?
Title: Re: Plugin for servo
Post by: Gene on November 10, 2015, 01:29:46 PM
Not sure what you are trying to achieve, but there is a RaspberrySharp class for this pwm driver:

http://www.adafruit.com/products/815 (http://www.adafruit.com/products/815)

and here an example of how to use it:

https://github.com/raspberry-sharp/raspberry-sharp-io/blob/master/Tests/Test.Gpio.Pca9685/Program.cs#L49 (https://github.com/raspberry-sharp/raspberry-sharp-io/blob/master/Tests/Test.Gpio.Pca9685/Program.cs#L49)

see also examples included in HG->Programs/RaspberryPi section for getting an idea of how to use RaspberrySharp in HG programs.

g.
Title: Re: Plugin for servo
Post by: Gene on November 10, 2015, 01:37:28 PM
there's also a class for the TLC59711:

https://www.adafruit.com/products/1455 (https://www.adafruit.com/products/1455)

https://github.com/raspberry-sharp/raspberry-sharp-io/blob/master/Tests/Test.Spi.TLC59711/Program.cs#L20 (https://github.com/raspberry-sharp/raspberry-sharp-io/blob/master/Tests/Test.Spi.TLC59711/Program.cs#L20)

g.
Title: Re: Plugin for servo
Post by: artichost on November 10, 2015, 06:17:05 PM
Something like this

https://www.youtube.com/watch?v=ddlDgUymbxc (https://www.youtube.com/watch?v=ddlDgUymbxc)

But via HG to set different possitions of the servo.
 :D

so i can set it in different possitions depending of how warm the house is. ..