Reusing my code and wiring for the RGB LED from Skill Dev I, I decided to use the potentiometer and flex sensor as they both had variable resistance that could be mapped to PWM to control the intensity of the LED. Since neither sensor was ideal, I had to modify their expected analog ranges when mapping them to PWM to match their actual limits so that the LED would actually be able to turn fully OFF and ON. I also added a switch as I initially misread the prompt as requiring 3 sensors, and wanted to turn off the LED when I was modifying code without unplugging the board since the Argon is a little finicky about uploading code. In particular, every time I had to flash new code after plugging the board in, it would be stuck trying to connect to the cloud until I reset it after plugging it in for some reason.
Content Rating
Is this a good/useful/informative piece of content to include in the project? Have your say!
You must login before you can post a comment. .