need to build circuit with Ldr , led and arduino
how i do it?
my teacher said that we need to calibrate it first. we cant use in delay only in interrupts
we need to convert the light to some value of distance (create some function)
the max-min value between (0-60mm), please help me what i need to do , maybe some basic pattern for it?
this is what my teacher said with no other examples or even block diagram:
First Sketch designed for calibration must
Once per 1 seconds measure “the difference” (as explained in the lecture)
** (timers and interrupts must be used)**
**2. Send “the difference” to serial monitor. **
By using any means and tools (as manual as automatic) , build Graph
** “the difference” [D] versus “distance between LED and the photoresistor as measured by a ruler” [L]**
** This Graph will be used to create “calibration function” L = function(D) **