define wiring in separate file
[challenge-bot] / pcb / reset_notes.txt
CommitLineData
468dbff9
WG
1Patches:
2
31) Swap U1 Vin/Vout -- 3 cuts + 3 wires
4
5Notes:
6
71) U1 Vin/Vout pins are swapped
82) Add a reset circuit
9
10Use a SNLVC2G06 (dual open collector inverter):
11
12At VCC = 5V:
13
14 VIH = .7 * VCC = 3.5V
15 VIL = .3 * VCC = 1.5V
16 VOL = .55V
17 IOL = 32mA
18
19Assuming that the capacitor is clamped to VOL most
20of the time, the R*C that corresponds to charging
21from VOL to VIH in T seconds:
22
23The basic capacitor charging equation:
24
25 V(t) = VOL + (VCC - VOL) * (1 - e(-t/R*C)) (1)
26
27Replacing V(t) with VIH and T:
28
29 VIH = VOL + (VCC - VOL) * (1 - e(-T/R*C)) (2)
30
31Solving for RC:
32
33 (VIH - VOL)/(VCC - VOL) = 1 - e(-T/R*C)) (3)
34
35 e(-T/R*C) = 1 - (VIH - VOL)/(VCC - VOL) (4)
36
37 -T/R*C = ln(1 - (VIH - VOL)/(VCC - VOL)) (5)
38
39 R*C = -T/ln(1 - (VIH - VOL)/(VCC - VOL)) (6)
40
41Substituting in for T=1ms, VIH, VOL, and VCC:
42
43 R*C = -.001/ln(1 - (3.5 - .55)/(5 - .55)) (7)
44
45 R*C = -.001/-1.08744
46
47 R*C = .009196 (8)
48
49Setting C = .1uF
50
51 R = .009196 / .0000001 = 9196
52
53Using an R near 10K should do the trick:
54
55The maximum discharge current is IOL. Use Ohm's law
56to determine determine discharge resistor:
57
58 V = I * R
59 R = V / I
60 = 5 / .032
61 = 156.25
62
63Setting Rdischarge = 180 should be good enough.
64
65The charge/discharge ratio is:
66
67 Rcharge/Rdischarge = 10K/180 = 55.5
68