WARNING: This page is for archival purposes only. Some links may be broken, guides may be outdated, and software extensions for App Inventor may be old, resulting in non-functioning apps. For our latest IOT materials, please click here.
The Arduino 101 Servo extension lets users remotely control servos connected toan Arduino 101.
More Links
BluetoothDevice – The BluetoothLE component with a connection to the Arduino 101.IsSupported – Tests whether the Bluetooth low energy device is broadcasting support for the service. If true,
calls to TurnOn and TurnOff should work correctly. Otherwise an error will be reported through
the Screen’s ErrorOccurred event.SetPosition – Set the rotation of a positional servo. Valid values are 0-180 degrees.
Parameters:
position (number) —
The new position of the servo in degrees. Valid values are 0-180.SetPositionMicros – Set the time per revolution in microseconds of a continuous rotation servo. For a standard
servo, 1000 is fully counterclockwise and 2000 is fully clockwise.
Parameters:
position (number) —
The new rotational speed for a continuous rotational servo.PositionWritten – The PositionWritten event is run after a successful write to the servo’s position.
The meaning of the position parameter depends on whether position update was
triggered by a SetPosition call or a
SetPositionMicros call.
Parameters:
position (number) —
The new position of the servo. If the call was positional, this will be in degrees. If the call was rotational, it will be in microseconds.