]> www.fi.muni.cz Git - bike-lights.git/blob - pins.txt
pins.txt: different expected pin-out, design notes
[bike-lights.git] / pins.txt
1      (MOSI/DI/SDA/!OC1A/PCINT8) PB0 MOSI,LED1   SENSE1+ PA0 (ADC0/DI/SDA/PCINT0)
2           (MISO/DO/OC1A/PCINT9) PB1 MISO,PWM1  SENSE12- PA1 (ADC1/DO/PCINT1)
3    (SCK/USCK/SCL/!OC1B/PCINT10) PB2 SCK,LED2    SENSE2+ PA2 (ADC2/INT1/USCK/SCL/PCINT2)
4                  (OC1B/PCINT11) PB3 PWM2            SW2 PA3 (AREF/PCINT3)
5                                 VCC                     AGND
6                                 GND                     AVCC
7 (ADC7/!OC1D/CLKI/XTAL1/PCINT12) PB4 !PWM3        SENSE5 PA4 (ADC3/ICP0/PCINT4)
8  (ADC8/OC1D/CLKO/XTAL2/PCINT13) PB5 PWM3        SENSE3+ PA5 (ADC4/AIN2/PCINT5)
9          (ADC9/INT0/T0/PCINT14) PB6 SW1        SENSE34- PA6 (ADC5/AIN0/PCINT6)
10           (ADC10/RESET/PCINT15) PB7 RST         SENSE4+ PA7 (ADC6/AIN1/PCINT7)
11
12
13 Lights:
14 1 - front light
15 2 - rear spotlight
16 3 - rear LED strip
17
18 PWM1
19 PWM2
20 PWM3
21 SENSE1 - light 1
22 SENSE2 - light 2
23 SENSE3 - light 3
24 SENSE4 - ambient light sensor
25 SENSE5 - battery voltage sense
26 SW1 - mode switch
27 SW2 - temporary light boost or whatever
28 LED1 - speedometer illumination LED
29 LED2 - status LED
30
31
32 ADC
33 single-ended resolution:
34 0.00107 V
35 differential resolution 8x gain:
36 0.00013 V
37 differential resolution 32x gain:
38 0.000036 V
39 analog input resistance 100 MOhm
40
41 Battery sense
42 range 5-15 V
43 1.5M..15k
44 cca 10  uA @15V
45     3.3 uA  @5V
46
47 Ambient light sense
48 20 lx -- cca 333 kOhm
49 200 lx -- cca 35 kOhm
50
51 lx:
52 1lx == full moon
53 400 lx == sunset/sunrise
54 10 klx == full daylight
55
56 need probably 1-1k lux scale
57