I just finished with the 'Measuring Light' chapter from my microcontroller book. This chapter was really great, I really enjoyed experimenting with the sensor and mostly liked building the Light Meter. Sounds cool right? But before I post up anything about the Light Meter, I'm going to show you some of the graphs that my Basic Plot Lite plotted for me when varying the light intensity on the photoresister. (Yes I finally got it all to work). So here are some graphs -
First of all, here's the coding I used to run and plot the data. (This gives me an idea - from now on instead of pasting the programming I'll print screen).
Here's a test graph - just messing around with the light.
I have gradually decreased the light intensity falling on the photoresister, meaning I'm increasing the resistance - increasing the RC-time. Then I'm slowly increasing the light intensity, and then quickly moving my hand on and off the photoresister (thats why I got those sharp peaks).
Here's another graph.
On the next post I'll post up all the other projects I did with the photoresister.
Great stuff looks really good! It must be really neat tto see how the RC time varies with resistance(ie light). Thats a good idea to print screen to show the code: that way you get all the formating (colours etc) as well. Small comment - if it doesn't take too much longer - maybe crop the stuff around the code before you save as picture. Small detail not really that important. Looks great rich, so how will you use it?
ReplyDeleteThanks Mark!
ReplyDeleteWell the graphs are just there to show my data visually as a line, not simply as just a long list of random numbers - so someone else can understand my results.