0% found this document useful (0 votes)
818 views2 pages

POP32i Guidelines in Programming

This document contains a list of commands used in the iNEX POP32i Sumobot Kit. It provides the command name, what each command does, and examples of using the commands. Some key commands include #include<POP32.h> to include the POP32i library, FD(50) to drive motors forward at 50% power, BK(50) to drive motors backward, SL(50) and SR(50) to spin left and right, and using conditional statements like if-else with sensor readings.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0% found this document useful (0 votes)
818 views2 pages

POP32i Guidelines in Programming

This document contains a list of commands used in the iNEX POP32i Sumobot Kit. It provides the command name, what each command does, and examples of using the commands. Some key commands include #include<POP32.h> to include the POP32i library, FD(50) to drive motors forward at 50% power, BK(50) to drive motors backward, SL(50) and SR(50) to spin left and right, and using conditional statements like if-else with sensor readings.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 2

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
command to be used spins to the right.
in POP32i Controller
Board. The Power is from 0-
100%, wherein 100 is
the fastest motor speed.

FD(50); It drives all your oled.text(0,0,”Hello This displays the word


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

BK(50); It drives all your left=analogRead(PA5); This stores the value of


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

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

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

if(left==0){ A condition wherein the if(right==1){ A condition wherein the


FD(50); left sensor detects black BK(50); delay(800); right sensor detects
} color, then it drives your } white color, then it
motor forward at 50% drives your motor
backward at 50%
power for 800ms.

DATA SCIENCE AND TECHNOLOGY CORPORATION


QUEZON CITY, METRO MANILA

You might also like