Shop OBEX P1 Docs P2 Docs Learn Events
help with a program — Parallax Forums

help with a program

Buggy87Buggy87 Posts: 2
edited 2009-07-11 05:03 in Robotics
Hi im new here and I just started learing basic
im have trouble with a photoresistors sensor program
i built a solar panel i figured i try putting it to a servo
motor and a photoresistors senor so the panel could
follow the light and stop when the sun goes down
also is there any to have the boe-bot shut down at a given time

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-07-11 03:47
    1) The Stamps (and the BoeBot) do not have any timekeeping capability. There is the ability to wait for periods of time (PAUSE / NAP / SLEEP), but this timekeeping is not accurate enough to do something at a particular time. You can easily attach a real time clock chip like the DS1302. Some of the "Nuts and Volts Columns" articles deal with this. Go to the main Parallax webpage and click on the "Resources" tab and you'll see a list of links. One of them is for the Nuts and Volts Columns index which you can browse. I think #33 and #34 deal with the DS1302.

    2) Develop your project in pieces. Get the photoresistors working the way you want. Good references include the Basic Stamp Syntax and Reference Manual and the What's a Microcontroller? tutorial. Separately get the servos to move the way you want, then combine the two pieces.

    3) When asking a question, try to make it as specific as possible. Also include a schematic of your setup and a copy of your code (as an attachment to a message, not cut and pasted into a message ... that often loses useful formatting and sometimes the forum software gobbles some items in square brackets.
  • Buggy87Buggy87 Posts: 2
    edited 2009-07-11 05:03
    kk thx Mike I'll try that also I'll attach a schematic later today after i get out of work
Sign In or Register to comment.