go away spammer

Author Topic: IR autocalibration fails!  (Read 1679 times)

0 Members and 1 Guest are viewing this topic.

Offline sirius86Topic starter

  • Jr. Member
  • **
  • Posts: 9
  • Helpful? 0
IR autocalibration fails!
« on: July 18, 2009, 03:54:05 AM »
i think my IR rangefinder with my $50robot is not autocalibrating!!! is thr anyway i can manually calibrate it??? wat changes do i hav to make to the codes in tht case??? plz help...thnx...


Offline Conscripted

  • Robot Overlord
  • ****
  • Posts: 291
  • Helpful? 10
Re: IR autocalibration fails!
« Reply #1 on: July 18, 2009, 09:55:19 PM »
Still no luck with the Ir I see.

To disable the auto calibrate you will need to modify two things in your programming.
Code: [Select]
int scan_thresh=0;//threshold value of scanning sensorYou will need to provide a value for this variable. This will determine what distance the sharp starts to pay attention to things.
Code: [Select]
//find thresholds
autocalibrate();
You will also need to comment out the call to this function.

The scan_thresh value should be between 0 and 255. I'm not sure if the numbers get larger or smaller as they get closer. Why do you think your Ir is not autocalibrating? Are you sure that it is working? Have you tried to measure the signal line with a multimeter? You should get a varying voltage as things get closer or further away.

Conscripted

 


Get Your Ad Here