// Only for Chrome and Safari, create a slider that pulse out a -45 to +45° angle on GPIO 9
button = webiopi().createAngleSlider(9);
content.append(button);
is it possible to add the controls for 3 servo's to the UI
--
You received this message because you are subscribed to the Google Groups "WebIOPi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webiopi+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
--
--
WebIOPi.prototype.createAngleSlider = function(gpio) { |
var slider = $('<input type="range" min="-45" max="45" step="1">'); |
slider.attr("id", "angle"+gpio); |
slider.bind("change", function() { |
w().pulseAngle(gpio, slider.val()); |
}); |
return slider; |
}
actually the server side convert the angle into a pulse duration to make a ratio over the period.
it then uses the pwmWriteRatio function to write a duty-cycle ratio between 0.0 (0%) and 1.0 (100%) be careful with your servo limit.
you will draw too much current if you go bounces.
it can damage the servo and your power.
you should use w().pulseRatio(...) Javascript function, to make your own slider calibrated for your servo.
Eric.
|
Hi Eric, this issue happen to me too! The servo shaking even the slides don't move.
thank you very much for your reply. and good continuation with the development of webiopi!! i stay tuned.
On Wed, Apr 10, 2013 at 9:40 PM, trouch <tro...@trouch.com> wrote:
there is nothing to use webiopi with RPIO.PWM out of the box.you can :wait for a later webiopi releaseormake a custom script with some macros to call RPIO.PWM functions etc...there is other discuss on the google group about pwm
On Wed, Apr 10, 2013 at 9:28 PM, Daniele Cacciabaudo <danieleca...@gmail.com> wrote:
I try to update the RPIO.PWM as recommendedin the link http://www.raspberrypi.org/phpBB3/viewtopic.php?t=36670&p=315941 (issue 42), but nothing has changed.Do you have any advice for me?
Thanks in advance
On Wed, Apr 10, 2013 at 8:13 AM, trouch <tro...@trouch.com> wrote:
see bugtracker
On Wed, Apr 10, 2013 at 12:31 AM, Daniele Cacciabaudo <danieleca...@gmail.com> wrote:
Hi Eric, this issue happen to me too! The servo shaking even the slides don't move.
--
You received this message because you are subscribed to the Google Groups "WebIOPi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webiopi+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "WebIOPi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webiopi+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "WebIOPi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webiopi+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "WebIOPi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webiopi+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to webiopi+u...@googlegroups.com.
Meanwhile , i create a custom script with some macros to call RPIO.PWM functions.it works very well!I have attached the files. I hope they can be helpful to other people.
Il giorno mercoledì 10 aprile 2013 22:37:36 UTC+2, Daniele Cacciabaudo ha scritto:
thank you very much for your reply. and good continuation with the development of webiopi!! i stay tuned.
On Wed, Apr 10, 2013 at 9:40 PM, trouch <tro...@trouch.com> wrote:
there is nothing to use webiopi with RPIO.PWM out of the box.you can :wait for a later webiopi releaseormake a custom script with some macros to call RPIO.PWM functions etc...there is other discuss on the google group about pwm
On Wed, Apr 10, 2013 at 9:28 PM, Daniele Cacciabaudo <danieleca...@gmail.com> wrote:
I try to update the RPIO.PWM as recommendedin the link http://www.raspberrypi.org/phpBB3/viewtopic.php?t=36670&p=315941 (issue 42), but nothing has changed.Do you have any advice for me?
Thanks in advance
On Wed, Apr 10, 2013 at 8:13 AM, trouch <tro...@trouch.com> wrote:
see bugtracker
On Wed, Apr 10, 2013 at 12:31 AM, Daniele Cacciabaudo <danieleca...@gmail.com> wrote:
Hi Eric, this issue happen to me too! The servo shaking even the slides don't move.
--
You received this message because you are subscribed to the Google Groups "WebIOPi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webiopi+u...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "WebIOPi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webiopi+u...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "WebIOPi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webiopi+u...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "WebIOPi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webiopi+u...@googlegroups.com.