×
Create a new article
Write your page title here:
We currently have 276 articles on Waste Of Space Wiki. Type your article name above or create one of the articles listed here!



    Waste Of Space Wiki

    This article is a stub

    you can help the Waste Of Space Wiki by expanding it.

    Servo is similar to Motor, but when activated by electricity, it cannot spin automatically. It can be interacted to add the angles of hinge with the configuration of "AngleStep", rotate the parts by hinge with its angle, by Polysilicon,

    FlipFlop mode Polysilicon can set its angles to 0.

    Description[edit | hide all | hide | edit source]

    "Spins objects attached to the hinge at the front when powered, to set angles. Polysilicon can be used to control its angle. Activate will increment the goal angle by the configured angle step (clockwise looking at its face) Deactivate will decrement the goal angle (counter-clockwise) FlipFlop will reset the angle to 0 Microcontrollers can also set a servo's angle with :SetAngle(Goal)"

    Misc.[edit | hide | edit source]

    Programming[edit | hide | edit source]

    Servo:SetAngle(number)

    Example[edit | hide | edit source]

    local servo = GetPartFromPort(1,"Servo") --Main Variant.
    local switch = GetPartFromPort(2,"Switch") --A switch must be connected to a servo and a PowerCell. It must be between servo and PowerCell.
    
    switch:Configure({SwitchValue=false})
    servo:SetAngle(math.rad(math.random(1,360)))
    wait(2)
    switch:Configure({SwitchValue=true})
    

    Configuration[edit | hide | edit source]

    • ServoSpeed(number) [0 - 20] - Determines the speed at which the servo is driven.
    • AngleStep(number) [-180 - 180] - Determines the change in angle when a pulse is received by Polysilicon.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.

    Recent changes

  • Axenori • 4 hours ago
  • Axenori • 22 hours ago
  • Axenori • 1 day ago
  • Axenori • 1 day ago
  • Cookies help us deliver our services. By using our services, you agree to our use of cookies.