Anarghya Murthy
Anarghya Murthy
Anarghya Murthy
Manipal University Jaipur, Malaviya National Institute of Technology Jaipur & IRISWORLD, July 01-02, 2017
Navin Karanth P
Dept. of Mechanical Engineering
National Institute of Technology
Surathkal, Karnataka, India 575025
Abstract—This study is based on experimental approach to protocol to interface a digital compass. The system has a
linear displacement measurement using RGB color coding algo- rotation encoder to calculate the distance traveled and to keep
rithm. This system is based on the auto-calibration procedure track of the direction with respect to the Earth’s magnetic field.
which can be implemented in a circuit, based on the temporal
changes in the intensity of light, with the help of a light dependent The authors were able to design the navigation platform which
resistor (LDR). The system consists of two LDRs and an LED is cost effective, insensitive to background noise and energy
placed on one side and an RGB color coded reflective paper on the efficient. The latter research [2], had its application on the
opposite side. PIC microcontroller is used for powering the LED, intelligent transportation system, by using distance estimation
processing of data for feedback control and to display the output with an onboard monocular camera and car position detection.
on an LCD. LDR1 reading is used for displaying the relative
linear distance, by mapping the voltage as a function of distance. The authors further investigated the lane detection and tracking
This reading is used as a feedback to a PID controller to correct (lane departure warning system) by adopting Hough transform
for the deviation in the measurement. Extensive experimental and Kalman filter. The drawback to this approach is that the
observations are conducted to analyze the reliability of the results accuracy of the monocular camera is as good as the camera’s
in accordance to the wavelength of light reflected, the signal interior parameters and the reliability of the calibration of the
voltage and power output of the system. Investigation of the
optimum positioning of the LED and the reflective RGB color camera in the global world frame.
coded paper is performed by repeatability analysis and hysteresis An interface for the resistive sensors using digital po-
effects. Furthermore, the efficiency of the system is increased by tentiometer which uses an automatic calibration procedure
implementing a PID controller upon investigating the different for the bridge circuit offset was developed [3]. The authors
controller design, viz. P, PI and PID. A high resolution of 0.1 obtained better resolution of the circuit when compared to the
[mm] is obtained for such a simple and economical system,
thereby making it highly efficient, in both minute measurements potentiometer circuit. The calibration procedure of a digital po-
as well as over the entire bandwidth range of the visible light tentiometer can be accomplished using a thermistor. However,
spectrum. the efficiency of the thermistor is restricted to within a specific
Keywords- Displacement, LDR, LED, PID, RGB. operating range, as it is very sensitive to the environmental
effects of humidity and temperature. The resulting prototype
I. I NTRODUCTION was able to compensate for the sensor’s tolerance of ±40%
In the industrial instrumentation sector, there is always a with an error of ±0.5%.
need for the measurement of the position of a target object LDR based systems have higher tolerance for disturbances
with high accuracy. In the modern system this is typically (insensitive to the environmental effects of humidity and tem-
required to be contact-less detection for enhanced efficiency perature) and are thus more reliable. A digital potentiometer
and ease of use. There exists a variety of similar sensors in used to implement the automatic calibration procedure in a
the market for this task, which provides an appropriate output circuit using a light dependent resistor (LDR) was developed
signal based on the proportionate displacement of the target [4]. The authors implemented a proportional controller on
material. The applications of distance measurement has been the system to ensure high accuracy and efficiency. It was
performed in [1], [2]. The former research [1] investigated concluded that the maximum achieved steady-state error of
an auto navigation platform in Arduino which uses the i2c 290[kΩ] was lower than the previous works. The LDR (Light
242
98 kΩ
LDR1
VCC (+5V) 1 kΩ 1 kΩ
LDR2 1 kΩ 1 kΩ 10 μF
3 kΩ
1 kΩ
200 kΩ
98 kΩ 1 kΩ
10 μF 1 kΩ
10 kΩ
1 kΩ
25 kΩ
1 kΩ
ADC
PIC
1 kΩ
Microcontroller
Fig. 1: Experimental setup 1 kΩ
10 kΩ
VCC
243
Wavelength [nm] v/s Voltage [V] Distance [mm] v/s Output Power [mW]
4.5 2
d = 0.5 [mm]
d = 0.5[mm] Fitted curve (1 st order polynomial)
4.4 d = 1[mm] 1.8 d = 1 [mm]
d = 1.5[mm]
Fitted curve (1 st order polynomial)
4.3 d = 2[mm] 1.6 d = 1.5 [mm]
Fitted curve (1 st order polynomial)
4.2 1.4 d = 2 [mm]
4 1
3.9 0.8
3.8 0.6
3.7 0.4
3.6 0.2
3.5 0
300 350 400 450 500 550 600 650 700 750 0 50 100 150 200 250 300
Wavelength (λ ) [nm] Distance [mm]
Fig. 4: Signal voltage as a function of wavelength [nm] Fig. 6: Output power as a function of distance
4.5 0.015
0
3.5
d = 0.5 [mm] -0.005
Fitted curve (1 st order polynomial)
3 d = 1 [mm] -0.01
Fitted curve (1 st order polynomial)
d = 1.5 [mm] d = 0.5[mm]
-0.015 d = 1[mm]
Fitted curve (1 st order polynomial)
2.5 d = 1.5[mm]
d = 2 [mm]
-0.02 d = 2[mm]
Fitted curve (1 st order polynomial)
-0.025
2 0 50 100 150 200 250 300
0 50 100 150 200 250 300
Distance [mm]
Distance [mm]
Fig. 5: Voltage as a function of distance Fig. 7: Signal voltage difference as a function of distance
244
Disturbance
Hysteresis Analysis - Distance [mm] v/s Output Power [mW]
2
Observations-1 (150[mm] to -150[mm]) PLANT Output
1.8 Observations-2 (-150[mm] to 150[mm]) Set Point (Actual Voltage)
LDR2
1.6
(Desired Voltage)
Input
+- Error
CONTROLLER ++ MOTOR
LDR1
1.4
Power Output [mW]
1.2
1
Fig. 9: Controller overview for the position measurement system
0.8
0.6
245
Fig. 10: Proportional gain controller for different values of Kp Fig. 13: Step response for PID controller Kp = 10, Ki = 10, Kd = 1
IV. C ONCLUSION
From this experimental research study, the following can be
concluded:
1) A simple, economical and efficient linear position mea-
surement system has been developed using PIC mi-
crocontroller interfaced to an LED-LDR system and a
reflective RGB color coded paper for enhanced range of
operation in the visible light spectrum.
2) The signal voltage for the blue wavelength region of
light (475[nm] − 480[nm]) shows peak amplitudes,
suggesting the high sensitivity of the LDR for this
wavelength.
Fig. 12: Step response for PI controller Kp = 0.25 with varying Ki 3) The positioning distance of the LED-LDR with respect
to the RGB color coded paper is optimized by extensive
experimental observations of voltage, power, repeata-
therefore a derivative control is to be added in the control bility and hysteresis analysis for the linear distance
design to take care of the overshoot and the settling time. measurement, and was found to be 0.5[mm].
3) PID controller: For the linear position measurement sys- 4) Extensive controller design is performed on the system
tem using LDR, Proportional-Integral-Derivative (PID) con- to reduce the error by implementing a P-controller and
troller, is implemented to enhance the system performance by PI-controller which yielded stable results, however it
tuning the PID parameters. The PID-controller is developed by was a compromise on the performance of the system.
tuning the PID gain constant at a time and the resulting closed Therefore, a PID controller is tuned (Kp = 10, Ki = 10,
loop step response is shown in Figure 13. From the PID control Kd = 1) for the efficient performance of the system’s
design, the system with the low rise time of t = 0.26[s], response (low rise time of t = 0.26[s], overshoot of
overshoot of 5.81%, settling time of t = 1.96[s], and steady 5.81%, settling time of t = 1.96[s], and steady state
state error of 0% is achieved, with PID gain constants as error of 0%) enabling a resolution of 0.1[mm].
246
ACKNOWLEDGMENT [18] Ghosh, B. B., Sarkar, B. K., & Saha, R. (2015). Realtime performance
analysis of different combinations of fuzzyPID and bias controllers for
The authors would like to thank Centre for System Design, a two degree of freedom electrohydraulic parallel manipulator. Robotics
and Computer-Integrated Manufacturing, 34, 62-69.
NITK Surathkal for providing the necessary facilities and the [19] Zou, W., Le, D. T., Berger, U., Andulkar, M., & Ampatzopoulos,
support for this project. A. (2016). Integration of a PID Control System for a Mobile System
for Manufacturing Task on Continuous Conveyor. IFAC-PapersOnLine,
49(12), 162-167.
R EFERENCES [20] Niu, J., Shen, Y., Yang, S., & Li, S. (2017). Analysis of Duffing oscillator
with time-delayed fractional-order PID controller. International Journal of
[1] Megalingam, R. K., Varghese, J. M., & Anil, S. A. (2016, January). Non-Linear Mechanics, 92, 66-75.
Distance estimation and direction finding using I2C protocol for an auto-
navigation platform. In VLSI Systems, Architectures, Technology and
Applications (VLSI-SATA), 2016 International Conference on (pp. 1-4).
IEEE.
[2] Ali, A. A., & Hussein, H. A. (2016, May). Distance estimation and vehicle
position detection based on monocular camera. In Multidisciplinary in IT
and Communication Science and Applications (AIC-MITCSA), Al-Sadeq
International Conference on (pp. 1-4). IEEE.
[3] Leinonen, M., Juuti, J., & Jantunen, H. (2007). Interface circuit for
resistive sensors utilizing digital potentiometers. Sensors and Actuators
A: Physical, 138(1), 97-104.
[4] Amri, I., Atmajati, E. D., Salam, R. A., Yuliza, E., & Munir, M. M. (2016,
August). Potentiometer a simple light dependent resistor-based digital.
In Sensors, Instrumentation, Measurement and Metrology (ISSIMM),
International Seminar on (pp. 24-27). IEEE.
[5] Baharuddin, M. Z., Abidin, I. Z., Mohideen, S. S. K., Siah, Y. K., &
Chuan, J. T. T. (2005). Analysis of line sensor configuration for the
advanced line follower robot. University Tenaga Nasional.
[6] Sharma, M., Grover, A., & Bande, P. (2009). Low cost sensors for general
applications. International Journal of Recent Trends in Engineering, 1(5),
150-152.
[7] Nasrudin, N., Ilis, N. M., Juin, T. P., Chun, T. T. K., Loo, W. Z., &
Rokhani, F. Z. (2011, March). Analysis of the light dependent resistor
configuration for line tracking robot application. In Signal Processing
and its Applications (CSPA), 2011 IEEE 7th International Colloquium
on (pp. 500-502). IEEE.
[8] GS, S. P. Design and Implementation of Automatic Street Light Control
Using Sensors and Solar Panel. International Journal of engineering
Research and Applications, 1(5), 97-100.
[9] Da Silva, D. F., & Acosta-Avalos, D. (2006). Light dependent resistance
as a sensor in spectroscopy setups using pulsed light and compared with
electret microphones. Sensors, 6(5), 514-525.
[10] Salim, G. M., Ismail, H., Debnath, N., & Nadya, A. (2015, October).
Optimal light power consumption using LDR sensor. In Robotics and
Intelligent Sensors (IRIS), 2015 IEEE International Symposium on (pp.
144-148). IEEE.
[11] Daimiwal, N., Sundhararajan, M., & Shriram, R. (2014, April). Com-
parative analysis of LDR and OPT 101 detectors in reflectance type
PPG sensor. In Communications and Signal Processing (ICCSP), 2014
International Conference on (pp. 1078-1081). IEEE.
[12] Tarmizi, W. F. W., Elamvazuthi, I., Perumal, N., Nurhanim, K., Khan,
M. A., Parasuraman, S., & Nandedkar, A. V. (2016, September). A
Particle Swarm Optimization-PID controller of a DC Servomotor for
Multi-Fingered Robot Hand. In Robotics and Manufacturing Automation
(ROMA), 2016 2nd IEEE International Symposium on (pp. 1-6). IEEE.
[13] Kuo, C. L., Tsui, C. K., Pai, N. S., Lin, C. H., Chen, S. C., & Li, P. W.
(2016, July). A PID controller for the underwater robot station-keeping. In
Industrial Informatics (INDIN), 2016 IEEE 14th International Conference
on (pp. 1242-1246). IEEE.
[14] Sadun, A. S., Jalani, J., Sukor, J. A., & Jamil, F. (2016, September).
Force control for a 3-Finger Adaptive Robot Gripper by using PID
controller. In Robotics and Manufacturing Automation (ROMA), 2016
2nd IEEE International Symposium on (pp. 1-6). IEEE.
[15] Van Dijk, J., & Aarts, R. (2012). Analytical one parameter method for
PID motion controller settings. IFAC Proceedings Volumes, 45(3), 223-
228.
[16] Pratama, D., Ardilla, F., Binugroho, E. H., & Pramadihanto, D. (2015,
August). Tilt set-point correction system for balancing robot using PID
controller. In Control, Electronics, Renewable Energy and Communica-
tions (ICCEREC), 2015 International Conference on (pp. 129-135). IEEE.
[17] Dieulot, J. Y., & Colas, F. (2009). Robust PID control of a linear
mechanical axis: A case study. Mechatronics, 19(2), 269-273.
247