Building and testing a sensor to determine number of degrees to which a window is open.

Authors Avatar

Alex Furber 12HW Sensing Project 20-02-02

Building and testing a sensor to determine number of degrees to which a window is open

INTRODUCTION

        

When making use of a greenhouse to grow plants out of season or on a large scale for commercial reasons, the temperature within the green house must be carefully regulated, in order to ensure that the plants are under the optimum growing conditions. With the windows shut permanently, the temperature may become too high, and the windows need therefore to be opened. This will allow the temperature to drop back to the correct level.

        Different numbers of degrees to which the window is open have different cooling effects. For example, if the window is open by 50 degrees, then there is probably a more rapid cooling effect upon the greenhouse than if the window was 10 degrees open. Thus, it is important to know how many degrees the window on a greenhouse is open. It could however be very time consuming for people to check the greenhouse(s) manually, or particularly problematic if the temperature should become a problem during unsociable hours.

        It would be extremely useful, then, if a sensor could be attached to the windows of a greenhouse, and a reading sent back to a control room as to how open the windows are. Someone could then either use a motor attached to the window to alter the setting, or adjust the window manually. My sensor could be used in conjunction with a number of other sensors, e.g. temperature sensors and moisture sensors, to send all the required reading back to a control room, thus allowing the control of the climate within in the greenhouse to be totally automated.

         

        

Above: a typical greenhouse

Alex Furber 12HW Sensing Project 20-02-02

PLAN

        There a number of ways in which a sensor could be built to measure the angle at which a window is open. In the following section I will be exploring two possible versions of the sensor.

Firstly, it would be possible to use a sliding variable resistor, whereby the resistance of two halves of a track altar the slider is moved, as shown below:        

        By attaching the above to a greenhouse window in such a way that as the window is opened, the slider is dragged along, the changing resistance would give a variety of voltage reading that could then be calibrated with the number of degrees to which the window is open. There are two possible circuits that this component could be placed in.

CIRCUIT 1:

 

        As the slider in the above circuit moves upwards (i.e. the window opens), the resistance of the bottom half of the variable resistor increases and the resistance of the top half increases. As a result the bottom half of the circuit draws more voltage than the top half. This gives a different voltage reading each time the slider is moved along a bit more. The voltage from the battery is split between two resistances in series proportionally to the size of their resistance. The top and bottom half of the variable resistor provides these two resistances in series and the voltage is split between the two according to the relationship:

V1                    R1

=

V2                     R2

N.B  V1 is the voltage received by the resistance R1, and V2 is the voltage received by the resistance R2

 

        The second circuit in which I could place the variable resistor involves using the variable resistor along side a fixed resistance, as a potential divider.

CIRCUIT 2:

 

        In the above circuit, the voltage is shared between the fixed resistor and the variable resistor according to the same relationship that I stated for the previous circuit. As the window is opened, the slider makes the track in the variable resistor longer, thus increasing it’s resistance. Consequently, the voltage that the variable resistor receives increases. This gives me a range of voltages for various angles. The two can then be calibrated. The rotary potentiometer could be attached to the window in the following way:

Alternatively to the variable resistor, I could use a rotary potentiometer. This works in essentially the same way as the variable resistor, however it has a circular track instead of a straight track. The resistance of the track can then be altered by altering the length of the track. This involves moving a slider along a track by rotating an arm.

                                                                             

                                          Above: a rotary potentiometer

 

The potentiometer could be placed in the same circuits as the slider, and have the same effect. I will first consider circuit 1:

Join now!

 

In the above circuit the rotary potentiometer could be used to give various readings at different angles, by the changing length of the track.

As the blue arrow moves downward in relation to the page, the resistance of the red section, which is having the voltage across it measured increases. As a result it draws more voltage than the green half. The further the arrow moves down, i.e. the more the window opens, the greater the resistance of the red half of the potentiometer, thus the greater the voltage it ...

This is a preview of the whole essay