Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. Servo only does 90 degrees

Servo only does 90 degrees

Scheduled Pinned Locked Moved Troubleshooting
2 Posts 1 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • CorvlC Offline
    CorvlC Offline
    Corvl
    wrote on last edited by Corvl
    #1

    Hello all,

    This night I finally made some time to build a gateway and a device to use a servo.
    The only issues I had was finding drivers to programm the nano and the uno ( I use the uno for the servo).

    Now , there is 1 issue. The servo only turns max 90 degrees. I uploaded the sketch without changing anything.
    http://www.mysensors.org/build/servo

    It should to a full 180 degrees I think ? it is a standard futaba S3001.
    The servo is good ( I checked with my RC transmitter and reciever)

    anyone has an idea how to troubleshoot?

    edit ... oh ... that's wierd... when I use the slider or open-close , it does the 90 degrees. but when I click up-down, it does full 180 degrees ...... why not with the slider??

    thanks,
    Cor

    CorvlC 1 Reply Last reply
    0
    • CorvlC Corvl

      Hello all,

      This night I finally made some time to build a gateway and a device to use a servo.
      The only issues I had was finding drivers to programm the nano and the uno ( I use the uno for the servo).

      Now , there is 1 issue. The servo only turns max 90 degrees. I uploaded the sketch without changing anything.
      http://www.mysensors.org/build/servo

      It should to a full 180 degrees I think ? it is a standard futaba S3001.
      The servo is good ( I checked with my RC transmitter and reciever)

      anyone has an idea how to troubleshoot?

      edit ... oh ... that's wierd... when I use the slider or open-close , it does the 90 degrees. but when I click up-down, it does full 180 degrees ...... why not with the slider??

      thanks,
      Cor

      CorvlC Offline
      CorvlC Offline
      Corvl
      wrote on last edited by
      #2

      Just recieved a responce via another forum.


      I ran in the same problem. I fixed it by replacing the line:

      myservo.write(SERVO_MAX + (SERVO_MIN-SERVO_MAX)/100 * val); // sets the servo position 0-180

      by the following 2 lines of code:

          val = map(val, 0, 100, 0, 180); // scale 0%-100% between 0 and 180)
          myservo.write(val);       // sets the servo position 0-180
      

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      13

      Online

      11.7k

      Users

      11.2k

      Topics

      113.0k

      Posts


      Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • MySensors
      • OpenHardware.io
      • Categories
      • Recent
      • Tags
      • Popular