Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Sylvia Else Newsgroups: aus.electronics,sci.electronics.design Subject: Re: Direct sunlight sensor Date: Sat, 31 Oct 2015 14:12:51 +1100 Lines: 74 Message-ID: References: <56340972$0$1596$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net K7fFeVOz2qx9amUX+1TwhwrBP7BOQ5wT5MP6axVBH2sRab6x1K Cancel-Lock: sha1:8ZR8SyDqErpN99+yqrmiQwiLYIU= User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <56340972$0$1596$c3e8da3$5496439d@news.astraweb.com> Xref: csiph.com aus.electronics:30338 sci.electronics.design:383321 On 31/10/2015 11:20 AM, Adrian Jansen wrote: > On 31/10/2015 2:10 AM, Jim Thompson wrote: >> On Fri, 30 Oct 2015 17:30:16 +1100, Sylvia Else >> wrote: >> >>> On 30/10/2015 2:19 PM, pedro wrote: >>>> On Thu, 29 Oct 2015 19:25:59 +1100, Sylvia Else >>>> wrote: >>>> >>>>> Adding sci.electronics.design, which got left out by mistake. >>>>> >>>>> On 29/10/2015 5:41 PM, Sylvia Else wrote: >>>>> >>>>>> I want to make something to detect whether there's direct sunlight >>>>>> shining on particular place. I thought the obvious approach would >>>>>> be to >>>>>> use a pair of light dependent resistors (LDR) - one located where it >>>>>> will definitely be in direct sunlight (when the sun is shining) and >>>>>> another that is at the location to be tested. Compare the >>>>>> resistances, >>>>>> and the result should be clear enough. >>>> >>>> Are you attempting to discriminate between "direct sunlight" and >>>> diffues sunlight i.e. some cloud obscuration? If so I suspect the >>>> LDR's may disappoint you. >>>> >>> >>> More between direct sunlight, and shadowed. >>> >>> The project is to control a pivot-arm awning so that it extends only as >>> far as is required to prevent direct sunlight entering a window. The >>> window is almost exactly west facing, so the required extension varies >>> from none at all during half the day, to fully extended towards sunset. >>> >>> I'm intending to put one sensor just below the window. The awning will >>> then extend until the sensor is in shadow, plus a bit. As the sun >>> moves[*] across the sky, the sensor will again be exposed, at which time >>> the awning will be extended further. >>> >>> Eventually the other sensor will indicate that there's no longer any >>> direct sunlight anyway, and the awning will be retracted. >>> >>> Sylvia. >>> >> [snip] >> >> Interesting idea. My home office windows face west and the HOA rules >> prohibit awnings. But I have interior (louvered) shutters that would >> benefit from such an automatic control. >> >> ...Jim Thompson >> > For a fixed installation like this, you dont really need a sensor at > all. The suns location is completely calculable, all you need is the > date/time and location. > > Get the time from a local clock or net server, set the location, and you > can do the geometry from the sun azimuth and altitude to get the angles > for control. A practical difficulty is knowing by how much the awning has been extended. Typical commercially available awning motors don't provide an output indicating how much the barrel has turned, and even if they did, the awning material stretches over time. One would really need to implement something to measure the angle of the pivot arm. The light sensor approach seems simpler. Random image of a pivot arm awning: Sylvia.