Author Topic: $50 robot photoresister question  (Read 3674 times)

0 Members and 1 Guest are viewing this topic.

Offline pomprockerTopic starter

  • Supreme Robot
  • *****
  • Posts: 1,431
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
    • Nerdcore - Programming, Electronics, Mechanics
$50 robot photoresister question
« on: March 10, 2008, 01:19:57 AM »
I just used the photoresisters that were listed in the parts like which were 1.62k I believe. I didn't actually do the math that was in the photoresister tutorial. Now when I put the robot in the kitchen where there is light everywhere it just keeps going in circles, it does not go straight. Is this normal?

Offline goatfish

  • Full Member
  • ***
  • Posts: 114
  • Helpful? 1
Re: $50 robot photoresister question
« Reply #1 on: March 10, 2008, 02:14:38 AM »
i am really sorry ,but i just laugeh when i read thsi,god-dammit now thats gonna happen to me lol.maybe the photoresistors dont thave the same resistance and makes the robot confused ;D

Offline pomprockerTopic starter

  • Supreme Robot
  • *****
  • Posts: 1,431
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
    • Nerdcore - Programming, Electronics, Mechanics
Re: $50 robot photoresister question
« Reply #2 on: March 10, 2008, 02:50:11 AM »
I built this guy out of the cardboard box that the digikey parts came in  :)

I went with the KISS principle for the first time robot here. I will improve on it and upgrade it as I am able to.

This was a lot of fun  ;D


[img width= height=]http://a996.ac-images.myspacecdn.com/images01/103/l_9ac22904b74f220c84435dae92bdf333.jpg[/img]

Offline pomprockerTopic starter

  • Supreme Robot
  • *****
  • Posts: 1,431
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
    • Nerdcore - Programming, Electronics, Mechanics
Re: $50 robot photoresister question
« Reply #3 on: March 11, 2008, 02:02:47 AM »
anyone have an answer for my first post here?

Offline airman00

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 3,650
  • Helpful? 21
  • narobo.com
    • Narobo.com - Mechatronics and related
Re: $50 robot photoresister question
« Reply #4 on: March 12, 2008, 06:49:11 AM »
hmmm

the only thing I could think is wrong is that the photoresistors are not the same values


maybe you should play around with the fudge factor , or the balancing factor.

What the fudge factor is is the amount of accpetable difference. Like say one photoresistor has a value of 12 and the other ahs 22 under the same light.

So a fudge factor of + - 10 will say if the values are within 10 from each other , they are considered equal , so 12 and 22 are considered the same. 
Check out the Roboduino, Arduino-compatible board!


Link: http://curiousinventor.com/kits/roboduino

www.Narobo.com

Offline superchiku

  • Supreme Robot
  • *****
  • Posts: 952
  • Helpful? 5
  • cooll
Re: $50 robot photoresister question
« Reply #5 on: March 12, 2008, 08:46:00 AM »
take a look at the fudge factor and the 50$ robot's resistance value was based on the admins's calculated values

urs may be different so u should have calculated it...

also photoresistor may be cheap but certainly not the best try to use IR or other sensors like sonar etc on ur bot
JAYDEEP ...

IT AND ROBOTICS ENGINEER

"IN THE END IT DOESNT EVEN MATTER"

Offline pomprockerTopic starter

  • Supreme Robot
  • *****
  • Posts: 1,431
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
    • Nerdcore - Programming, Electronics, Mechanics
Re: $50 robot photoresister question
« Reply #6 on: March 12, 2008, 10:58:53 AM »
I haven't learned how to implement IR or Sonar yet  :'(

Offline airman00

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 3,650
  • Helpful? 21
  • narobo.com
    • Narobo.com - Mechatronics and related
Re: $50 robot photoresister question
« Reply #7 on: March 12, 2008, 05:24:59 PM »
@superchiku

He is using  photoresistors to detect light levels not for obstacle avoidance


@pomprocker

did my advice work?
Check out the Roboduino, Arduino-compatible board!


Link: http://curiousinventor.com/kits/roboduino

www.Narobo.com

Offline pomprockerTopic starter

  • Supreme Robot
  • *****
  • Posts: 1,431
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
    • Nerdcore - Programming, Electronics, Mechanics
Re: $50 robot photoresister question
« Reply #8 on: March 12, 2008, 05:30:55 PM »
haven't gotten a chance to play with it yet, im pretty busy during the week.

I don't know how to play with the "fudge factor" anyway.

Offline ed1380

  • Supreme Robot
  • *****
  • Posts: 1,478
  • Helpful? 3
Re: $50 robot photoresister question
« Reply #9 on: March 12, 2008, 08:12:01 PM »
Ive had the same problem. for a long time i thought my servo was mesed up while i was modding it, cause i resoldered the pot for sore resistors.

how would we go about changing thing fudge factor. what is it called in the source code?
Problems making the $50 robot circuit board?
click here. http://www.societyofrobots.com/robotforum/index.php?topic=3292.msg25198#msg25198

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: $50 robot photoresister question
« Reply #10 on: March 15, 2008, 06:33:53 PM »
So lets say the left photoresistor reads 10 points lower than the right even in the same exact light.

This means the left pr needs some fudging . . .

Code: [Select]
int fudge_factor=10;//left pr is whack, 10 points too low
left_photoresistor = adc(0) + fudge_factor;//read value and fudge it up
eat_fudge();//mmmm, robots like to eat fudge!

Offline airman00

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 3,650
  • Helpful? 21
  • narobo.com
    • Narobo.com - Mechatronics and related
Re: $50 robot photoresister question
« Reply #11 on: March 15, 2008, 08:19:38 PM »
So lets say the left photoresistor reads 10 points lower than the right even in the same exact light.

This means the left pr needs some fudging . . .

Code: [Select]
int fudge_factor=10;//left pr is whack, 10 points too low
left_photoresistor = adc(0) + fudge_factor;//read value and fudge it up
eat_fudge();//mmmm, robots like to eat fudge!

I actually made up my own word for fudging it. I call it sensor biasing. 
Check out the Roboduino, Arduino-compatible board!


Link: http://curiousinventor.com/kits/roboduino

www.Narobo.com

 


data_list