Exploring the Robot


Allow us to introduce you to the robot you will be using to learn programming. From displaying messages to navigating mazes to making music, there is a lot that this little guy can do.

The idea is to learn the foundations and then let your imagination take over. From these foundations, you can make your robot do almost anything.

Try selecting one of the boxes to the left to begin learning about your robot.

Sonar Sensor


Click here for detailed tutorial

The sonar sensor is positioned on the front of the robot and resembles a pair of bug-like eyes. In order for it to work properly, it must be hooked up to one of the four digital IO ports numbered 3 - 6.


The sensor works by emitting a brief sound pulse then listening for the returning echo. The values read by the sensor are the amount of time it takes for the echo to return to the sensor. The range reads between 115 and 18500, standing for the amount of time in microseconds that it takes for the sound to bounce back.



Imports needed:

					import com.ridgesoft.intellibrain.IntelliBrain;

					import com.ridgesoft.intellibrain.IntelliBrainDigitalIO;

				
How to call sensor:

			        IntelliBrainDigitalIO ping = IntelliBrain.getDigitalIO(3);

			 

			        ping.enablePulseMeasurement(true);

			 

			        ping.pulse(20);

			        Thread.sleep(50);

			 

			        distance = ping.readPulseDuration();

				

Infrared (IR) Sensors


Click here for detailed tutorial

These IR sensors are should be set on the front two corners of the robot. We normally use these robots to determine distance away from oncoming objects.



Imports needed:

					import com.ridgesoft.intellibrain.IntelliBrain;

					import com.ridgesoft.robotics.AnalogInput;

				
How to call sensor:

			        AnalogInput leftIR = Intellibrain.getAnalogInput(1);

			        AnalogInput rightIR = Intellibrain.getAnalogInput(2);

			        

			        int resultLeft = leftIR.sample();

			        int resultRight = rightIR.sample();

				

Motors


Click here for detailed tutorial

The motors are pretty self explanatory; they make the robot drive forward or backwards depending on the input you provide the ".setPower" method.



Going forward max input for speed is 16 and going reverse is -16.



Imports needed:

					import com.ridgesoft.intellibrain.IntelliBrain;

					import com.ridgesoft.robotics.Motor;

					import com.ridgesoft.robotics.ContinuousRotationServo;

				
How to call sensor:

			        Motor leftMotor = new ContinuousRotationServo(IntelliBrain.getServo(1), false, 10);

        			Motor rightMotor = new ContinuousRotationServo(IntelliBrain.getServo(2), true, 10);

        			

        			leftMotor.setPower(6);

        			rightMotor.setPower(6);

				

LCD Display


Click here for detailed tutorial

The most basic form of output will be the LCD display. You can use this to print messages or to help debuging. If you have a problem figuring out the values the sensors are returning, try displaying them on the LCD display.



Remember that there is no word wrapping. You have to explicity tell the robot what line to use in the ".print" method. You can only use 16 characters per line.



Imports needed:

					import com.ridgesoft.intellibrain.IntelliBrain;

					import com.ridgesoft.io.Display;

				
How to call sensor:

			        Display display = IntelliBrain.getLcdDisplay();

			        

            		display.print(0, "First Line"); // 0 is the first row

            		display.print(1, "Second Line"); // 1 is the second row

				

Operation Controls
(Power switch, On/Off Buttons)


These controls are what start and stop execution of a program.



Before you can even load a program into the robot make sure the black switch, located to the left of the start and stop buttons is flipped foward (on).



Thumbwheel


Click here for detailed tutorial

The thumbwheel is a fun input to adjust things like the frequency of sound or the speed of the motors.



It returns a range between 0 - 1023, depending on the thumbwheel's current position.



Imports needed:

					import com.ridgesoft.intellibrain.IntelliBrain;

					import com.ridgesoft.robotics.AnalogInput;

				
How to call sensor:

			        AnalogInput thumbwheel = IntelliBrain.getThumbWheel ();

            		

            		int result = thumbwheel.sample();

				
 
 
 
 
 
 
Zoomed Out
Board Details