Week10 : Input Devices
LDR photo sensor
Intially prior to the lecture I had in mind an idea to creat using multiple photo cells and object that would follow the light source, in this case I had the sun light source. I thought a mechanisim like the sunflower.
This mechanisim as i thought could be used in less privilaged countries (less sun light) for moving solar panels to get the most of the sunlight during the day. And in much prevelaged countries(extremly bright through out the year) could help creat smart shades for people working in the outdoors.
So I had it planned ahead, I should use three assignments to complete the whole concept. I would start with a circuit for the two photo cells as an input signal. The difference in voltage/resistance between the two photo cells would indicate the direction of the servo rotation. So if for example if 'Photocell1' had higher voltage( indicator of low resistance as a result of more incident light) than 'Photocell2' the whole holder will move towards the more light untill the difference is below a certain tollerable threshhold.
I did several tests for an interface that would visualize in real time the change in the light intensity at each cell. I used processing to create two different simple visulaizations and also Firmata on Arduino with Node.js Socket.io and Jhonny Five
to see the changes in voltage in the range from 0-1023 on a browser.
For the circuit I tried to start with one of the existing circuits i have done. That was the one with 2 LEDs and a Button, I changed the connection and the tracing to make it look a bit interesting and compact.
Then after going through the attiny44 data sheet i realised that I am using a digital pin where I should use an analog pin. So I did a final tweek in the design where the second phot cell was connected to pin 10.