First we have to understand the different functions to apply the Arduino, one basically is play with a Led.Now we can interact with the led throug de pin mode with two forms, Digitalwrite or analoghwrite
This two options are interesting for a project
More explanation to understand it: Arduino PWM, consists in giving a signal of 1 and 0 (ON, OFF) with wider or finer pulsations depending on whether you want more intensity or less. That is, when you ask the Arduino for an intensity of 170, what it does is Give 0 or 1 super fast but our eye is not able to see it. Hence its name Pulse with Modulation of 8 bits. ADC, Analog Digital Converter, its function is to convert the values from 0 to 1023, of 10 bits. AnalogRead, is to read an analog input, it is a 10-bit ADC. Read the analog value and it goes from 0 to 1023, normally it is used to know the voltage, to use it we use the map function and translate it to a type of intensity.
Here is a video with an arduino interactin with a diode LED, that with my partner we are working to express our name in the code morse language with a diode LED. Victor in code morse!
Here is a video with an arduino interactin with a LED, that with my partner we are working to express our name in the code morse language with a diode LED and the tone of an speaker.Victor SOS with speaker!
Here is a video with an arduino interactin with a RGB, here change the color of the LEDArduino with RGB!
Here is a video with an arduino interactin with a LDR, here change the intensity of the LEDArduino with LDR!