Nov 27, 2017 - electronics & programmable development hardware more accessible. Elint Labz as a platform helps devel
Product Manual
Digital Light Sensor Plug
Updated on: 27th November 2017
Product Manual: Digital Resistive Light Sensor Plug
Index About Elint Labz
2
Introduction
2
Specification
3
Variants
3
Supported cables:
3
Details
3
How to interface?
4
Example Codes Code 1: Arduino
6 6
Elint Labz (www.elintlabz.in)
Page 1 of 5
Product Manual: Digital Resistive Light Sensor Plug
About Elint Labz Elint Labz (usually abbreviated as EL) is an electronics design & development tools designer & manufacturer with headquarters in Bengaluru, India. We design, develop & manufacture development boards based on micro-controller & microprocessors, breakout boards for various sensors & actuators. Our domain & expertise is in the area of Electronics & Embedded Systems. Elint Labz was founded in 2014 however the actual operations started from 2015 when it became a full time subsidiary of Hogst Innovative Solutions Pvt. Ltd. & is presently a part of Ajaramara Group a conglomerate of various domains of industries, registered in India as Ajaramara Dynamics Pvt. Ltd. under Companies Act of 2013. As in the name company (Elint Labz) – Electronic intelligence (ELINT) is intelligence gathered by the use of electronic sensors, Laboratories (LABZ) are facilities that provides controlled conditions in which scientific or technological research, experiments and measurement may be performed. EL is an enterprise built to develop smart & intelligent electronics & EL is committed to help achieve electronics literacy in India. No matter the vision or skill level, our products and resources are designed to make electronics & programmable development hardware more accessible. Elint Labz as a platform helps developers & young engineers from prototyping to product development. We provide open source hardware solutions and small quantity manufacturing services using a design from manufacturing framework. We are a strong promoter of the maker movement in India, most of the manufacturing happens with support of our various Indian partners & couple of our collaboration partners who have manufacturing & sourcing facilities in Germany, Korea & Shenzhen. To know more visit the about us section on our website: http://elintlabz.in/about-us/ Elint Labz (HQ) ˗ #200 1st main Arekere MICO layout 2nd stage Bengaluru 560076 KA [Marked on Google Maps] ✆ +91 855 377 2525 ː
[email protected]
Elint Labz (www.elintlabz.in)
Page 2 of 5
Product Manual: Digital Resistive Light Sensor Plug
Introduction
The digital resistive light sensor plug has a Light Dependent Resistor (LDR), whose resistance changes with the light intensity, with comparator circuit. Hence this plug finds an application where the presence of light is to be determined. This plug can be mounted anywhere using screws.
Specification ● Operating voltage: 5V ●
Size: 26mm x 26mm
Variants None
Supported cables: ● 4-3 A ● 3-3 A
Elint Labz (www.elintlabz.in)
Page 3 of 5
Product Manual: Digital Resistive Light Sensor Plug
Details
A Light Dependent Resistor (LDR) or a photo resistor is a device whose resistivity is a function of the incident electromagnetic radiation. Hence, they are light sensitive devices. When an LDR is exposed to light its resistance decreases and when an LDR is in dark its resistance increases. There is an op-amp based voltage comparator circuit which compares the threshold voltage, set using pot, and the LDR circuit voltage to give the digital signal at the data pin. You can calibrate this plug to trigger at a particular light intensity. This Light Sensor plug is an digital input device to the interfacing system such as Pluguino board, Nano Pluguino board etc. It has an interfacing port with three pins named as G (Ground), V (Vcc) and A (Data pin) through which digital signal can be obtained. This digital signal can be read using any pin in the microcontrollers.
How to interface?
Use either of the supported interface cables to connect this type of light sensor plug to the controller board. If 4-3A cable is to be used then 3pin end of the cable is connected to the plug. If 3-3A cable is to be used then any end of the cable can be connected to the plug. Always ensure that black wire of the cable is connected to the G pin on either sides. In the below given pictures you can see 4-3A cable is used to connect the light sensor plug to the Pluguino Board. The data pin of the light sensor plug is connected to the 2nd digital pin on the controller board.
Elint Labz (www.elintlabz.in)
Page 4 of 5
Product Manual: Digital Resistive Light Sensor Plug
The below table shows the input and output of the digital resistive light sensor plug.
Elint Labz (www.elintlabz.in)
Page 5 of 5
Product Manual: Digital Resistive Light Sensor Plug
Light
Digital Signal
Absent
HIGH
Present
LOW
In this example, the state of the digital resistive light sensor plug is read and indicated using an onboard LED.
Example Codes
Code 1: Arduino #define LDR_pin 2 #define LED_pin 13 void setup() { pinMode(LDR_pin,INPUT); pinMode(LED_pin,OUTPUT): }
// define pin 2 as input pin // define pin13 as output pin
void loop() { boolean state = digitalRead(LDR_pin); digitalWrite(LED_pin, state); }
// read the state of the LDR plug // indicate the state of the LDR plug using LED
Output video: https://youtu.be/hbglTFn12_w
Elint Labz (www.elintlabz.in)
Page 6 of 5