0% found this document useful (0 votes)
536 views1 page

POP32i Guidelines in Programming

This document provides a list of commands used in the iNEX POP32i Sumobot Kit along with descriptions of what each command does. Some key commands include #include<POP32.h> which accepts commands for the POP32i Controller Board, FD(50) which drives motors forward at 50% power, BK(50) which drives motors backward, and SL(50)/SR(50) which spin the robot left or right. Other commands display text on the oled screen, read sensor values, and include conditional statements to control motors depending on sensor input. The document was produced by the DEPED Division Province of Batangas Data Science and Technology Corporation in Quezon City, Metro Manila.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
536 views1 page

POP32i Guidelines in Programming

This document provides a list of commands used in the iNEX POP32i Sumobot Kit along with descriptions of what each command does. Some key commands include #include<POP32.h> which accepts commands for the POP32i Controller Board, FD(50) which drives motors forward at 50% power, BK(50) which drives motors backward, and SL(50)/SR(50) which spin the robot left or right. Other commands display text on the oled screen, read sensor values, and include conditional statements to control motors depending on sensor input. The document was produced by the DEPED Division Province of Batangas Data Science and Technology Corporation in Quezon City, Metro Manila.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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