Shop OBEX P1 Docs P2 Docs Learn Events
Photocell question — Parallax Forums

Photocell question

ArchiverArchiver Posts: 46,084
edited 2000-10-18 12:16 in General Discussion
Hello,

I would like to utilize a photocell and have it
activate a relay when light is upon the photocell.
Could anyone please help me with the code? I am using
a BS2.

Thanks in advance.

See ya,

Todd

__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf! It's FREE.
http://im.yahoo.com/

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-10-18 12:16
    In a message dated 10/17/00 10:00:04 PM Central Daylight Time,
    contacttodd@y... writes:

    > I would like to utilize a photocell and have it activate a relay when light
    > is upon the photocell. Could anyone please help me with the code?
    > I am using a BS2.

    You can read the photocell with RCTIME and make a decision from there. When
    you first get started, use DEBUG to display your photocell reading.
Sign In or Register to comment.