Pages: [1]   Go Down
Author Topic: Sharp IR sensor not working when clubbed with other code  (Read 702 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello everyone..I am making an obstacle avoidance robot which uses a sharp ir sensor to detect the distance from an object and halts if the distance is less than 5cm..The sharp ir sensor is giving correct values on serial monitor when its individual code is run, however when the code is added to the code for motor halt and start the sensor starts giving values 0.00 for all distances on the serial monitor..PLZZ help..
Logged

New Jersey
Offline Offline
Faraday Member
**
Karma: 70
Posts: 3743
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You'll need to post that problematic code to get help. Use the # button above to wrap it in code tags to make it readable
Logged

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 159
Posts: 2916
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

If you're using GP2D12 or similar device, they don't measure properly at
very short distances due to the foldover in their response characteristics
at short distances.
Logged

Pages: [1]   Go Up
Jump to: