This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:examples:sensor:photoresistor [2015/11/10 09:12] – heikopikner | en:examples:sensor:photoresistor [2020/07/20 09:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Photoresistor ====== | ====== Photoresistor ====== | ||
| - | //Necessary knowledge: | + | //Necessary knowledge: |
| + | [HW] [[en: | ||
| + | [ELC] [[en: | ||
| + | [AVR] [[en: | ||
| + | [LIB] [[en: | ||
| + | [LIB] [[en:software:homelab:library: | ||
| ===== Theory ===== | ===== Theory ===== | ||
| Line 20: | Line 25: | ||
| A range of working temperature is set for photoresistor. Wishing the sensor to work at different temperatures, | A range of working temperature is set for photoresistor. Wishing the sensor to work at different temperatures, | ||
| - | For characterizing light intensiveness physical concept called light intensity (E) is used, this shows the quantity of light reaching any given surface. Measuring unit is lux (lx), where 1 lux represents, the even flow of light 1 lumen, falling on a surface of 1m2. Hardly ever in reality falls light (living area) on a surface evenly and therefore light intensity is reached generally as a average number. Below are few examples of light intensity for comparison: | + | For characterizing light intensiveness physical concept called light intensity (E) is used, this shows the quantity of light reaching any given surface. Measuring unit is lux (lx), where 1 lux represents, the even flow of light 1 lumen, falling on a surface of 1 m< |
| Line 122: | Line 127: | ||
| // | // | ||
| - | // Pinge arvutamine | + | // Calculating the voltage in the input of the ADC |
| // HomeLab II | // HomeLab II | ||
| //voltage = 5.0 * ((double)adc_value / 1024.0); | //voltage = 5.0 * ((double)adc_value / 1024.0); | ||