- Tue Feb 21, 2017 4:15 pm
#193517
I have had success with the photoresistor TinkerKit project. There are two versions. One is included in the 16-file download, the other is on the web page, linked below. I got the website version to work immediately. The download package version didn't work. By reading the comments and tinkering with the variables I got it to work. One of the differences between the two versions is that the web version blinks an LED when the current is low. The download blinks when high. To make both versions blink when ambient light is dim, I tinkered some more, and got both to blink when ambient light is dim. When I got the download version to do what I wanted, I deleted all the comments. The code is beautiful in its simplicity. Compare the two sketches side-by-side. See PDF file, uploaded with my post. My idea is to build a beam-break counter. When the photoresistor light beam is broken, it sends a high signal to a counter. That's still beyond my ability, but any comments are appreciated.
https://learn.sparkfun.com/tutorials/ex ... toresistor
https://learn.sparkfun.com/tutorials/ex ... toresistor
You do not have the required permissions to view the files attached to this post.