Professional Documents
Culture Documents
//#define bEchoPin 8 // attach pin D8 Arduino to pin Echo of HC-SR04 Back Sensor
#define fTrigPin 10 // attach pin D10 Arduino to pin Echo of HC-SR04 Front Sensor
#define fEchoPin 11 // attach pin D11 Arduino to pin Echo of HC-SR04 Front Sensor
void setup()
{
Serial.begin(9600);
pinMode(fTrigPin, OUTPUT);
pinMode(fEchoPin, INPUT);
}
/*///////////////////////////////////////////////////////////////////////////
Students need to update the void main function from here… */
delay(500);
}