X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=bike-lights.git;a=blobdiff_plain;f=pins.txt;h=06ce75a995d475b9662f83731541d0db06dc88fa;hp=9e47666e44da67e3046a642eeca2110a1273e465;hb=3e13c7f4abd65b939c1645d77cf6ed5e0124808e;hpb=5c9af05c716822d5534296659aa49bad37af9f48 diff --git a/pins.txt b/pins.txt index 9e47666..06ce75a 100644 --- a/pins.txt +++ b/pins.txt @@ -32,11 +32,11 @@ SW2 - temporary light boost or whatever ADC Gain -======== -single-ended resolution: 0.001074 V .. 1.1000 V -differential resolution 8x gain: 0.000134 V .. 0.1375 V -differential resolution 20x gain: 0.000054 V .. 0.0550 V -differential resolution 32x gain: 0.000036 V .. 0.0344 V +======== 0.033R sensign res. +single-ended resolution: 0.001074 V .. 1.1000 V 32.55 .. 33333 mA +differential resolution 8x gain: 0.000134 V .. 0.1375 V 4.06 .. 4166 mA +differential resolution 20x gain: 0.000054 V .. 0.0550 V 1.64 .. 1666 mA +differential resolution 32x gain: 0.000036 V .. 0.0344 V 1.09 .. 1042 mA analog input resistance 100 MOhm @@ -72,6 +72,8 @@ Ambient light sensor darkness: 3.71 V => 4.31 MOhm bathroom without lights, only outside lights: 3.68 V => 4.18 MOhm kitchen light: 3.29 V => 2.89 MOhm +room 30min before midnight: 0.26 V => 82 KOhm +outside 30min before midnight: 0.05 V => 15 KOhm bathroom halogen lights 0.02 V => 6 KOhm battery light: 0.01 V => 3 KOhm @@ -96,3 +98,8 @@ Battery idle current 2000 mAh: 1.0 mA -> 83 days capacity 2000 mAh: 0.1 mA -> 833 days capacity +Converter reaction +================== +step-up: 4-5 adc measurements to ADC voltage increase +step-down 2: 1-2 ---""--- +timer: 34-38 ADC measurements per jiffy (200 Hz)