ADITYASHAH-IITP / LDR-as-a-lux-sensor

Using LDR as a lux sensor a.Signal processing of LDR as a sensor b.ADC of the signal c.Digital filtering –smoothing (Low pass digital filter) d.Calibration using Android phones lux sensor.DC motor Speed and Position Control using POT and PWM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LDR-as-a-lux-sensor and DC motor Speed and Position Control using POT and PWM


Circuit

image


Phone Lux meter app results

image

Calibrated results

image

Using LDR as a lux sensor
a.Signal processing of LDR as a sensor
b.ADC of the signal
c.Digital filtering –smoothing (Low pass digital filter)

Smoothening Effect (Red Color)

image


d.Calibration using Android phones lux sensor.

Smoothed sensor value versus android lux sensor reading
image

Comparision.

image



TINKERCAD
1.Calibrate the rotary potentiometer to get angles in degree ?
2.Control DC motor speed using PWM.
3.Attach the DC motor & potentiometer, and control theangle of the DC motor.
•Proportional control = error * Kp
•Use the calibrated potentiometer code and control dcmotor code to get this task done.


About

Using LDR as a lux sensor a.Signal processing of LDR as a sensor b.ADC of the signal c.Digital filtering –smoothing (Low pass digital filter) d.Calibration using Android phones lux sensor.DC motor Speed and Position Control using POT and PWM