Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Do we have a light sensor?


  • Please log in to reply
4 replies to this topic

#1 Franva

Franva

    New Member

  • Members
  • Pip
  • 1 posts

Posted 21 October 2012 - 11:48 PM

Dear all, I am new to here, please help me. I need to control a light sensor so when strength of illumination reaches a certain level, it will automatically open a sunroof on a green house. But I haven't found any light sensor on the Netduino platform. So could someone help me about where to buy a light sensor and how to integrate it onto the Netduino platform? Many thanks

#2 carb

carb

    Advanced Member

  • Members
  • PipPipPip
  • 352 posts
  • LocationCrystal River, Florida

Posted 22 October 2012 - 01:14 AM

Dear all,

I am new to here, please help me.
I need to control a light sensor so when strength of illumination reaches a certain level, it will automatically open a sunroof on a green house.

But I haven't found any light sensor on the Netduino platform.
So could someone help me about where to buy a light sensor and how to integrate it onto the Netduino platform?

Many thanks

Franva,

Welcome to the Netduino Forum.

There are a couple of good sources, Adafruit.com or Sparkfun.com.

Which one you pick may depend on your code skill (SPI interface or simple photocell in a voltage divider network).

Another posibility would to use a temperature sensor also to determine if the roof vent should be opened.

Hope this helps,
Chuck

#3 baxter

baxter

    Advanced Member

  • Members
  • PipPipPip
  • 415 posts

Posted 22 October 2012 - 02:54 AM

Hi Franva, The TAOS TSL235R is very easy to interface by measuring frequency output to get uW/cm^2 (irradiance). Frequency is directly proportional to irradiance. The TSL230R has has programmable sensitivity select and frequency scaling. There is some C# code for the TSL230R here, http://www.tinyclr.c...share/entry/252 and here is some really good information, http://jethomson.wor...l230r-articles/ You just need to convert irradiance to illuminance, http://en.wikipedia.org/wiki/Lux Baxter

#4 Gutworks

Gutworks

    Advanced Member

  • Members
  • PipPipPip
  • 363 posts
  • LocationOttawa, Ontario

Posted 22 October 2012 - 12:37 PM

Hi Franva,

Welcome to the Netduino community! I have the Adafruit TSL2561 digital luminosity sensor from Nwazet, and have been loving it. It allows you to separately measure infrared, full-spectrum or human-visible light. I looked over the math from the Adafruit tutorial and it was way over my head to create a Netduino driver for this module, which I suspect would be similar for other light sensors. Luckily Nwazet has done all the heavy lifting and created a .Net MF driver to be used with their Netduino Go DAQ module. I haven't tried it yet, but I'm sure with a few modifications you would be able to use the driver on the Netduino Plus.

Cheers,
Steve

#5 Dan Olson

Dan Olson

    New Member

  • Members
  • Pip
  • 3 posts

Posted 10 December 2012 - 12:11 AM

Hi Franva,
The TAOS TSL235R is very easy to interface by measuring frequency output to get uW/cm^2 (irradiance). Frequency is directly proportional to irradiance. The TSL230R has has programmable sensitivity select and frequency scaling. There is some C# code for the TSL230R here,
http://www.tinyclr.c...share/entry/252
Baxter


I'm actually a big fan of the TAOS sensors due to their very-linear response and high dynamic range. It can be difficult to interface the TAOS (now AMS) light-to-frequency converters directly to a Netduino because the TAOS sensors can output very high frequencies (1MHz or so) depending on the model. There are several ways to get around this problem.

1. Buy a light to voltage sensor. I've used the TSL257T in a PIC project (should work the same in a Netduino, though). You can find a few other options here http://www.ams.com/e...ght-to-Voltage. It combines the linearity of the TAOS sensors with the ease of using one of the built-in analog-to-digital converters (ADC). The downside is that your resolution (number of different brightness levels) is limited by the resolution of your ADC. Netduinos come with built-in 10-bit ACD, so you get 1,023 brightness levels.

2. Use one of the TAOS sensors that has a frequency divider (TSL230RD for example). With 100-fold reduction in output frequency, you would have a 10 kHz signal in bright light that would be fairly easy to measure, but you would have a 0.001 Hz signal in dark light, which means you might have to wait for 100 seconds (possibly longer depending on whether you're planning to measure pulse period or frequency). If you don't need to take fast measurements, but you do need to be able to distinguish between subtly different light levels, this is a good option. You get about 1,000,000 different brightness levels.

3. Use one of the TAOS sensors with built-in digital signal conversion (http://www.adafruit.com/products/439). This gives you the full resolution of the device (1,000,000 brightness levels), but the digital signal interface is more complicated. Adafruit has a good tutorial posted on the order page, though.

Hope this helps you decide which light sensor to use.

-Dan




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.