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=b6c188e2cc715df14e5208e9e7408e36d11a317e;hb=3e13c7f4abd65b939c1645d77cf6ed5e0124808e;hpb=d462b6b8557d44ebf18bddef2233076ba25d1445 diff --git a/pins.txt b/pins.txt index b6c188e..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 @@ -98,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)