Browse Source

Fix issue with robot not working! :D :D :D

master
Starbeamrainbowlabs 5 years ago
parent
commit
f6c558cd8e
  1. 18
      HullPixelBotDance/HullPixelBotDance.ino

18
HullPixelBotDance/HullPixelBotDance.ino

@ -5,17 +5,15 @@
////////////////////////////////////////////////
//declare variables for the motor pins
int rmotorPin1 = 0; // Blue - 28BYJ48 pin 1
int rmotorPin2 = 1; // Pink - 28BYJ48 pin 2
int rmotorPin3 = 2; // Yellow - 28BYJ48 pin 3
int rmotorPin4 = 3; // Orange - 28BYJ48 pin 4
// Red - 28BYJ48 pin 5 (VCC)
int rmotorPin1 = 16; // Purple - 28BYJ48 pin 1
int rmotorPin2 = 5; // Grey - 28BYJ48 pin 2
int rmotorPin3 = 4; // White - 28BYJ48 pin 3
int rmotorPin4 = 0; // Black - 28BYJ48 pin 4
int lmotorPin1 = 7; // Blue - 28BYJ48 pin 1
int lmotorPin2 = 6; // Pink - 28BYJ48 pin 2
int lmotorPin3 = 5; // Yellow - 28BYJ48 pin 3
int lmotorPin4 = 4; // Orange - 28BYJ48 pin 4
// Red - 28BYJ48 pin 5 (VCC)
int lmotorPin1 = 2; // Yellow - 28BYJ48 pin 1
int lmotorPin2 = 14; // Orange - 28BYJ48 pin 2
int lmotorPin3 = 12; // Red - 28BYJ48 pin 3
int lmotorPin4 = 13; // Brown - 28BYJ48 pin 4
int motorSpeed = 1200; //variable to set stepper speed

Loading…
Cancel
Save