madsensi created page: home authored by Simon Hammerholt Madsen's avatar Simon Hammerholt Madsen
......@@ -64,6 +64,22 @@ The sample interval determines the frequency, with which light value samples are
![alt text](C:\Users\Joakim Quach\Desktop\Dropbox\Uni-ting\3. år\LegoLab\Eclipse Programmer\Lesson1\Interval10.jpeg)
### Exercise 5
*In this exercise we use the rawdata values instead of the lightPercent.*
Using the sensorPortTest.java, we conducted measurements with the rawdata, and got the following results:
| Rawdata measurement | Black | White |
|--------------------- |------- |------- |
| Rawdata | 650 | 400 |
Black lightpercent calculated with formula:
$100*(1-650/1023) = 36,46$
In our measurements with lightPercent, we measured black to be 34, which is quite close.
We found the interval between the measurements of black and white, to have a bigger interval, than the percentages. This could be an advantage when there is a need for higher level of detail, as it provides larger resolution.
### Exercise 6
## Conclusion
......
......