Block-Text Correlation
void setup() {
pulse.PulseBegin();
pulse.setMotorInvert(1,1);
void loop() {
pulse.setMotorPowers(50,50);
delay(3000);
pulse.PulseEnd();
Note: Use the pulse Invert Motor block to program
the two motors to go in opposite directions.
Arduino Source Code
#include <PULSE.h>
PULSE pulse;
void setup() {
pulse.PulseBegin();
pulse.setMotorInvert(1,1);
}
void loop() {
pulse.setMotorPowers(50,50);
delay(3000);
pulse.PulseEnd();
}
Real-World Link
Trains are machines that can go only forward or backward with the motors they
use. The motors are powered by thrust in either a forward or backward direction. A
train could never directly turn around a corner. That’s why all train tracks are curved
instead of having 90-degree turns.
Careers: railroad worker, railroad conductor, locomotive engineer
STEM Connections
• Science
Ĕ Kinetic energy
Ĕ Speed
• Technology
Ĕ Direct drive
Ĕ DC motors
• Engineering
Ĕ Steering mechanism
Ĕ Programming
• Math
Ĕ Rotation
Ĕ Wheel circumference
Building and Coding the PULSE CodeeBot 91