Blink! Using an Arduino and some other components, make some LEDs light up from multiple inputs. Sounds pretty simple. Also make it do something interesting? Now its getting complicated.
After finishing the Proof of Concept, I now needed to meet the requirements of the assignment. That meant adding a second sensor and making the interaction meaningful.
It was simple enough to add the second sensor. I simply had to do all of the wiring that I had already done again. That didn't take me too long. The problems here arose when trying to program the Arduino.
None of the problems I ran into were overly complicated, they all seemed to be stupid little mistakes; forgotten semicolons, forgetting to change a variable after a copy/paste, things like that. It wasn't too much of an issue. It took me a little longer than it should have, but I was done! Or so I thought.
I realized later that I had multiple inputs like I was supposed to, but that the different inputs didn't actually do anything different from each other. I decided that the best way to solve this was to set up two more LEDs, with each one lighting up depending on which sensor detected the stronger wind.
More problems here, but it was more of the same. A few minutes of debugging and I was set! I fixed up the pin-out diagram and I was finished! Ready for show and tell tomorrow!



No comments:
Post a Comment