hello,
i need help to make the line follower work
i use this model
this is the code but it just for serial monitor
int signalPin = 3; // connected to digital pin 3
void setup() {
pinMode(signalPin, INPUT); // initialize the digital pin as an output
Serial.begin(9600); // initialize serial communications at 9600 bps
}
void loop()
{
if(HIGH == digitalRead(signalPin))
Serial.println("black");
else Serial.println("white");
delay(1000);
}
i need to drive DC motor
line_finder.ino (351 Bytes)