EasyManuals Logo

pitsco TETRIX PULSE User Manual

pitsco TETRIX PULSE
146 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #124 background imageLoading...
Page #124 background image
Block-Text Correlation
Drive forward
Brake
Go backward
Turn arm to 0 position
Turn arm to 90 position
Arduino Source Code
#include <PULSE.h>
PULSE pulse;
void setup() {
pulse.PulseBegin();
pulse.setMotorInvert(1,1);
pulse.setServoSpeed(1,50);
}
void loop() {
if (pulse.readLineSensor(2) == 1) {
pulse.setMotorPowers(30,0);
pulse.setRedLED(HIGH);
} else {
pulse.setMotorPowers(0,30);
pulse.setRedLED(LOW);
while (pulse.readSonicSensorCM(3) < 25) {
pulse.setGreenLED(HIGH);
pulse.setMotorPowers(0,0);
pulse.setServoPosition(1,0);
}
pulse.setGreenLED(LOW);
pulse.setServoPosition(1,90);
}
}
122 Building and Coding the PULSE CodeeBot

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the pitsco TETRIX PULSE and is the answer not in the manual?

pitsco TETRIX PULSE Specifications

General IconGeneral
Brandpitsco
ModelTETRIX PULSE
CategoryRobotics
LanguageEnglish

Related product manuals