@@ -1,25 +1,7 @@
#ifndef little_robot_constants_h
#define little_robot_constants_h

const unsigned long defaultStartSpeedDelay = 50000L;
const unsigned long pauseSpeedDelay = 50000L;
const unsigned long highPhaseDelay = 50;
const unsigned long delayBeforeTurnOff = 500;

const unsigned long slowSpeedDelay = 7000;
const unsigned long fastSpeedDelay = 200;
const unsigned long mediumSpeedDelay = 3000;
const unsigned long ultraSlowSpeedDelay = 100000L;

const float wheelDiameter = 10.5;
const float distanceBetweenWheels = 15.3; //valoare interioara
const int wheelRevolutionSteps = 200;

const float encoderRevolutionSteps = 24;

const int sensorScannerLeft = 130;
const int sensorScannerMiddle = 90;
const int sensorScannerRight = 65;
const unsigned long sensorScannerToggleInterval = 400;

#endif
32 pins.h
@@ -1,31 +1,29 @@
#ifndef pins_little_robot_h
#define pins_little_robot_h

const int ColourSensorPin1 = 999; // analog
const int ColourSensorPin2 = 1199; // analog
const int ColourSensorPin3 = 1200; // analog

const int frontLeftSensorPin = 28;
const int frontRightSensorPin = 14;
const int backLeftSensorPin = 22; //19
const int backRightSensorPin = 24; //19
const int backLowSensorPin = 15; //19

const int frontMidSensorPin = 14;
const int frontRightSensorPin = 22; //19

const int buttonTestPin = 40;
const int startButtonPin = 40;

const int leftMotorFw = 11;
const int rightMotorFw = 12;
const int leftMotorBw = 10;
const int rightMotorBw = 6;
const int leftMotorFw = 4;
const int rightMotorFw = 6;
const int leftMotorBw = 5;
const int rightMotorBw = 7;

const int colorRedPin = 51;
const int colorYellowPin = 53;

const int encoderStepPin = 40;
const int encoderDirectionPin = 41;
const int leftEncoderStepPin = 40;
const int leftEncoderDirectionPin = 41;

const int rightEncoderStepPin = 40;
const int rightEncoderDirectionPin = 41;

const int sensorScannerPin = 999;
const int servoPin1 = 0;
const int servoPin2 = 1;
const int servoPin3 = 2;

#endif