Week 9 | Assignment 7

For this assignment I created a simple LED Control with an Analog Sensor and On/Off Switch. Arduino controls the two LEDs independently. One LED’s brightness changes, The second LED is controlled by an on/off switch. I was inspired by the light switches we have at home, that work with on/off switch but also can be dimmed (for this assignment’s sake I had to use 2 LEDs). But it was cool to create a somewhat similar version of that and understand how it works.

I originally used the ultra sonic sensor, since I wanted to experiment with something we haven’t used in class, but it didn’t work, I couldn’t figure out if the issue came from the code or the arduino. So I restarted and decided to take a step back and create something I was more familiar with.

GitHub

My Arduino

This is my attempt of drawing the schematic

Leave a Reply