This shows you the differences between two versions of the page.
|
pm:prj2022:apredescu:light_amplification [2022/06/20 14:57] imane.farabi [Experimental Result] |
pm:prj2022:apredescu:light_amplification [2022/06/20 15:25] (current) imane.farabi [Download] |
||
|---|---|---|---|
| Line 76: | Line 76: | ||
| - | {{:pm:prj2022:apredescu:program_mtagxcu3z6.jpg?nolink&500 |}} | + | {{:pm:prj2022:apredescu:code.jpg?nolink&500 |}} |
| ====== Experimental Result ====== | ====== Experimental Result ====== | ||
| Line 86: | Line 86: | ||
| **Function Introduction** | **Function Introduction** | ||
| + | |||
| analogRead() | analogRead() | ||
| Description: Read the value of the specified analog pin. | Description: Read the value of the specified analog pin. | ||
| Line 115: | Line 116: | ||
| **Experimental Analysis** | **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. | 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. | ||
| Line 129: | Line 131: | ||
| ===== Download ===== | ===== Download ===== | ||
| - | <note warning> | + | |
| + | <note type> | ||
| CODE : | CODE : | ||
| - | </note> | + | {{:pm:prj2022:apredescu:code.zip|}} |
| + | |||
| + | |||
| + | All Files , Images and Results i used | ||
| + | |||
| + | {{: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> | ||