Servo

  • The Servo motor can vary its geared rotor between 0 and 180 degrees

  • The motor sets the angle based on the oscillating signal it receives

  • The Python program sends the angle to set to the microcontroller

  • The microcontroller uses the commanded angle to generate the required oscillating signal sent to the motor

The first is the sensor type from the IOT_Codes class, in this case, SUBTYPE_SERVO.

The second is a list of data. For the Servo motor, the list should contain a list of one integer, the angle number in degrees, between 0 and 180 degrees.