HP-488-00-3 Light sensor - How do I use t?

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
mr_paul_mchugh
Posts: 1
Joined: Thu Apr 22, 2010 10:50 am

HP-488-00-3 Light sensor - How do I use t?

Post by mr_paul_mchugh »

I have a board labelled HP-488-00-3 and a chip 16F88.

The board as a light dependent resistor, (light sensor) but I cannot find instructions how to use it. I have searched the Matrix Multimedia website, and read all flowcode help pages, and searched this forum.

I have switched my Jumpers to ANA, but this does not hlp.

I cannot find the instructions to read the analogue voltage at pin A0. I cannot find step-by-step instructions on how to use the light sensor. Other people have raised this issue, but I cannot understand the answers. They refer to various documents, but those documents do not contain actual solutions.

Please hep.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: HP-488-00-3 Light sensor - How do I use t?

Post by Benj »

Hello

What language are you programming in?

To read the light sensor you must switch the mode selection jumper to ANA for pin 0. The other pins can remain in the DIG position.

To sample the analogue voltage you need to control the ADCON registers in your program (see your PIC device datasheet for help with the ADC registers)

Post Reply