Shop OBEX P1 Docs P2 Docs Learn Events
Triggering a motor at a certain sensor reading — Parallax Forums

Triggering a motor at a certain sensor reading

prestonaltreeprestonaltree Posts: 6
edited 2008-07-27 02:03 in BASIC Stamp
Hey, I'm a rookie and was just wondering if anybody could help me with the programming for a light triggered servo. When the photoresistor reaches a number, let's just say 55, it causes the motor to spin. I cannot figure out how to use the if then else etc. commands to make this work in the programming... HELP

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-07-27 01:08
    When you're a rookie, the best way to learn is to work through the introductory tutorial manuals. You should download copies of "What's a Microcontroller?" and "Robotics with the BoeBot" which has a chapter on the use of photoresistors. Go to the main Parallax webpage, select the Resources tab, then click Downloads, then Stamps in Class Downloads. All of these have schematics and sample code.

    You should also look at the Nuts and Volts Columns and the other tutorials. From the Resources tab, choose Nuts and Volts Columns.
  • prestonaltreeprestonaltree Posts: 6
    edited 2008-07-27 02:03
    Thanks! I have just finished reading "What's a Microcontroller" and will look into the boe-bot book
Sign In or Register to comment.