We've got an Arduino KY-032 obstacle avoidance sensor, and have spent a decent time searching and researching to find a detailed data sheet/manual to figure out how it works; but there aren't any detailed information on the module.
One of the few instructions here says that the potentiometers on the chip are used to adjust the distance, but I've tried all different settings and the maximum I can get is 10 centimeters. I've tried different surfaces with different reflectivity levels, but it doesn't really differ much.
Any idea how to increase the distance on this? Anything to do with the enable jumper?
Update: Here's the related code to the obstacle detection:
void loop() {
// check the network connection once every 10 seconds:
val = digitalRead (buttonpin) ;// digital interface will be assigned a value of 3 to read val
if(full==1 && val==LOW) {
Serial.print("Bin Full");
delay(5000);
} else {
if (val == LOW) {
// When the obstacle avoidance sensor detects a signal, LED flashes
digitalWrite (Led, HIGH);
delay(2000);
if(digitalRead(buttonpin)==LOW) {
delay(2000);
if(digitalRead(buttonpin)==LOW) {
full = 1;
}
}
count++;
//printCurrentNet();
sendData();
} else {
digitalWrite (Led, LOW);
if(full==1) {
count = 0;
}
full = 0;
}
}
}