From 336b11a8d45d03801f31c353ab249fbe1aaf1c95 Mon Sep 17 00:00:00 2001 From: Edgar O Silva Date: Thu, 19 Dec 2013 23:16:13 -0600 Subject: [PATCH] Added comments and safety instructions to servo example. --- examples/bbb_servo.coffee | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/examples/bbb_servo.coffee b/examples/bbb_servo.coffee index e0882d6..65df378 100644 --- a/examples/bbb_servo.coffee +++ b/examples/bbb_servo.coffee @@ -6,6 +6,21 @@ Cylon.robot work: (my) -> + # Be carefull with your servo angles or you might DAMAGE the servo! + # Cylon uses a 50hz/s (20ms period) frequency and a Duty Cycle + # of 0.5ms to 2.5ms to control the servo angle movement. + # + # This means: + # 1. 0.5ms == 0 degrees + # 2. 1.5ms == 90 degrees + # 3. 2.5ms == 180 degrees + # (It is usually safe to start with a 90 degree angle, 1.5ms duty + # cycle in most servos) + # + # Please review your servo datasheet to make sure of correct + # angle range and the Freq/MS Duty cycle it requires. + # If more servo support is needed leave us a comment, raise an + # issue or help us add more support. angle = 30 increment = 40