Don't ad-block us - support your favorite websites. We have safe, unobstrusive, robotics related ads that you actually want to see - see here for more.
0 Members and 1 Guest are viewing this topic.
//detects more light on left side of robot if(sensor_left > sensor_right && (sensor_left - sensor_right) > threshold) {//go left servo_left(44); servo_right(44); LED_on(); } //detects more light on right side of robot else if(sensor_right > sensor_left && (sensor_right - sensor_left) > threshold) {//go right servo_left(25); servo_right(25); LED_off(); }
Check the voltage on the output pin. The pin should go high or low depending on the sensors.
Started by hassanjaved Software
Started by superchiku Software
Started by alpha Software
Started by notgiven Electronics