EmbDev.net

Forum: ARM programming with GCC/GNU tools ARM Code for color sensor


Author: Neethu P (Guest)
Posted on:

Rate this post
0 useful
not useful
Sir,
I am using TCS3200 color sensor. In the data sheet, it is specified that 
the output of the mentioned sensor is frequency in the form of square 
pulses. How can I find out the frequency value from that output? Anyone 
have the code for TCS3200 color sensor with ARM LPC1769? Please help.

Author: M.K. B. (mkbit)
Posted on:

Rate this post
0 useful
not useful
You could use a pin which generates an interrupt on each rising edge of 
the color sensors signal. When you measure the time between the 
interrupts you can calculate the frequency.

Author: aaaB (Guest)
Posted on:

Rate this post
0 useful
not useful
Neethu P wrote:
> Sir,
> I am using TCS3200 color sensor. In the data sheet, it is specified that
> the output of the mentioned sensor is frequency in the form of square
> pulses. How can I find out the frequency value from that output? Anyone
> have the code for TCS3200 color sensor with ARM LPC1769? Please help.

You can connect the pin from the sensor that generates this waveform and 
connect it to an Oscilloscope or Logic Analyzer.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.