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 #120 background imageLoading...
Page #120 background image
Block-Text Correlation
void setup() {
pulse.PulseBegin();
pulse.setMotorInvert(1,1);
if (pulse.readSonicSensorCM(3) > 25) {
} else {
Drive forward
Brake
Go backward
Brake
Turn
Arduino Source Code
#include <PULSE.h>
PULSE pulse;
void setup() {
pulse.PulseBegin();
pulse.setMotorInvert(1,1);
}
void loop() {
if (pulse.readSonicSensorCM(3) > 25) {
pulse.setMotorPowers(35,35);
pulse.setRedLED(LOW);
pulse.setGreenLED(HIGH);
} else {
pulse.setGreenLED(LOW);
pulse.setRedLED(HIGH);
pulse.setMotorPowers(0,0);
delay(500);
pulse.setMotorPowers(-35,-35);
delay(1000);
pulse.setMotorPowers(0,0);
delay(500);
pulse.setMotorPowers(35,-35);
delay(500);
}
}
118 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