how to use the proximity sensor. and what is threshold?
Hi,
What proximity sensor, a data sheet please and what do you want to do with it and connect it too?
Thanks Tom..... ![]()
Is the proximity sensor for Zumo 32U4 robot sumo from Pololu.
The proximity sensors, like the line sensors, detect reflected IR light, but they are designed to only detect light that is turned on and off quickly at a frequency of 38 kHz.
3.5. Front sensor array (line and proximity sensors)
// When the reading on a line sensor goes below this value, we
// consider that line sensor to have detected the white border at
// the edge of the ring. This value might need to be tuned for
// different lighting conditions, surfaces, etc.
const uint16_t lineSensorThreshold = 1000;
SumoProximitySensors.ino (10.3 KB)
it is for pololu sumo robot. but it cant detect it
inizam_:
it is for pololu sumo robot. but it cant detect it
How is it wired and what code are you running ?
Hi,
Does your sketch compile and does it upload.
All your post around the place are confusing.
Can you please post a copy of your sketch, using code tags?
They are made with the </> icon in the reply Menu.
See section 7 http://forum.arduino.cc/index.php/topic,148850.0.html
Tom.... ![]()
What is your electronics, programming, arduino, hardware experience?
i don't know why it can't detect it
Zumo32U4ProximitySensors.cpp (5.41 KB)
when i put the robot on the black surface the proximity cant detect it.. at the other surface the proximity can be use.. how to make it use on the black surface
Please post your code here to avoid the need for it to be downloaded. See reply #5
Can you write a small program just to test the sensor. In the loop() function read the value the sensor gives, print it. Move the sensor over different surfaces. What values do you get ?