The easiest way to get started with the Python Client Library (PCL) is to try some of the included examples. Make sure that your RoboVero is powered, USB is connected, and the device has been reset (see pitfalls). If the PCL was fetched with git:

$ cd ~/robovero/python

If the PCL was installed using the smart package manager.

$ cd /usr/share/robovero-python

Analog-to-Digital Converter

This examples measures a voltage on AD0_0.

$ python adc.py

1748

756

883

749

795

^C

keyboard interrupt: how rude!

Servo

This example requires an RC servo connected to PWM1.

$ python servo.py

New angle: 10

New angle: 100

enter an angle between 0 and 90 degrees

New angle: 20

New angle: 0

New angle: ^CTraceback (most recent call last):

File “servo.py”, line 65, in

match_value = getServoAngle()

File “servo.py”, line 22, in getServoAngle

user_angle = raw_input(“New angle: “)

KeyboardInterrupt

Update your Python Client Library to access the latest examples.

$ git pull