Shop OBEX P1 Docs P2 Docs Learn Events
A question about Basic Stamp 2 Homework board — Parallax Forums

A question about Basic Stamp 2 Homework board

magnetomagneto Posts: 7
edited 2008-07-18 22:58 in BASIC Stamp
I've a question about Basic Stamp 2 Homework board ,If I want to take a reading from a photoresistor ,is it possible to display the reading as digits ? Or I have to use ADC chip·to achieve that?

Regards,

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-07-18 22:48
    The RCTIME statement is normally used to measure resistance and there are exercises in the "What's a Microcontroller?" tutorial on this. The result can be displayed in the Stamp Editor's Debug Window as numbers using the DEBUG statement with a DEC formatter (see the Basic Stamp Manual for details on DEBUG, DEC, and RCTIME). It's also possible to use the RCTIME statement to read small voltages. Also see www.emesystems.com and select the app-notes link. You'll see a section on the RCTIME statement and using it to measure voltages.
  • magnetomagneto Posts: 7
    edited 2008-07-18 22:58
    Thank you very much [noparse]:)[/noparse]
Sign In or Register to comment.