This is an old revision of the document!
Light Amplification
Introduction
======
Brief presentation of your project : ======
Potentiometer Control LED Light
Here introduces the Arduino analog input function, which controls the brightness of the LED light by reading input voltage values through a potentiometer.
General Description
The analog input is a pin with ADC (Analog-to-Digital Converter) function. It can convert the externally input analog signal into a digital signal that can be recognized during chip operation, so as to realize the function of reading in the analog value. The Arduino analog input function has 10-bit precision, that is, it can convert a voltage signal of 0 to 5V into an integer form of 0 to 1024. Utilize the analogRead() function to read input voltage values by the potentiometer, and then use the analogWrite() function to control the brightness of the LED light.
==== Experimental Materials ====
1x Uno R3 development board
1x Bread board and supporting connecting line
1x 220Ω current limiting resistor
1x LED
1x potentiometer
Supporting USB data cable
The potentiometer is an adjustable resistor, and its operating principle is shown in the following figure:
Move the position of pin 2 by rotating the knob, changing the resistance value from pin 2 to both ends. In the experiment, connect pin 1 and pin 3 to the 5V GND of the development board, and then read the voltage of pin 2 obtained by the potentiometer through the analog input pin A0, and the range is between 0V to 5V.
Experimental Steps
1) Build the circuit according to the schematic diagram
Connect the positive pole of the LED lamp to the current limiting resistor, connect the other end of the resistor to the 10th pin of the development board, and connect the negative pole of the LED lamp to the GND of the development board. Pin 1 and pin 3 of the potentiometer are connected to the development board 5V and GND respectively, and pin 2 is connected to the A0 pin of the development board.
The experimental schematic diagram is as follows:
The physical connection diagram is shown in the figure below:
Hardware Design
Here's all about hardware design :
parts list
-
signal diagrams
simulation results
</notes>
===== Software Design =====
<type notes>
Description of the application code (firmware):
development environment (if any) (eg AVR Studio, CodeVisionAVR)
libraries and 3rd-party sources (eg Procyon AVRlib)
algorithms and structures that you plan to implement
(step 3) implemented sources and functions
</notes>
===== Results Achieved =====
What were the results of the implementation your project.
===== Download =====
An archive (or more if applicable) with the files obtained after the project: sources, scheme, etc. A README file, a ChangeLog, a compile script and automatic copy on uC always make a good impression

.
Files are uploaded to the wiki using the Add Images or other files feature. The namespace in which the files are uploaded is of the type : pm: prj20 ??: c? or : pm: prj20 ??: c?: Student_name (if applicable). Example: Dumitru Alin, 331CC → : pm: prj2009: cc: dumitru_alin .
You can also have a log section where the project assistant can track the progress of the project.
Export to PDF