Programming the MRPi1 robot with python language .

API functions

  • Leds controls :

led() : set led on or off.

ledToggle() : toggle led.

  • Motors controls :

forward() : move the robot MRPi1 forward.

forwardC() : move the robot MRPi1 forward with control.

forward_mm() : move the robot MRPi1 forward with control (millimeter unit)

back() : move the robot MRPi1 back without control.

backC() : move the robot MRPi1 back with control.

stop() : stop the robot MRPi1.

turnRight() : turn right the robot MRPi.

turnRightC() : turn right the robot MRPi with control.

turnLeft() : turn left the robot MRPi.

turnLeftC() : turn left the robot MRPi with control.

motorRight() : control the right motor.

motorLeft() : control the left motor.

  • Temperature function :

temperature() : read the temperature sensor.

  • Battery function :

battery() : read the battery voltage.

  • Firmware function :

firmwareVersion() : return the firmware version.

  • Ground sensor function :

groundSensor() : read the ground sensors.

  • Ambiant light function :

ambiantLight() : read the ambiant light sensors.

  • Proximity sensors function :

proxSensor() : read the proximity sensors.

  • Audio controls :

playWav() : played wav a audio file.

playTxt() : played a text file.

play() : played a text.

  • Switch :

switch() : read the switch.

  • IR receiver :

irReceiver() : read the infrared receiver.

  • Accelerometer :

acceleroX() : read the X axis acceleration.

acceleroY() : read the Y axis acceleration.

acceleroZ() : read the Z axis acceleration.

  • Encoder:

encoderLeft() : read the encoder left value.

encoderRight() : read the encoder right value.