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.

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