You are on page 1of 1

DEPED DIVISION PROVINCE OF BATANGAS

List of Commands used in iNEX POP32i Sumobot Kit


COMMAND What does it do? COMMAND What does it do?

#include<POP32.h> It is used to accept the SR(50); This will let your robot spins
command to be used in to the right.
POP32i Controller Board.
The Power is from 0-100%,
wherein 100 is the fastest
motor speed.

FD(50); It drives all your motors oled.text(0,0,”Hello This displays the word
forward at 50% power. World”); Hello World on oled screen.
oled.show( );
0% power stops the motor. * oled screen is a built-in
screen of the POP32i
The Power is from 0-100%, Controller board.
wherein 100 is the fastest
motor speed.

BK(50); It drives all your motors left=analogRead(PA5); This stores the value of
backward at 50% power. right=analogRead(Pa6); black or white color to left
and right variables.
The Power is from 0-100%, *using IR Reflector Sensor
wherein 100 is the fastest ZX-03 of Inex
motor speed.

SL(50); This will let your robot spins oled.text(0,0,”L=%d”,left); This displays the value of
to the left. oled.text(1,0,”R=%d”,right); left and right on oled
screen.
The Power is from 0-100%,
wherein 100 is the fastest *using IR Reflector Sensor
motor speed. ZX-03 of Inex

SW_OK_press( ); Waits for SW-OK button of SW1_press( ); Waits for SW1 button of
the POP32i Board to be the POP32i Board to be
pressed. pressed.

A condition wherein the


if(left==0){ A condition wherein the left if(right==1){ right sensor detects white
FD(50); sensor detects black color, BK(50); delay(800); color, then it drives your
} then it drives your motor } motor backward at 50%
forward at 50% power for 800ms.

DATA SCIENCE AND TECHNOLOGY CORPORATION


QUEZON CITY, METRO MANILA

You might also like