Author Topic: PHOTORESISTORS of 50$ robot  (Read 1800 times)

0 Members and 1 Guest are viewing this topic.

Offline cyclopediatechtilonTopic starter

  • Full Member
  • ***
  • Posts: 75
  • Helpful? 0
  • THE MAN KID
PHOTORESISTORS of 50$ robot
« on: February 10, 2009, 09:42:50 AM »
I am building the 50$ robot and i finished everything exept photosensors
can anyone please tell me what the code admin gave on sensors means??
I mean to say what exactly happens between the servo and photoresistor?
--
the dude. dont mess wit me

Offline pomprocker

  • Supreme Robot
  • *****
  • Posts: 1,431
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
    • Nerdcore - Programming, Electronics, Mechanics
Re: PHOTORESISTORS of 50$ robot
« Reply #1 on: February 10, 2009, 11:02:02 AM »
Its a photovore so if one side senses light, it will go that way.

Offline frodo

  • Supreme Robot
  • *****
  • Posts: 329
  • Helpful? 2
  • BOW DOWN TO MY MIGHTY STARE!!
Re: PHOTORESISTORS of 50$ robot
« Reply #2 on: February 10, 2009, 11:52:37 AM »
you could also modify it so that it is a photophobe which means that if one side senses light, it will go in the opoosite direction.
OMG!!!! I AM SUPREME ROBOT!!!

Check out my Web

Offline MaltiK

  • Robot Overlord
  • ****
  • Posts: 300
  • Helpful? 2
Re: PHOTORESISTORS of 50$ robot
« Reply #3 on: February 10, 2009, 02:20:20 PM »
see where he typed "pseudocode"
Warranty

Offline frodo

  • Supreme Robot
  • *****
  • Posts: 329
  • Helpful? 2
  • BOW DOWN TO MY MIGHTY STARE!!
Re: PHOTORESISTORS of 50$ robot
« Reply #4 on: February 10, 2009, 04:30:24 PM »
where exactly does it (whats it?) say pseudocode, MalitK?
OMG!!!! I AM SUPREME ROBOT!!!

Check out my Web

Offline Jdog

  • Robot Overlord
  • ****
  • Posts: 259
  • Helpful? 3
Re: PHOTORESISTORS of 50$ robot
« Reply #5 on: February 10, 2009, 05:26:35 PM »
The photoresistor is sending an analogue value back to the microcontroller. The analog value is proportional to the amount of light that is hitting the photoresistor. The microcontroller then interprets this value and compares the values of the left and right sides. So if the left sensor has a greater value than the right, there is more light on the left side, and therefore you tell the robot to turn left, and vice versa. If they are equal, it goes straight.

 


data_list