• escarabajo
  • Process images

    Week 08 reflections.

    Program the circuit that I had already figured out the previous week was at first easy. To be realistic I just search for the code “fading LED with music Arduino” and a lot of examples appeared. The worst part was trying to fix the sound sensor threshold and give values to switch on and off the LED. The only things that I needed to be careful with were the analog and the digital pins that I had to use. In this case, an analog to read the sound and a digital PWM to control the LED.

    Here I have the code and the circuit working.


    Finals reflections:
    This week I did an easy task because the programming was as easy as an analog input that gives values to the Arduino that process these values to control the frequency that it brings to the digital output (LED).