Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
739 | harrie | 1 | This branch v0.68d_J16J17 is a copy of v0.68d and has support for switchting J16 and J17 on the FC board: |
2 | |||
3 | |||
4 | DIFFERENCES: |
||
5 | |||
6 | main.c -> line 101: |
||
7 | DDRC changed from 0x81 (128+1) to 0x8D (128+8+4+1) to make PC2 and PC3 outputs |
||
8 | |||
9 | main.h -> lines 22-25: |
||
10 | defined references for PC2 (=LED1) and PC3 (=LED2) |
||
11 | |||
12 | fc.c -> line 605-608: |
||
13 | added switching behaviour based on POTI2 and POTI3 |
||
14 | if POTI2 > 75, output PC2 (J16) will switch to ground |
||
15 | if POTI2 <= 75, output PC2 (J16) will remain open collector |
||
16 | if POTI3 > 75, output PC3 (J17) will switch to ground |
||
17 | if POTI3 <= 75, output PC3 (J17) will remain open collector |
||
18 | |||
19 | NOTE on J16/J17 usage: |
||
20 | - use an optocoupler to switch external devices like camera's |
||
21 | - you can drive a LED straight on J16 or J17 (cathode on J16/J17, anode on +5V), but do not exceed 100mA (otherwise 7805 stabiliser gets too hot). T1 and T2 can handle each max. 500mA but mind the 7805 on the FC |
||
22 | - if you want to drive higher currents (for external high power LED's): use an extra FET or a BD transistor (eg: BD138 PNP) via the battery supply (not the +5V from the FC) |
||
23 | |||
24 | |||
25 | Good Luck! |
||
26 | Harrie - MosaKopter |
||
27 |