Download Print this page
Parallax TSL235R Manual

Parallax TSL235R Manual

Light to frequency converter arduino demo

Advertisement

Quick Links

TSL235R Light to Frequency Converter (#604-00084) Arduino
Demo
Please note: This demo was created to support the 2013 National microMedic Contest kits,
which are no longer available.
The TSL235R Light to Frequency Converter registers the intensity of light, and outputs a
corresponding stream of pulses. The frequency of these pulses is proportional to the brightness of
the light. This demo connects the TSL235R to the Board of Education Shield for Arduino and
displays sensor values in the Serial Monitor.
At lower brightness, the sensor outputs a series of pulses at a low frequency.
Conversely the higher the brightness, the higher the frequency.
A main benefit of the TSL235R sensor is that it has a higher range of light intensities it can
respond to, compared to typical all-analog sensors. With appropriate modification of code, it can
function in very low or very high light situations.
Connections
To connect the light sensor to the Arduino Shield, attach the three leads of the device as shown
in the figure.
Copyright © Parallax Inc.
Web Site: www.parallax.com
Forums: forums.parallax.com
Sales: sales@parallax.com
Technical: support@parallax.com
Office: (916) 624-8333
Fax: (916) 624-8003
Sales: (888) 512-1024
Tech Support: (888) 997-8267
Page 1 of 3

Advertisement

loading

Summary of Contents for Parallax TSL235R

  • Page 1 Conversely the higher the brightness, the higher the frequency. • A main benefit of the TSL235R sensor is that it has a higher range of light intensities it can respond to, compared to typical all-analog sensors. With appropriate modification of code, it can function in very low or very high light situations.
  • Page 2 = millis(); temp = count; freq = temp - oldcount; avg = avg + freq; if (loopcount % 50) { Serial.println(avg / 50); avg = 0; loopcount = 0; loopcount++; oldcount = temp; Copyright © Parallax Inc. Page 2 of 3...
  • Page 3 { count++; Copyright © Parallax Inc. Page 3 of 3...

This manual is also suitable for:

604-00084