EasyManuals Logo

pitsco tetrix prime User Manual

pitsco tetrix prime
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 #113 background imageLoading...
Page #113 background image
Block-Text Correlation
void setup() {
pulse.PulseBegin();
pulse.setMotorInvert(1,1);
if (pulse.readLineSensor(2) == 1) {
pulse.setMotorPowers(0,50);
if (pulse.readLineSensor(2) == 0) {
pulse.setMotorPowers(50,0);
Note: One wheel will turn and the other wheel will brake,
depending on the readings from the Line Finder Sensor.
Arduino Source Code
#include <PULSE.h>
PULSE pulse;
void setup() {
pulse.PulseBegin();
pulse.setMotorInvert(1,1);
}
void loop() {
if (pulse.readLineSensor(2) == 1) {
pulse.setMotorPowers(0,50);
pulse.setRedLED(LOW);
}
if (pulse.readLineSensor(2) == 0) {
pulse.setMotorPowers(50,0);
pulse.setRedLED(HIGH);
}
}
Building and Coding the PULSE CodeeBot 111

Other manuals for pitsco tetrix prime

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the pitsco tetrix prime and is the answer not in the manual?

pitsco tetrix prime Specifications

General IconGeneral
Brandpitsco
Modeltetrix prime
CategoryRobotics
LanguageEnglish

Related product manuals