Skip to main content

Home/ Robotics/ Group items tagged photoresistor

Rss Feed Group items tagged

York Jong

PHOTORESISTOR ALGORITHMS - 0 views

  • pseudocode: read left_photoresistor read right_photoresistor if left_photoresistor detects more light than right_photoresistor then turn robot left if right_photoresistor detects more light than left_photoresistor then turn robot right if right_photoresistor detects about the same as left_photoresistor then robot goes straight loop
  • Photovore Algorithm, Improved This algorithm does the same as the original, but instead of case-based it works under a more advanced Fuzzy Logic control algorithm. Your robot will no longer just have the three modes of turn left, turn right, and go forward. Instead will have commands like 'turn left by 10 degrees' or 'turn right really fast', and with no additional lines of code! pseudocode: read left_photoresistor read right_photoresistor left_motor = (left_photoresistor - right_photoresistor) * arbitrary_constant right_motor = (right_photoresistor - left_photoresistor) * arbitrary_constant loop
  • ...1 more annotation...
  • Photovore, Split Brain Approach This algorithm works without comparison of photoresistor values. Instead, just command the right motor based on light from the right sensor, and the left motor with only data from the left sensor. You can also get interesting variations by reversing the sensors for a cross-brain algorithm. pseudocode: read left_photoresistor read right_photoresistor move left_wheel_speed = left_photoresistor * arbitrary_constant move right_wheel_speed = right_photoresistor * arbitrary_constant loop
  •  
    The photovore is a robot that chases light, and is perhaps the simplest of all sensor algorithms. If you are a beginner, this should be your first algorithm.
York Jong

Robot Room - Intermediate Robot Building Book - 0 views

  •  
    Includes all of the step-by-step instructions you need to create your own robot that can explore rooms, follow lines, or battle opponents in mini sumo. The circuits and parts in this book are presented as independent modules, so that you can build the complete robot as described or apply the modules to your own unique robot designs.
1 - 2 of 2
Showing 20 items per page