For my project I made a childrens night light that incorporates one switch and one potentiometer. The code I used was from the (Make it Switch and Make it Change tutorials through adafruit)
My prototype is a night light, to construct it I first got a plastic cup. I then cut a hole out the bottom and to small openings in the sides. On one side I put the switch and on the other side the potentiometer. I drew little stars onto a plastic bag, and then constructed it on top of the night light to give the ceiling a starry night projection.
To make the nightlight work I had to combine two different sources of code into one. I first constructed a potentiometer exactly how the example on adafruit said. Three alligator clips, green to A1, red to voltage, and black to ground. To get my switch to work I changed the green to A5 in the code, and then attached another ground. In total my project used 5 alligator clips.
Comments
Please log in or sign up to comment.