This shows you the differences between two versions of the page.
|
pm:prj2022:apredescu:light_amplification [2022/06/20 14:21] imane.farabi [General Description] |
pm:prj2022:apredescu:light_amplification [2022/06/20 15:25] (current) imane.farabi [Download] |
||
|---|---|---|---|
| Line 60: | Line 60: | ||
| {{:pm:prj2022:apredescu:physical_connection_diagram_oy2jlrsenl.jpg?nolink&500 |}} | {{:pm:prj2022:apredescu:physical_connection_diagram_oy2jlrsenl.jpg?nolink&500 |}} | ||
| - | ===== Hardware Design ===== | + | ===== Software Design ===== |
| <note type> | <note type> | ||
| - | Here's all about hardware design : | + | I created a new Sketch |
| - | * parts list | + | </note> |
| - | * wiring diagrams (can also be downloaded from the internet and from datasheets, eg http://www.captain.at/electronic-atmega16-mmc-schematic.png) | + | |
| - | * signal diagrams | + | {{:pm:prj2022:apredescu:figure_5._code.jpg?nolink&600 |}} |
| - | * simulation results | + | |
| - | </notes> | + | |
| - | ===== Software Design ===== | + | <note type> |
| + | And then I Connected the development board, set the corresponding port number and development board type, and download the program. | ||
| + | </note> | ||
| - | <type notes> | + | {{:pm:prj2022:apredescu:code.jpg?nolink&500 |}} |
| - | 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> | + | |
| + | ====== Experimental Result ====== | ||
| + | |||
| + | {{:pm:prj2022:apredescu:led_light_ll76whkboa.gif?nolink&500 |}} | ||
| + | |||
| + | <note type> | ||
| + | Rotating the potentiometer knob changes the brightness of the LED light. | ||
| + | |||
| + | **Function Introduction** | ||
| + | |||
| + | analogRead() | ||
| + | Description: Read the value of the specified analog pin. | ||
| + | |||
| + | Function prototype: analogRead(pin) | ||
| + | |||
| + | Parameter: Analog input pin | ||
| + | |||
| + | Return value: an integer between 0 to 1024 | ||
| + | |||
| + | map() | ||
| + | Description: Map data from one range to another. | ||
| + | |||
| + | Function prototype: map(value, fromLow, fromHigh, toLow, toHigh) | ||
| + | |||
| + | parameter: | ||
| + | |||
| + | value: The data to be mapped. | ||
| + | |||
| + | fromLow: The lower limit of the current range. | ||
| + | |||
| + | formHigh: The upper limit of the current range. | ||
| + | |||
| + | toLow: The lower limit of the target range. | ||
| + | |||
| + | toHigh: The upper limit of the target range. | ||
| + | |||
| + | Return value: Remapped data | ||
| + | |||
| + | **Experimental Analysis** | ||
| + | |||
| + | The program uses the analogRead() function to read the analog input value, and the input value range is between 0 to 1024. Then use the analogWrite() function to change the LED light duty cycle, and the duty cycle range is 0 to 255. Remap the range by using the map() function. | ||
| + | |||
| + | |||
| + | </note> | ||
| ===== Results Achieved ===== | ===== Results Achieved ===== | ||
| Line 89: | Line 127: | ||
| </note> | </note> | ||
| + | {{:pm:prj2022:apredescu:whatsapp_image_2022-06-20_at_2.41.12_pm.jpeg?nolink&350 |}} | ||
| + | {{:pm:prj2022:apredescu:whatsapp_image_2022-06-20_at_2.41.11_pm.jpeg?nolink&350 |}} | ||
| + | ===== Download ===== | ||
| - | ===== Download ===== | + | <note type> |
| + | CODE : | ||
| - | <note warning> | + | {{:pm:prj2022:apredescu:code.zip|}} |
| - | 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 **. | ||
| - | </note> | ||
| - | <note type> | + | All Files , Images and Results i used |
| - | You can also have a log section where the project assistant can track the progress of the project. | + | |
| - | </note> | + | {{:pm:prj2022:apredescu:light_amplification_imane_farabi_1221ea.zip|}} |
| + | |||
| + | </note> | ||
| <html> <a class="media mediafile mf_pdf" href="?do=export_pdf"> Export to PDF </a> </html> | <html> <a class="media mediafile mf_pdf" href="?do=export_pdf"> Export to PDF </a> </html> | ||