Introduction: HOME I/O- Controlling Lights Using Brightness Sensor

Picture of HOME I/O- Controlling Lights Using Brightness Sensor

In this project we will see how to control the garden, pool and porche light using brightness sensor.

Step 1: Understanding the Elements Used

Objective
Control The Garden, Porche & Pool Light as per the Day Light luminance

Connect I/O. Download Software here
Programming Platform: FBD (Inbuilt Connect I/O)
Environment: Home I/O Download Software here

Starting Conditions: Lights are on manual mode

I/O Signals

  • Inputs: Brightness Sensor (Analog)

Output:

  • Light Garden (Analog)
  • Light Pool (Analog)
  • Light Porche 1 (Analog)

Connect I/O Functions to be used

  • Numerical Source
  • Float
  • Subtract

Step 2: Connect I/O Solution

Picture of Connect I/O Solution

Step 3: Description of Function Used: Bit 139 (Type Float): Brightness Sensor (Analog)

Picture of Description of Function Used: Bit 139 (Type Float): Brightness Sensor (Analog)

Bit 139 (Type Float): Brightness Sensor (Analog)

Float is a data type in which we can store value in this range: -3,4 × 1038 to 3,4 × 1038. The Bit 139 is standardized bit which gets the analog value (in the range 0 ~ 8) from the Brightness Sensor. When the luminance is 100% the value is 8 & when the luminance is 0% the value drop done to 0. So the value in this Bit 139 varies in proportion to luminance of day light

Step 4: Decription of Bits Used: BIT 161: Light Garden (Analog)

Picture of Decription of Bits Used: BIT 161: Light Garden (Analog)

BIT 161: Light Garden (Analog)

It’s the standardized floating bit 161 for Lights Garden (Analog). The value in this bit decides the luminance from this light. If the value is 0, the lights are OFF with no luminance. If the value is 8 the luminance is 100%.

Step 5: Description of Elements Used: Light Pool (Analog):

Picture of Description of Elements Used: Light Pool (Analog):

Light Pool (Analog)

It’s the standardized floating bit 161 for Lights Garden (Analog). The value in this bit decides the luminance from this light. If the value is 0, the lights are OFF with no luminance. If the value is 8 the luminance is 100%.

Step 6: Description of Elements Used: Light Porche 1 (Analog)

Picture of Description of Elements Used: Light Porche 1 (Analog)

Light Porche 1 (Analog)

It’s the standardized floating bit 161 for Lights Garden (Analog). The value in this bit decides the luminance from this light. If the value is 0, the lights are OFF with no luminance. If the value is 8 the luminance is 100%.

Step 7: Description of Elements Used: ​SUB- Subtraction Function

Picture of Description of Elements Used: ​SUB- Subtraction Function

SUB- Subtraction Function: This function Subtracts the Two inputs & give results to OUT Terminal.

Step 8: Explanation of Solutions

Picture of Explanation of Solutions

In the Connect I/O Logic, BIT 139 respond to Luminance of the day light. We need to subtract this from the Constant 8 because we need to invert its value & give it to Float Output of Lights Garden, Pool & Porche

Example:

= 8 – 7.111(88 % Day Luminance)
= 0.888 (11% Luminance of Light)

It means at 88% Day light luminance we have 11% garden, Pool & Porche Light luminance

This cycle can be repeat again & again.
Check out the Video Demonstration: https://www.youtube.com/watch?v=OJIcXSSC0vY

Want to learn PLC? Get best E-Learning offers at online.nfiautomation.org

Comments

About This Instructable

590views

10favorites

License:

Bio: I'm a Mechatronics Engineer & a passionate teacher. As an engineer i'm involved in Control circuit designing. flexible education training designing & research work in ... More »
Add instructable to: