Andrey Proskurnev 7 years ago
parent
commit
8c5a77f452
  1. 4
      lib/custom.lib
  2. 104
      scripts/voltage_divider.py
  3. 27
      velocomputer/velocomputer-cache.lib
  4. 361
      velocomputer/velocomputer.bak
  5. 361
      velocomputer/velocomputer.sch

4
lib/custom.lib

@ -57,7 +57,7 @@ X ADC_8/A7 8 -1950 -250 200 R 50 50 1 1 I
X ADC_7/A6 9 -1950 -150 200 R 50 50 1 1 I X ADC_7/A6 9 -1950 -150 200 R 50 50 1 1 I
X ADC_6/A5 10 -1950 -50 200 R 50 50 1 1 I X ADC_6/A5 10 -1950 -50 200 R 50 50 1 1 I
X +5V 20 1950 850 200 L 50 50 1 1 w X +5V 20 1950 850 200 L 50 50 1 1 w
X A11 30 1950 -150 200 L 50 50 1 1 I X PWM1_4/CAN1_RD/USB_DM/PA11 30 1950 -150 200 L 50 50 1 1 I
X ADC_5/A4 11 -1950 50 200 R 50 50 1 1 I X ADC_5/A4 11 -1950 50 200 R 50 50 1 1 I
X B9 21 1950 750 200 L 50 50 1 1 I X B9 21 1950 750 200 L 50 50 1 1 I
X PWM1_3/Serial1_RX/D2/PA10 31 1950 -250 200 L 50 50 1 1 I X PWM1_3/Serial1_RX/D2/PA10 31 1950 -250 200 L 50 50 1 1 I
@ -80,7 +80,7 @@ X C14 17 -1950 650 200 R 50 50 1 1 I
X B3 27 1950 150 200 L 50 50 1 1 I X B3 27 1950 150 200 L 50 50 1 1 I
X B12 37 1950 -850 200 L 50 50 1 1 I X B12 37 1950 -850 200 L 50 50 1 1 I
X C13 18 -1950 750 200 R 50 50 1 1 I X C13 18 -1950 750 200 R 50 50 1 1 I
X A15 28 1950 50 200 L 50 50 1 1 I X PWM2_1/SPI1_NSS/A15 28 1950 50 200 L 50 50 1 1 I
X VBAT 19 -1950 850 200 R 50 50 1 1 I X VBAT 19 -1950 850 200 R 50 50 1 1 I
X A12 29 1950 -50 200 L 50 50 1 1 I X A12 29 1950 -50 200 L 50 50 1 1 I
ENDDRAW ENDDRAW

104
scripts/voltage_divider.py

@ -0,0 +1,104 @@
#!/usr/bin/env python
# coding: utf8
NOMINALS = [
1000000.0,
750000.0,
470000.0,
220000.0,
75000.0,
47000.0,
22000.0,
10000.0,
6800.0,
2200.0,
1000.0,
750.0,
470.0,
220.0,
100.0,
47.0,
22.0,
10.0
]
def format_value(value, suffix=''):
order_suffix = ''
divider = 1.0
orders = [
[1000000000.0, 'G'],
[1000000.0, 'M'],
[1000.0, 'k'],
[1.0, ''],
[0.001, 'm'],
[0.000001, u'\u00b5'],
[0.000000001, u'n'],
[0.000000000001, u'p'],
]
for suggested_divider, suggested_order_suffix in orders:
if value >= suggested_divider:
divider = suggested_divider
order_suffix = suggested_order_suffix
break
mag_value = value / divider
mag_value = int(mag_value * 1000)
mod = mag_value % 1000
if mod == 0:
return "%i%s%s" % (mag_value / 1000.0, order_suffix, suffix)
elif mod % 100 == 0:
return "%.1f%s%s" % (mag_value / 1000.0, order_suffix, suffix)
elif mod % 10 == 0:
return "%.2f%s%s" % (mag_value / 1000.0, order_suffix, suffix)
return "%.3f%s%s" % (mag_value / 1000.0, order_suffix, suffix)
def choose_resistors(v_in, v_out, limits='both'):
if v_in <= v_out:
raise Exception("Vin should be greater than Vout")
v_in = float(v_in)
v_out = float(v_out)
best_r1 = None
best_r2 = None
best_v_out = None
for r1 in NOMINALS:
for r2 in NOMINALS:
tmp_v_out = float(v_in * r2) / (r1 + r2)
choose_this_pair = best_v_out is None
if limits == 'both':
choose_this_pair = choose_this_pair or abs(tmp_v_out - v_out) < abs(best_v_out - v_out)
elif limits == 'upper':
choose_this_pair = choose_this_pair or v_out <= tmp_v_out < best_v_out or best_v_out < v_out
elif limits == 'lower':
choose_this_pair = choose_this_pair or best_v_out < tmp_v_out <= v_out or best_v_out > v_out
if choose_this_pair:
best_r1 = r1
best_r2 = r2
best_v_out = tmp_v_out
print u"R1 %s\nR2 %s\nVout %s\nDissipation %s\nFactor %f" % (
format_value(best_r1, u'Ω'),
format_value(best_r2, u'Ω'),
format_value(best_v_out, 'V'),
format_value(v_in * v_in / best_r1, 'W'),
best_r2 / (best_r1 + best_r2)
)
def main():
print "\nPower supply UVLO divider"
choose_resistors(30, 1.3, 'upper')
print "\nPower supply feedback divider"
choose_resistors(5, 1.225, 'lower')
print "\nUnidirectional sensor"
choose_resistors(5.1, 3.3, 'lower')
if __name__ == '__main__':
main()

27
velocomputer/velocomputer-cache.lib

@ -1,6 +1,29 @@
EESchema-LIBRARY Version 2.3 EESchema-LIBRARY Version 2.3
#encoding utf-8 #encoding utf-8
# #
# BC807
#
DEF BC807 Q 0 0 Y N 1 F N
F0 "Q" 200 75 50 H V L CNN
F1 "BC807" 200 0 50 H V L CNN
F2 "TO_SOT_Packages_SMD:SOT-23" 200 -75 50 H I L CIN
F3 "" 0 0 50 H I L CNN
ALIAS BC808 BC856 BC857 BC858 BC859 BC860 MMBT3906
$FPLIST
SOT?23*
$ENDFPLIST
DRAW
C 50 0 111 0 1 10 N
P 2 0 1 0 25 25 100 100 N
P 3 0 1 0 25 -25 100 -100 100 -100 N
P 3 0 1 20 25 75 25 -75 25 -75 N
P 5 0 1 0 90 -70 70 -90 50 -50 90 -70 90 -70 F
X B 1 -200 0 225 R 50 50 1 1 I
X E 2 100 -200 100 U 50 50 1 1 P
X C 3 100 200 100 D 50 50 1 1 P
ENDDRAW
ENDDEF
#
# CONN_01X04 # CONN_01X04
# #
DEF CONN_01X04 J 0 40 Y N 1 F N DEF CONN_01X04 J 0 40 Y N 1 F N
@ -241,7 +264,7 @@ X ADC_8/A7 8 -1950 -250 200 R 50 50 1 1 I
X ADC_7/A6 9 -1950 -150 200 R 50 50 1 1 I X ADC_7/A6 9 -1950 -150 200 R 50 50 1 1 I
X ADC_6/A5 10 -1950 -50 200 R 50 50 1 1 I X ADC_6/A5 10 -1950 -50 200 R 50 50 1 1 I
X +5V 20 1950 850 200 L 50 50 1 1 w X +5V 20 1950 850 200 L 50 50 1 1 w
X A11 30 1950 -150 200 L 50 50 1 1 I X PWM1_4/CAN1_RD/USB_DM/PA11 30 1950 -150 200 L 50 50 1 1 I
X ADC_5/A4 11 -1950 50 200 R 50 50 1 1 I X ADC_5/A4 11 -1950 50 200 R 50 50 1 1 I
X B9 21 1950 750 200 L 50 50 1 1 I X B9 21 1950 750 200 L 50 50 1 1 I
X PWM1_3/Serial1_RX/D2/PA10 31 1950 -250 200 L 50 50 1 1 I X PWM1_3/Serial1_RX/D2/PA10 31 1950 -250 200 L 50 50 1 1 I
@ -264,7 +287,7 @@ X C14 17 -1950 650 200 R 50 50 1 1 I
X B3 27 1950 150 200 L 50 50 1 1 I X B3 27 1950 150 200 L 50 50 1 1 I
X B12 37 1950 -850 200 L 50 50 1 1 I X B12 37 1950 -850 200 L 50 50 1 1 I
X C13 18 -1950 750 200 R 50 50 1 1 I X C13 18 -1950 750 200 R 50 50 1 1 I
X A15 28 1950 50 200 L 50 50 1 1 I X PWM2_1/SPI1_NSS/A15 28 1950 50 200 L 50 50 1 1 I
X VBAT 19 -1950 850 200 R 50 50 1 1 I X VBAT 19 -1950 850 200 R 50 50 1 1 I
X A12 29 1950 -50 200 L 50 50 1 1 I X A12 29 1950 -50 200 L 50 50 1 1 I
ENDDRAW ENDDRAW

361
velocomputer/velocomputer.bak

@ -351,78 +351,6 @@ F 3 "" H 900 3250 50 0001 C CNN
$EndComp $EndComp
Text Label 650 1000 0 60 ~ 0 Text Label 650 1000 0 60 ~ 0
VBAT VBAT
Wire Wire Line
1000 1600 1600 1600
Wire Wire Line
1000 1400 1600 1400
Wire Wire Line
2650 1600 2800 1600
Wire Wire Line
2650 1400 2650 1700
Wire Wire Line
2400 1000 2400 750
Wire Wire Line
2400 750 2800 750
Wire Wire Line
2400 1200 2400 1050
Wire Wire Line
2400 1050 3100 1050
Wire Wire Line
2800 950 2800 1300
Connection ~ 2800 1050
Wire Wire Line
3400 1050 4400 1050
Connection ~ 2650 1600
Wire Wire Line
2800 1300 2900 1300
Wire Wire Line
3200 1550 3200 2100
Connection ~ 3200 2100
Wire Wire Line
3500 1300 3700 1300
Wire Wire Line
3700 1050 3700 1900
Connection ~ 3700 1050
Connection ~ 3700 1300
Wire Wire Line
3700 1600 3000 1600
Wire Wire Line
2650 1400 2400 1400
Wire Wire Line
2400 1600 2400 2100
Wire Wire Line
2400 2100 3700 2100
Connection ~ 4100 1050
Connection ~ 3700 1600
Wire Wire Line
4100 1050 4100 1500
Wire Wire Line
650 1000 1600 1000
Wire Wire Line
1000 1000 1000 1200
Wire Wire Line
1000 1200 1400 1200
Connection ~ 1000 1000
Wire Wire Line
4100 1700 4100 2300
Wire Wire Line
3100 1300 3300 1300
Wire Wire Line
3200 1350 3200 1300
Connection ~ 3200 1300
Wire Wire Line
6150 800 6400 800
Wire Wire Line
6200 1300 6400 1300
Wire Wire Line
6400 1000 6400 1100
Wire Wire Line
6400 1050 6500 1050
Connection ~ 6400 1050
Wire Wire Line
950 3150 1550 3150
Wire Wire Line
1550 3250 900 3250
$Comp $Comp
L VDD #PWR010 L VDD #PWR010
U 1 1 594C20AE U 1 1 594C20AE
@ -445,21 +373,12 @@ F 3 "" H 1300 3150 50 0001 C CNN
1 1300 3150 1 1300 3150
1 0 0 -1 1 0 0 -1
$EndComp $EndComp
Connection ~ 1300 3150
Wire Wire Line
1550 3350 1100 3350
Text Label 1100 3350 0 60 ~ 0 Text Label 1100 3350 0 60 ~ 0
AMP_LO AMP_LO
Wire Wire Line
1550 3450 1100 3450
Text Label 1100 3450 0 60 ~ 0 Text Label 1100 3450 0 60 ~ 0
AMP_HI AMP_HI
Wire Wire Line
1550 3550 1100 3550
Text Label 1100 3550 0 60 ~ 0 Text Label 1100 3550 0 60 ~ 0
HALL HALL
Wire Wire Line
1550 3650 1100 3650
Text Label 1100 3650 0 60 ~ 0 Text Label 1100 3650 0 60 ~ 0
THROTTLE THROTTLE
Text Label 4400 1050 0 60 ~ 0 Text Label 4400 1050 0 60 ~ 0
@ -501,15 +420,6 @@ F 3 "" H 6400 2150 50 0001 C CNN
$EndComp $EndComp
Text Label 6500 2000 0 60 ~ 0 Text Label 6500 2000 0 60 ~ 0
AMP_LO_SIG AMP_LO_SIG
Wire Wire Line
6200 1750 6400 1750
Wire Wire Line
6200 2250 6400 2250
Wire Wire Line
6400 1950 6400 2050
Wire Wire Line
6400 2000 6500 2000
Connection ~ 6400 2000
Text Label 7000 1750 0 60 ~ 0 Text Label 7000 1750 0 60 ~ 0
AMP_HI AMP_HI
$Comp $Comp
@ -547,15 +457,6 @@ F 3 "" H 7200 2150 50 0001 C CNN
$EndComp $EndComp
Text Label 7300 2000 0 60 ~ 0 Text Label 7300 2000 0 60 ~ 0
AMP_HI_SIG AMP_HI_SIG
Wire Wire Line
7000 1750 7200 1750
Wire Wire Line
7000 2250 7200 2250
Wire Wire Line
7200 1950 7200 2050
Wire Wire Line
7200 2000 7300 2000
Connection ~ 7200 2000
Text Label 6150 2600 0 60 ~ 0 Text Label 6150 2600 0 60 ~ 0
HALL HALL
$Comp $Comp
@ -593,15 +494,6 @@ F 3 "" H 6350 3000 50 0001 C CNN
$EndComp $EndComp
Text Label 6450 2850 0 60 ~ 0 Text Label 6450 2850 0 60 ~ 0
HALL_SIG HALL_SIG
Wire Wire Line
6150 2600 6350 2600
Wire Wire Line
6150 3100 6350 3100
Wire Wire Line
6350 2800 6350 2900
Wire Wire Line
6350 2850 6450 2850
Connection ~ 6350 2850
$Comp $Comp
L GND #PWR015 L GND #PWR015
U 1 1 5967D7B9 U 1 1 5967D7B9
@ -615,32 +507,18 @@ F 3 "" H 9600 2800 50 0001 C CNN
$EndComp $EndComp
NoConn ~ 9600 1000 NoConn ~ 9600 1000
NoConn ~ 9600 2600 NoConn ~ 9600 2600
Wire Wire Line
13500 1000 13850 1000
Text Label 13850 1000 0 60 ~ 0 Text Label 13850 1000 0 60 ~ 0
5V 5V
Wire Wire Line
9600 1400 9000 1400
Text Label 9000 1400 0 60 ~ 0 Text Label 9000 1400 0 60 ~ 0
BAT_SIG BAT_SIG
Wire Wire Line
9600 1500 9000 1500
Text Label 9000 1500 0 60 ~ 0 Text Label 9000 1500 0 60 ~ 0
AMP_LO_SIG AMP_LO_SIG
Wire Wire Line
9600 1600 9000 1600
Text Label 9000 1600 0 60 ~ 0 Text Label 9000 1600 0 60 ~ 0
AMP_HI_SIG AMP_HI_SIG
Wire Wire Line
9600 1200 9000 1200
Text Label 9000 1200 0 60 ~ 0 Text Label 9000 1200 0 60 ~ 0
HALL_SIG HALL_SIG
NoConn ~ 9600 1100 NoConn ~ 9600 1100
NoConn ~ 9600 1300 NoConn ~ 9600 1300
Wire Wire Line
9600 1800 9000 1800
Text Label 9000 1800 0 60 ~ 0
THROTTLE
NoConn ~ 9600 1700 NoConn ~ 9600 1700
NoConn ~ 9600 2300 NoConn ~ 9600 2300
NoConn ~ 9600 2200 NoConn ~ 9600 2200
@ -654,7 +532,6 @@ NoConn ~ 13500 1400
NoConn ~ 13500 1500 NoConn ~ 13500 1500
NoConn ~ 13500 1600 NoConn ~ 13500 1600
NoConn ~ 13500 1700 NoConn ~ 13500 1700
NoConn ~ 13500 1800
NoConn ~ 13500 1900 NoConn ~ 13500 1900
NoConn ~ 13500 2000 NoConn ~ 13500 2000
NoConn ~ 13500 2300 NoConn ~ 13500 2300
@ -673,12 +550,8 @@ F 3 "" H 3200 4050 50 0001 C CNN
1 3200 4050 1 3200 4050
1 0 0 -1 1 0 0 -1
$EndComp $EndComp
Wire Wire Line
2400 3900 3000 3900
Text Label 2400 3900 0 60 ~ 0 Text Label 2400 3900 0 60 ~ 0
5V 5V
Wire Wire Line
3000 4000 2300 4000
$Comp $Comp
L GND #PWR016 L GND #PWR016
U 1 1 5968273D U 1 1 5968273D
@ -690,14 +563,6 @@ F 3 "" H 2300 4000 50 0001 C CNN
1 2300 4000 1 2300 4000
1 0 0 -1 1 0 0 -1
$EndComp $EndComp
Wire Wire Line
3000 4100 2450 4100
Wire Wire Line
3000 4200 2450 4200
Wire Wire Line
13500 2100 14050 2100
Wire Wire Line
13500 2200 14050 2200
Text Label 14050 2100 0 60 ~ 0 Text Label 14050 2100 0 60 ~ 0
SERIAL_RX SERIAL_RX
Text Label 14050 2200 0 60 ~ 0 Text Label 14050 2200 0 60 ~ 0
@ -717,36 +582,230 @@ F 3 "" H 2800 3300 50 0001 C CNN
1 2800 3300 1 2800 3300
1 0 0 -1 1 0 0 -1
$EndComp $EndComp
Wire Wire Line
9600 2700 9000 2700
Text Label 9000 2700 0 60 ~ 0 Text Label 9000 2700 0 60 ~ 0
3V 3V
Wire Wire Line
2600 3150 2200 3150
Text Label 2200 3150 0 60 ~ 0 Text Label 2200 3150 0 60 ~ 0
3V 3V
Wire Wire Line
2600 3250 2200 3250
Wire Wire Line
1100 2200 1400 2200
Text Label 1400 2200 0 60 ~ 0 Text Label 1400 2200 0 60 ~ 0
GND GND
Text Label 2200 3250 0 60 ~ 0 Text Label 2200 3250 0 60 ~ 0
GND GND
Wire Wire Line
2600 3350 2200 3350
Wire Wire Line
2600 3450 2200 3450
Text Label 2200 3350 0 60 ~ 0 Text Label 2200 3350 0 60 ~ 0
I2C_SCL I2C_SCL
Text Label 2200 3450 0 60 ~ 0 Text Label 2200 3450 0 60 ~ 0
I2C_SDA I2C_SDA
Wire Wire Line
9600 2400 9000 2400
Wire Wire Line
9600 2500 9000 2500
Text Label 9000 2400 0 60 ~ 0 Text Label 9000 2400 0 60 ~ 0
I2C_SCL I2C_SCL
Text Label 9000 2500 0 60 ~ 0 Text Label 9000 2500 0 60 ~ 0
I2C_SDA I2C_SDA
$Comp
L BC856 Q?
U 1 1 596E83E6
P 6200 3900
F 0 "Q?" H 6400 3975 50 0000 L CNN
F 1 "BC856" H 6400 3900 50 0000 L CNN
F 2 "TO_SOT_Packages_SMD:SOT-23" H 6400 3825 50 0001 L CIN
F 3 "" H 6200 3900 50 0001 L CNN
1 6200 3900
0 1 1 0
$EndComp
Text Label 6000 4450 0 60 ~ 0
5V
$Comp
L R_Small R?
U 1 1 596E8742
P 6650 4000
F 0 "R?" H 6680 4020 50 0000 L CNN
F 1 "R_Small" H 6680 3960 50 0000 L CNN
F 2 "" H 6650 4000 50 0001 C CNN
F 3 "" H 6650 4000 50 0001 C CNN
1 6650 4000
0 -1 -1 0
$EndComp
$Comp
L C_Small C?
U 1 1 596E8991
P 6900 4100
F 0 "C?" H 6910 4170 50 0000 L CNN
F 1 "C_Small" H 6910 4020 50 0000 L CNN
F 2 "" H 6900 4100 50 0001 C CNN
F 3 "" H 6900 4100 50 0001 C CNN
1 6900 4100
1 0 0 -1
$EndComp
$Comp
L GND #PWR?
U 1 1 596E8A86
P 6900 4350
F 0 "#PWR?" H 6900 4100 50 0001 C CNN
F 1 "GND" H 6900 4200 50 0000 C CNN
F 2 "" H 6900 4350 50 0001 C CNN
F 3 "" H 6900 4350 50 0001 C CNN
1 6900 4350
1 0 0 -1
$EndComp
Text Label 7250 4000 0 60 ~ 0
THROTTLE
Wire Wire Line
1000 1600 1600 1600
Wire Wire Line
1000 1400 1600 1400
Wire Wire Line
2650 1600 2800 1600
Wire Wire Line
2650 1400 2650 1700
Wire Wire Line
2400 1000 2400 750
Wire Wire Line
2400 750 2800 750
Wire Wire Line
2400 1200 2400 1050
Wire Wire Line
2400 1050 3100 1050
Wire Wire Line
2800 950 2800 1300
Connection ~ 2800 1050
Wire Wire Line
3400 1050 4400 1050
Connection ~ 2650 1600
Wire Wire Line
2800 1300 2900 1300
Wire Wire Line
3200 1550 3200 2100
Connection ~ 3200 2100
Wire Wire Line
3500 1300 3700 1300
Wire Wire Line
3700 1050 3700 1900
Connection ~ 3700 1050
Connection ~ 3700 1300
Wire Wire Line
3700 1600 3000 1600
Wire Wire Line
2650 1400 2400 1400
Wire Wire Line
2400 1600 2400 2100
Wire Wire Line
2400 2100 3700 2100
Connection ~ 4100 1050
Connection ~ 3700 1600
Wire Wire Line
4100 1050 4100 1500
Wire Wire Line
650 1000 1600 1000
Wire Wire Line
1000 1000 1000 1200
Wire Wire Line
1000 1200 1400 1200
Connection ~ 1000 1000
Wire Wire Line
4100 1700 4100 2300
Wire Wire Line
3100 1300 3300 1300
Wire Wire Line
3200 1350 3200 1300
Connection ~ 3200 1300
Wire Wire Line
6150 800 6400 800
Wire Wire Line
6200 1300 6400 1300
Wire Wire Line
6400 1000 6400 1100
Wire Wire Line
6400 1050 6500 1050
Connection ~ 6400 1050
Wire Wire Line
950 3150 1550 3150
Wire Wire Line
1550 3250 900 3250
Connection ~ 1300 3150
Wire Wire Line
1550 3350 1100 3350
Wire Wire Line
1550 3450 1100 3450
Wire Wire Line
1550 3550 1100 3550
Wire Wire Line
1550 3650 1100 3650
Wire Wire Line
6200 1750 6400 1750
Wire Wire Line
6200 2250 6400 2250
Wire Wire Line
6400 1950 6400 2050
Wire Wire Line
6400 2000 6500 2000
Connection ~ 6400 2000
Wire Wire Line
7000 1750 7200 1750
Wire Wire Line
7000 2250 7200 2250
Wire Wire Line
7200 1950 7200 2050
Wire Wire Line
7200 2000 7300 2000
Connection ~ 7200 2000
Wire Wire Line
6150 2600 6350 2600
Wire Wire Line
6150 3100 6350 3100
Wire Wire Line
6350 2800 6350 2900
Wire Wire Line
6350 2850 6450 2850
Connection ~ 6350 2850
Wire Wire Line
13500 1000 13850 1000
Wire Wire Line
9600 1400 9000 1400
Wire Wire Line
9600 1500 9000 1500
Wire Wire Line
9600 1600 9000 1600
Wire Wire Line
9600 1200 9000 1200
Wire Wire Line
2400 3900 3000 3900
Wire Wire Line
3000 4000 2300 4000
Wire Wire Line
3000 4100 2450 4100
Wire Wire Line
3000 4200 2450 4200
Wire Wire Line
13500 2100 14050 2100
Wire Wire Line
13500 2200 14050 2200
Wire Wire Line
9600 2700 9000 2700
Wire Wire Line
2600 3150 2200 3150
Wire Wire Line
2600 3250 2200 3250
Wire Wire Line
1100 2200 1400 2200
Wire Wire Line
2600 3350 2200 3350
Wire Wire Line
2600 3450 2200 3450
Wire Wire Line
9600 2400 9000 2400
Wire Wire Line
9600 2500 9000 2500
Wire Wire Line
6000 4000 6000 4450
Wire Wire Line
6400 4000 6550 4000
Wire Wire Line
6750 4000 7250 4000
Wire Wire Line
6900 4200 6900 4350
Connection ~ 6900 4000
Wire Wire Line
13500 1800 14050 1800
Text Label 14050 1800 0 60 ~ 0
THROTTLE_PWM
Text Label 6200 3700 0 60 ~ 0
THROTTLE_PWM
NoConn ~ 9600 1800
$EndSCHEMATC $EndSCHEMATC

361
velocomputer/velocomputer.sch

@ -351,78 +351,6 @@ F 3 "" H 900 3250 50 0001 C CNN
$EndComp $EndComp
Text Label 650 1000 0 60 ~ 0 Text Label 650 1000 0 60 ~ 0
VBAT VBAT
Wire Wire Line
1000 1600 1600 1600
Wire Wire Line
1000 1400 1600 1400
Wire Wire Line
2650 1600 2800 1600
Wire Wire Line
2650 1400 2650 1700
Wire Wire Line
2400 1000 2400 750
Wire Wire Line
2400 750 2800 750
Wire Wire Line
2400 1200 2400 1050
Wire Wire Line
2400 1050 3100 1050
Wire Wire Line
2800 950 2800 1300
Connection ~ 2800 1050
Wire Wire Line
3400 1050 4400 1050
Connection ~ 2650 1600
Wire Wire Line
2800 1300 2900 1300
Wire Wire Line
3200 1550 3200 2100
Connection ~ 3200 2100
Wire Wire Line
3500 1300 3700 1300
Wire Wire Line
3700 1050 3700 1900
Connection ~ 3700 1050
Connection ~ 3700 1300
Wire Wire Line
3700 1600 3000 1600
Wire Wire Line
2650 1400 2400 1400
Wire Wire Line
2400 1600 2400 2100
Wire Wire Line
2400 2100 3700 2100
Connection ~ 4100 1050
Connection ~ 3700 1600
Wire Wire Line
4100 1050 4100 1500
Wire Wire Line
650 1000 1600 1000
Wire Wire Line
1000 1000 1000 1200
Wire Wire Line
1000 1200 1400 1200
Connection ~ 1000 1000
Wire Wire Line
4100 1700 4100 2300
Wire Wire Line
3100 1300 3300 1300
Wire Wire Line
3200 1350 3200 1300
Connection ~ 3200 1300
Wire Wire Line
6150 800 6400 800
Wire Wire Line
6200 1300 6400 1300
Wire Wire Line
6400 1000 6400 1100
Wire Wire Line
6400 1050 6500 1050
Connection ~ 6400 1050
Wire Wire Line
950 3150 1550 3150
Wire Wire Line
1550 3250 900 3250
$Comp $Comp
L VDD #PWR010 L VDD #PWR010
U 1 1 594C20AE U 1 1 594C20AE
@ -445,21 +373,12 @@ F 3 "" H 1300 3150 50 0001 C CNN
1 1300 3150 1 1300 3150
1 0 0 -1 1 0 0 -1
$EndComp $EndComp
Connection ~ 1300 3150
Wire Wire Line
1550 3350 1100 3350
Text Label 1100 3350 0 60 ~ 0 Text Label 1100 3350 0 60 ~ 0
AMP_LO AMP_LO
Wire Wire Line
1550 3450 1100 3450
Text Label 1100 3450 0 60 ~ 0 Text Label 1100 3450 0 60 ~ 0
AMP_HI AMP_HI
Wire Wire Line
1550 3550 1100 3550
Text Label 1100 3550 0 60 ~ 0 Text Label 1100 3550 0 60 ~ 0
HALL HALL
Wire Wire Line
1550 3650 1100 3650
Text Label 1100 3650 0 60 ~ 0 Text Label 1100 3650 0 60 ~ 0
THROTTLE THROTTLE
Text Label 4400 1050 0 60 ~ 0 Text Label 4400 1050 0 60 ~ 0
@ -501,15 +420,6 @@ F 3 "" H 6400 2150 50 0001 C CNN
$EndComp $EndComp
Text Label 6500 2000 0 60 ~ 0 Text Label 6500 2000 0 60 ~ 0
AMP_LO_SIG AMP_LO_SIG
Wire Wire Line
6200 1750 6400 1750
Wire Wire Line
6200 2250 6400 2250
Wire Wire Line
6400 1950 6400 2050
Wire Wire Line
6400 2000 6500 2000
Connection ~ 6400 2000
Text Label 7000 1750 0 60 ~ 0 Text Label 7000 1750 0 60 ~ 0
AMP_HI AMP_HI
$Comp $Comp
@ -547,15 +457,6 @@ F 3 "" H 7200 2150 50 0001 C CNN
$EndComp $EndComp
Text Label 7300 2000 0 60 ~ 0 Text Label 7300 2000 0 60 ~ 0
AMP_HI_SIG AMP_HI_SIG
Wire Wire Line
7000 1750 7200 1750
Wire Wire Line
7000 2250 7200 2250
Wire Wire Line
7200 1950 7200 2050
Wire Wire Line
7200 2000 7300 2000
Connection ~ 7200 2000
Text Label 6150 2600 0 60 ~ 0 Text Label 6150 2600 0 60 ~ 0
HALL HALL
$Comp $Comp
@ -593,15 +494,6 @@ F 3 "" H 6350 3000 50 0001 C CNN
$EndComp $EndComp
Text Label 6450 2850 0 60 ~ 0 Text Label 6450 2850 0 60 ~ 0
HALL_SIG HALL_SIG
Wire Wire Line
6150 2600 6350 2600
Wire Wire Line
6150 3100 6350 3100
Wire Wire Line
6350 2800 6350 2900
Wire Wire Line
6350 2850 6450 2850
Connection ~ 6350 2850
$Comp $Comp
L GND #PWR015 L GND #PWR015
U 1 1 5967D7B9 U 1 1 5967D7B9
@ -615,32 +507,18 @@ F 3 "" H 9600 2800 50 0001 C CNN
$EndComp $EndComp
NoConn ~ 9600 1000 NoConn ~ 9600 1000
NoConn ~ 9600 2600 NoConn ~ 9600 2600
Wire Wire Line
13500 1000 13850 1000
Text Label 13850 1000 0 60 ~ 0 Text Label 13850 1000 0 60 ~ 0
5V 5V
Wire Wire Line
9600 1400 9000 1400
Text Label 9000 1400 0 60 ~ 0 Text Label 9000 1400 0 60 ~ 0
BAT_SIG BAT_SIG
Wire Wire Line
9600 1500 9000 1500
Text Label 9000 1500 0 60 ~ 0 Text Label 9000 1500 0 60 ~ 0
AMP_LO_SIG AMP_LO_SIG
Wire Wire Line
9600 1600 9000 1600
Text Label 9000 1600 0 60 ~ 0 Text Label 9000 1600 0 60 ~ 0
AMP_HI_SIG AMP_HI_SIG
Wire Wire Line
9600 1200 9000 1200
Text Label 9000 1200 0 60 ~ 0 Text Label 9000 1200 0 60 ~ 0
HALL_SIG HALL_SIG
NoConn ~ 9600 1100 NoConn ~ 9600 1100
NoConn ~ 9600 1300 NoConn ~ 9600 1300
Wire Wire Line
9600 1800 9000 1800
Text Label 9000 1800 0 60 ~ 0
THROTTLE
NoConn ~ 9600 1700 NoConn ~ 9600 1700
NoConn ~ 9600 2300 NoConn ~ 9600 2300
NoConn ~ 9600 2200 NoConn ~ 9600 2200
@ -654,7 +532,6 @@ NoConn ~ 13500 1400
NoConn ~ 13500 1500 NoConn ~ 13500 1500
NoConn ~ 13500 1600 NoConn ~ 13500 1600
NoConn ~ 13500 1700 NoConn ~ 13500 1700
NoConn ~ 13500 1800
NoConn ~ 13500 1900 NoConn ~ 13500 1900
NoConn ~ 13500 2000 NoConn ~ 13500 2000
NoConn ~ 13500 2300 NoConn ~ 13500 2300
@ -673,12 +550,8 @@ F 3 "" H 3200 4050 50 0001 C CNN
1 3200 4050 1 3200 4050
1 0 0 -1 1 0 0 -1
$EndComp $EndComp
Wire Wire Line
2400 3900 3000 3900
Text Label 2400 3900 0 60 ~ 0 Text Label 2400 3900 0 60 ~ 0
5V 5V
Wire Wire Line
3000 4000 2300 4000
$Comp $Comp
L GND #PWR016 L GND #PWR016
U 1 1 5968273D U 1 1 5968273D
@ -690,14 +563,6 @@ F 3 "" H 2300 4000 50 0001 C CNN
1 2300 4000 1 2300 4000
1 0 0 -1 1 0 0 -1
$EndComp $EndComp
Wire Wire Line
3000 4100 2450 4100
Wire Wire Line
3000 4200 2450 4200
Wire Wire Line
13500 2100 14050 2100
Wire Wire Line
13500 2200 14050 2200
Text Label 14050 2100 0 60 ~ 0 Text Label 14050 2100 0 60 ~ 0
SERIAL_RX SERIAL_RX
Text Label 14050 2200 0 60 ~ 0 Text Label 14050 2200 0 60 ~ 0
@ -717,36 +582,230 @@ F 3 "" H 2800 3300 50 0001 C CNN
1 2800 3300 1 2800 3300
1 0 0 -1 1 0 0 -1
$EndComp $EndComp
Wire Wire Line
9600 2700 9000 2700
Text Label 9000 2700 0 60 ~ 0 Text Label 9000 2700 0 60 ~ 0
3V 3V
Wire Wire Line
2600 3150 2200 3150
Text Label 2200 3150 0 60 ~ 0 Text Label 2200 3150 0 60 ~ 0
3V 3V
Wire Wire Line
2600 3250 2200 3250
Wire Wire Line
1100 2200 1400 2200
Text Label 1400 2200 0 60 ~ 0 Text Label 1400 2200 0 60 ~ 0
GND GND
Text Label 2200 3250 0 60 ~ 0 Text Label 2200 3250 0 60 ~ 0
GND GND
Wire Wire Line
2600 3350 2200 3350
Wire Wire Line
2600 3450 2200 3450
Text Label 2200 3350 0 60 ~ 0 Text Label 2200 3350 0 60 ~ 0
I2C_SCL I2C_SCL
Text Label 2200 3450 0 60 ~ 0 Text Label 2200 3450 0 60 ~ 0
I2C_SDA I2C_SDA
Wire Wire Line
9600 2400 9000 2400
Wire Wire Line
9600 2500 9000 2500
Text Label 9000 2400 0 60 ~ 0 Text Label 9000 2400 0 60 ~ 0
I2C_SCL I2C_SCL
Text Label 9000 2500 0 60 ~ 0 Text Label 9000 2500 0 60 ~ 0
I2C_SDA I2C_SDA
$Comp
L BC856 Q?
U 1 1 596E83E6
P 6200 3900
F 0 "Q?" H 6400 3975 50 0000 L CNN
F 1 "BC856" H 6400 3900 50 0000 L CNN
F 2 "TO_SOT_Packages_SMD:SOT-23" H 6400 3825 50 0001 L CIN
F 3 "" H 6200 3900 50 0001 L CNN
1 6200 3900
0 1 1 0
$EndComp
Text Label 6000 4450 0 60 ~ 0
5V
$Comp
L R_Small R?
U 1 1 596E8742
P 6650 4000
F 0 "R?" H 6680 4020 50 0000 L CNN
F 1 "R_Small" H 6680 3960 50 0000 L CNN
F 2 "" H 6650 4000 50 0001 C CNN
F 3 "" H 6650 4000 50 0001 C CNN
1 6650 4000
0 -1 -1 0
$EndComp
$Comp
L C_Small C?
U 1 1 596E8991
P 6900 4100
F 0 "C?" H 6910 4170 50 0000 L CNN
F 1 "C_Small" H 6910 4020 50 0000 L CNN
F 2 "" H 6900 4100 50 0001 C CNN
F 3 "" H 6900 4100 50 0001 C CNN
1 6900 4100
1 0 0 -1
$EndComp
$Comp
L GND #PWR?
U 1 1 596E8A86
P 6900 4350
F 0 "#PWR?" H 6900 4100 50 0001 C CNN
F 1 "GND" H 6900 4200 50 0000 C CNN
F 2 "" H 6900 4350 50 0001 C CNN
F 3 "" H 6900 4350 50 0001 C CNN
1 6900 4350
1 0 0 -1
$EndComp
Text Label 7250 4000 0 60 ~ 0
THROTTLE
Wire Wire Line
1000 1600 1600 1600
Wire Wire Line
1000 1400 1600 1400
Wire Wire Line
2650 1600 2800 1600
Wire Wire Line
2650 1400 2650 1700
Wire Wire Line
2400 1000 2400 750
Wire Wire Line
2400 750 2800 750
Wire Wire Line
2400 1200 2400 1050
Wire Wire Line
2400 1050 3100 1050
Wire Wire Line
2800 950 2800 1300
Connection ~ 2800 1050
Wire Wire Line
3400 1050 4400 1050
Connection ~ 2650 1600
Wire Wire Line
2800 1300 2900 1300
Wire Wire Line
3200 1550 3200 2100
Connection ~ 3200 2100
Wire Wire Line
3500 1300 3700 1300
Wire Wire Line
3700 1050 3700 1900
Connection ~ 3700 1050
Connection ~ 3700 1300
Wire Wire Line
3700 1600 3000 1600
Wire Wire Line
2650 1400 2400 1400
Wire Wire Line
2400 1600 2400 2100
Wire Wire Line
2400 2100 3700 2100
Connection ~ 4100 1050
Connection ~ 3700 1600
Wire Wire Line
4100 1050 4100 1500
Wire Wire Line
650 1000 1600 1000
Wire Wire Line
1000 1000 1000 1200
Wire Wire Line
1000 1200 1400 1200
Connection ~ 1000 1000
Wire Wire Line
4100 1700 4100 2300
Wire Wire Line
3100 1300 3300 1300
Wire Wire Line
3200 1350 3200 1300
Connection ~ 3200 1300
Wire Wire Line
6150 800 6400 800
Wire Wire Line
6200 1300 6400 1300
Wire Wire Line
6400 1000 6400 1100
Wire Wire Line
6400 1050 6500 1050
Connection ~ 6400 1050
Wire Wire Line
950 3150 1550 3150
Wire Wire Line
1550 3250 900 3250
Connection ~ 1300 3150
Wire Wire Line
1550 3350 1100 3350
Wire Wire Line
1550 3450 1100 3450
Wire Wire Line
1550 3550 1100 3550
Wire Wire Line
1550 3650 1100 3650
Wire Wire Line
6200 1750 6400 1750
Wire Wire Line
6200 2250 6400 2250
Wire Wire Line
6400 1950 6400 2050
Wire Wire Line
6400 2000 6500 2000
Connection ~ 6400 2000
Wire Wire Line
7000 1750 7200 1750
Wire Wire Line
7000 2250 7200 2250
Wire Wire Line
7200 1950 7200 2050
Wire Wire Line
7200 2000 7300 2000
Connection ~ 7200 2000
Wire Wire Line
6150 2600 6350 2600
Wire Wire Line
6150 3100 6350 3100
Wire Wire Line
6350 2800 6350 2900
Wire Wire Line
6350 2850 6450 2850
Connection ~ 6350 2850
Wire Wire Line
13500 1000 13850 1000
Wire Wire Line
9600 1400 9000 1400
Wire Wire Line
9600 1500 9000 1500
Wire Wire Line
9600 1600 9000 1600
Wire Wire Line
9600 1200 9000 1200
Wire Wire Line
2400 3900 3000 3900
Wire Wire Line
3000 4000 2300 4000
Wire Wire Line
3000 4100 2450 4100
Wire Wire Line
3000 4200 2450 4200
Wire Wire Line
13500 2100 14050 2100
Wire Wire Line
13500 2200 14050 2200
Wire Wire Line
9600 2700 9000 2700
Wire Wire Line
2600 3150 2200 3150
Wire Wire Line
2600 3250 2200 3250
Wire Wire Line
1100 2200 1400 2200
Wire Wire Line
2600 3350 2200 3350
Wire Wire Line
2600 3450 2200 3450
Wire Wire Line
9600 2400 9000 2400
Wire Wire Line
9600 2500 9000 2500
Wire Wire Line
6000 4000 6000 4450
Wire Wire Line
6400 4000 6550 4000
Wire Wire Line
6750 4000 7250 4000
Wire Wire Line
6900 4200 6900 4350
Connection ~ 6900 4000
Wire Wire Line
13500 1800 14050 1800
Text Label 14050 1800 0 60 ~ 0
THROTTLE_PWM
Text Label 6200 3700 0 60 ~ 0
THROTTLE_PWM
NoConn ~ 9600 1800
$EndSCHEMATC $EndSCHEMATC

Loading…
Cancel
Save