Commit 49801845 authored by Jan Koniarik's avatar Jan Koniarik
Browse files

wololo

parent d04b539c
# inspired based on https://github.com/olikraus/scad/blob/master/train_tube_track/Makefile
EXAMPLE_SCAD=$(wildcard example/*.scad)
EXAMPLE_STL=$(addprefix example/, $(notdir $(EXAMPLE_SCAD:.scad=.stl)))
EXAMPLE_PNG=$(addprefix example/, $(notdir $(EXAMPLE_SCAD:.scad=.png)))
EXAMPLE_STL=$(EXAMPLE_SCAD:.scad=.stl)
EXAMPLE_PNG=$(EXAMPLE_SCAD:.scad=.png)
example/%.stl: example/%.scad
openscad $< -D \$$fn=64 -o $@
......
## Front
![front](pic/base1.jpg)
## Back
![back](pic/base2.jpg)
## Scheme
![scheme](pic/scheme-1.jpg)
This diff is collapsed.
EESchema Schematic File Version 4
EELAYER 30 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 1 1
Title ""
Date ""
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$Comp
L Device:LED D1
U 1 1 5E011663
P 8500 1600
F 0 "D1" V 8550 1400 50 0000 C CNN
F 1 "LED" V 8450 1400 50 0000 C CNN
F 2 "LED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolder" H 8500 1600 50 0001 C CNN
F 3 "~" H 8500 1600 50 0001 C CNN
1 8500 1600
0 -1 -1 0
$EndComp
$Comp
L power:+3.3V #PWR03
U 1 1 5E011E33
P 8500 950
F 0 "#PWR03" H 8500 800 50 0001 C CNN
F 1 "+3.3V" H 8400 1100 50 0000 L CNN
F 2 "" H 8500 950 50 0001 C CNN
F 3 "" H 8500 950 50 0001 C CNN
1 8500 950
1 0 0 -1
$EndComp
Wire Wire Line
8500 1900 8500 1750
Wire Wire Line
8500 1450 8500 1300
Wire Wire Line
8500 1100 8500 950
$Comp
L Device:C_Small C4
U 1 1 5E035A88
P 4250 3200
F 0 "C4" V 4400 3200 50 0000 C CNN
F 1 "100nf" V 4500 3200 50 0000 C CNN
F 2 "Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolder" H 4250 3200 50 0001 C CNN
F 3 "~" H 4250 3200 50 0001 C CNN
1 4250 3200
-1 0 0 1
$EndComp
Text GLabel 6150 4250 2 50 Input ~ 0
SWDIO
Text GLabel 6150 4350 2 50 Input ~ 0
SWDCLK
Text GLabel 6150 3150 2 50 Input ~ 0
BUS
$Comp
L Connector:Conn_01x01_Male Hole1
U 1 1 5E097CAC
P 2200 950
F 0 "Hole1" H 2308 1131 50 0000 C CNN
F 1 "Conn_01x01_Male" H 2308 1040 50 0000 C CNN
F 2 "MountingHole:MountingHole_2.2mm_M2" H 2200 950 50 0001 C CNN
F 3 "~" H 2200 950 50 0001 C CNN
1 2200 950
1 0 0 -1
$EndComp
Text GLabel 2500 2100 2 50 Input ~ 0
SWDIO
Text GLabel 2500 2300 2 50 Input ~ 0
SWDCLK
$Comp
L power:GND #PWR0114
U 1 1 5E0DCF9F
P 2350 2450
F 0 "#PWR0114" H 2350 2200 50 0001 C CNN
F 1 "GND" V 2355 2322 50 0000 R CNN
F 2 "" H 2350 2450 50 0001 C CNN
F 3 "" H 2350 2450 50 0001 C CNN
1 2350 2450
-1 0 0 -1
$EndComp
Text GLabel 6150 3650 2 50 Input ~ 0
SPI_MOSI
Text GLabel 6150 3550 2 50 Input ~ 0
SPI_MISO
Text GLabel 6150 3450 2 50 Input ~ 0
SPI_CLK
Text GLabel 6150 3950 2 50 Input ~ 0
USART1_RX
Text GLabel 6150 3850 2 50 Input ~ 0
USART1_TX
Text GLabel 10350 5450 2 50 Input ~ 0
I2C_CLK
Wire Wire Line
7750 1900 7750 1750
Wire Wire Line
7700 950 7750 950
$Comp
L Device:R_Small R1
U 1 1 5E011A93
P 8500 1200
F 0 "R1" H 8300 1150 50 0000 C CNN
F 1 "R_Small" H 8300 1250 50 0000 C CNN
F 2 "Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder" H 8500 1200 50 0001 C CNN
F 3 "~" H 8500 1200 50 0001 C CNN
1 8500 1200
-1 0 0 1
$EndComp
Wire Wire Line
7750 1450 7750 1300
$Comp
L Device:LED D2
U 1 1 5E2262A5
P 7750 1600
F 0 "D2" V 7800 1400 50 0000 C CNN
F 1 "LED" V 7700 1400 50 0000 C CNN
F 2 "LED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolder" H 7750 1600 50 0001 C CNN
F 3 "~" H 7750 1600 50 0001 C CNN
1 7750 1600
0 -1 -1 0
$EndComp
$Comp
L Device:R_Small R6
U 1 1 5E2262AB
P 7750 1200
F 0 "R6" H 7550 1150 50 0000 C CNN
F 1 "R_Small" H 7550 1250 50 0000 C CNN
F 2 "Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder" H 7750 1200 50 0001 C CNN
F 3 "~" H 7750 1200 50 0001 C CNN
1 7750 1200
-1 0 0 1
$EndComp
$Comp
L power:GND #PWR0115
U 1 1 5E060ED1
P 9000 5250
F 0 "#PWR0115" H 9000 5000 50 0001 C CNN
F 1 "GND" V 9005 5122 50 0000 R CNN
F 2 "" H 9000 5250 50 0001 C CNN
F 3 "" H 9000 5250 50 0001 C CNN
1 9000 5250
-1 0 0 -1
$EndComp
Text GLabel 9500 5450 0 50 Input ~ 0
SPI_MOSI
Text GLabel 9500 5550 0 50 Input ~ 0
SPI_MISO
Text GLabel 9500 5650 0 50 Input ~ 0
SPI_CLK
Text GLabel 10350 5350 2 50 Input ~ 0
I2C_SDA
Text GLabel 5050 3850 0 50 Input ~ 0
PB0
Text GLabel 10350 5750 2 50 Input ~ 0
USART1_RX
Text GLabel 10350 5850 2 50 Input ~ 0
USART1_TX
$Comp
L power:+3.3V #PWR0126
U 1 1 5E0EA665
P 10450 5050
F 0 "#PWR0126" H 10450 4900 50 0001 C CNN
F 1 "+3.3V" V 10465 5178 50 0000 L CNN
F 2 "" H 10450 5050 50 0001 C CNN
F 3 "" H 10450 5050 50 0001 C CNN
1 10450 5050
1 0 0 -1
$EndComp
Text GLabel 6150 2950 2 50 Input ~ 0
ADC0
Text GLabel 6150 3050 2 50 Input ~ 0
ADC1
Text GLabel 9500 5850 0 50 Input ~ 0
ADC0
Text GLabel 9500 5750 0 50 Input ~ 0
ADC1
$Comp
L Connector:Conn_01x03_Male J4
U 1 1 5E114952
P 2050 2200
F 0 "J4" H 2022 2132 50 0000 R CNN
F 1 "Conn_01x03_Male" H 2022 2223 50 0000 R CNN
F 2 "Connector_PinHeader_1.27mm:PinHeader_1x03_P1.27mm_Vertical" H 2050 2200 50 0001 C CNN
F 3 "~" H 2050 2200 50 0001 C CNN
1 2050 2200
1 0 0 1
$EndComp
Text GLabel 7700 950 0 50 Input ~ 0
LED
Text GLabel 5050 3950 0 50 Input ~ 0
LED
Wire Wire Line
7750 1100 7750 950
Wire Wire Line
2250 2300 2500 2300
Wire Wire Line
2500 2100 2250 2100
Wire Wire Line
2250 2200 2350 2200
Wire Wire Line
2350 2200 2350 2450
$Comp
L Device:R_Small R3
U 1 1 5E0FA929
P 4700 4150
F 0 "R3" H 4850 4100 50 0000 C CNN
F 1 "4k7" H 4850 4200 50 0000 C CNN
F 2 "Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder" H 4700 4150 50 0001 C CNN
F 3 "~" H 4700 4150 50 0001 C CNN
1 4700 4150
-1 0 0 1
$EndComp
$Comp
L power:+3.3V #PWR0118
U 1 1 5E0FDFB0
P 4700 4050
F 0 "#PWR0118" H 4700 3900 50 0001 C CNN
F 1 "+3.3V" V 4715 4178 50 0000 L CNN
F 2 "" H 4700 4050 50 0001 C CNN
F 3 "" H 4700 4050 50 0001 C CNN
1 4700 4050
1 0 0 -1
$EndComp
$Comp
L Device:R_Small R4
U 1 1 5E0FAD27
P 6750 3650
F 0 "R4" H 6600 3600 50 0000 C CNN
F 1 "4k7" H 6600 3700 50 0000 C CNN
F 2 "Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder" H 6750 3650 50 0001 C CNN
F 3 "~" H 6750 3650 50 0001 C CNN
1 6750 3650
-1 0 0 1
$EndComp
$Comp
L tile:tile U3
U 1 1 5E04002C
P 9050 5450
F 0 "U3" H 9050 4900 50 0000 C CNN
F 1 "tile" H 9050 4800 50 0000 C CNN
F 2 "tile:tile" H 9050 5450 50 0001 C CNN
F 3 "" H 9050 5450 50 0001 C CNN
1 9050 5450
1 0 0 -1
$EndComp
$Comp
L power:GND #PWR0103
U 1 1 5E1FA916
P 8500 1900
F 0 "#PWR0103" H 8500 1650 50 0001 C CNN
F 1 "GND" H 8505 1727 50 0000 C CNN
F 2 "" H 8500 1900 50 0001 C CNN
F 3 "" H 8500 1900 50 0001 C CNN
1 8500 1900
1 0 0 -1
$EndComp
$Comp
L power:GND #PWR0104
U 1 1 5E1FAD6A
P 7750 1900
F 0 "#PWR0104" H 7750 1650 50 0001 C CNN
F 1 "GND" H 7755 1727 50 0000 C CNN
F 2 "" H 7750 1900 50 0001 C CNN
F 3 "" H 7750 1900 50 0001 C CNN
1 7750 1900
1 0 0 -1
$EndComp
$Comp
L power:GND #PWR0105
U 1 1 5E2343FF
P 4700 3150
F 0 "#PWR0105" H 4700 2900 50 0001 C CNN
F 1 "GND" H 4705 2977 50 0000 C CNN
F 2 "" H 4700 3150 50 0001 C CNN
F 3 "" H 4700 3150 50 0001 C CNN
1 4700 3150
1 0 0 -1
$EndComp
Wire Wire Line
5050 3150 4700 3150
$Comp
L power:GND #PWR0111
U 1 1 5E23FFC5
P 4250 3450
F 0 "#PWR0111" H 4250 3200 50 0001 C CNN
F 1 "GND" H 4255 3277 50 0000 C CNN
F 2 "" H 4250 3450 50 0001 C CNN
F 3 "" H 4250 3450 50 0001 C CNN
1 4250 3450
1 0 0 -1
$EndComp
$Comp
L Connector:Conn_01x02_Male J3
U 1 1 5E0745AC
P 3600 3150
F 0 "J3" V 3662 3194 50 0000 L CNN
F 1 "Conn_01x02_Male" V 3550 3200 50 0000 L CNN
F 2 "Connector_PinHeader_1.27mm:PinHeader_1x02_P1.27mm_Vertical" H 3600 3150 50 0001 C CNN
F 3 "~" H 3600 3150 50 0001 C CNN
1 3600 3150
1 0 0 -1
$EndComp
Wire Wire Line
5050 2950 4250 2950
Wire Wire Line
4250 2950 4250 3100
Wire Wire Line
4250 3100 3800 3100
Wire Wire Line
3800 3100 3800 3150
Connection ~ 4250 3100
Wire Wire Line
4250 3300 3800 3300
Wire Wire Line
3800 3300 3800 3250
Wire Wire Line
4250 3450 4250 3300
Connection ~ 4250 3300
$Comp
L power:GND #PWR0106
U 1 1 5E23B1B6
P 6250 2700
F 0 "#PWR0106" H 6250 2450 50 0001 C CNN
F 1 "GND" H 6255 2527 50 0000 C CNN
F 2 "" H 6250 2700 50 0001 C CNN
F 3 "" H 6250 2700 50 0001 C CNN
1 6250 2700
1 0 0 -1
$EndComp
Connection ~ 6250 2600
Wire Wire Line
6250 2250 6250 2600
Wire Wire Line
6250 2600 6250 2700
Connection ~ 5550 1750
Connection ~ 5550 2250
Wire Wire Line
5550 2250 5550 1750
Connection ~ 5650 2600
Wire Wire Line
5650 1750 5550 1750
Wire Wire Line
5650 2600 5650 1750
Wire Wire Line
5550 2250 5750 2250
Wire Wire Line
5550 2750 5550 2250
Wire Wire Line
5650 2600 5750 2600
$Comp
L power:+3.3V #PWR0101
U 1 1 5E01E25E
P 5550 1750
F 0 "#PWR0101" H 5550 1600 50 0001 C CNN
F 1 "+3.3V" H 5565 1923 50 0000 C CNN
F 2 "" H 5550 1750 50 0001 C CNN
F 3 "" H 5550 1750 50 0001 C CNN
1 5550 1750
1 0 0 -1
$EndComp
$Comp
L Device:C_Small C9
U 1 1 5E0CA6F7
P 5850 2250
F 0 "C9" V 5621 2250 50 0000 C CNN
F 1 "100nf" V 5712 2250 50 0000 C CNN
F 2 "Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolder" H 5850 2250 50 0001 C CNN
F 3 "~" H 5850 2250 50 0001 C CNN
1 5850 2250
0 1 1 0
$EndComp
Wire Wire Line
5650 2750 5650 2700
$Comp
L Device:C_Small C6
U 1 1 5E015AA2
P 5850 2600
F 0 "C6" V 5621 2600 50 0000 C CNN
F 1 "100nf" V 5712 2600 50 0000 C CNN
F 2 "Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolder" H 5850 2600 50 0001 C CNN
F 3 "~" H 5850 2600 50 0001 C CNN
1 5850 2600
0 1 1 0
$EndComp
Wire Wire Line
5550 4950 5550 4650
$Comp
L power:GND #PWR0102
U 1 1 5E02EF4A
P 5550 4950
F 0 "#PWR0102" H 5550 4700 50 0001 C CNN
F 1 "GND" H 5555 4777 50 0000 C CNN
F 2 "" H 5550 4950 50 0001 C CNN
F 3 "" H 5550 4950 50 0001 C CNN
1 5550 4950
1 0 0 -1
$EndComp
Wire Wire Line
5550 4650 5650 4650
$Comp
L MCU_ST_STM32F3:STM32F301K6Tx U1
U 1 1 5E0FC4E2
P 5650 3650
F 0 "U1" H 5600 2561 50 0000 C CNN
F 1 "STM32G431KBT6" H 5600 2470 50 0000 C CNN
F 2 "Package_QFP:LQFP-32_7x7mm_P0.8mm" H 5150 2750 50 0001 R CNN
F 3 "http://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/DM00093332.pdf" H 5650 3650 50 0001 C CNN
1 5650 3650
1 0 0 -1
$EndComp
Connection ~ 5550 4650
Wire Wire Line
5950 2250 6250 2250
Wire Wire Line
5950 2600 6250 2600
Text GLabel 6900 3750 2 50 Input ~ 0
I2C_CLK
Text GLabel 4600 4250 0 50 Input ~ 0
I2C_SDA
$Comp
L power:+3.3V #PWR0112
U 1 1 5E1F91E5
P 6750 3550
F 0 "#PWR0112" H 6750 3400 50 0001 C CNN
F 1 "+3.3V" V 6765 3678 50 0000 L CNN
F 2 "" H 6750 3550 50 0001 C CNN
F 3 "" H 6750 3550 50 0001 C CNN
1 6750 3550
1 0 0 -1
$EndComp
Wire Wire Line
6900 3750 6750 3750
Wire Wire Line
6750 3750 6150 3750
Connection ~ 6750 3750
Wire Wire Line
5050 4250 4700 4250
Wire Wire Line
4700 4250 4600 4250
Connection ~ 4700 4250
$Comp
L Connector:Conn_01x01_Male Hole2
U 1 1 5E09816E
P 2200 1200
F 0 "Hole2" H 2308 1381 50 0000 C CNN
F 1 "Conn_01x01_Male" H 2308 1290 50 0000 C CNN
F 2 "MountingHole:MountingHole_2.2mm_M2" H 2200 1200 50 0001 C CNN
F 3 "~" H 2200 1200 50 0001 C CNN
1 2200 1200
1 0 0 -1
$EndComp
$Comp
L power:GND #PWR0113
U 1 1 5E27094C
P 10900 5250
F 0 "#PWR0113" H 10900 5000 50 0001 C CNN
F 1 "GND" V 10905 5122 50 0000 R CNN
F 2 "" H 10900 5250 50 0001 C CNN
F 3 "" H 10900 5250 50 0001 C CNN
1 10900 5250
1 0 0 -1
$EndComp
Wire Wire Line
10350 5150 10450 5150
Wire Wire Line
10450 5150 10450 5050
$Comp
L power:VCC #PWR0116
U 1 1 5E289401
P 9500 5150
F 0 "#PWR0116" H 9500 5000 50 0001 C CNN
F 1 "VCC" V 9518 5277 50 0000 L CNN
F 2 "" H 9500 5150 50 0001 C CNN
F 3 "" H 9500 5150 50 0001 C CNN
1 9500 5150
1 0 0 -1
$EndComp
Text GLabel 6150 3350 2 50 Input ~ 0
PA4
Wire Wire Line
5650 2700 5750 2700
Wire Wire Line
5750 2700 5750 2750
Connection ~ 5650 2700
Wire Wire Line
5650 2700 5650 2600
Text GLabel 6150 4150 2 50 Input ~ 0
CTX
Text GLabel 6150 4050 2 50 Input ~ 0
CRX
Text GLabel 10350 5650 2 50 Input ~ 0
CRX
Text GLabel 10350 5550 2 50 Input ~ 0
CTX
Text GLabel 5050 4050 0 50 Input ~ 0
PB3
Text GLabel 5050 4150 0 50 Input ~ 0
PB4
Text GLabel 6150 3250 2 50 Input ~ 0
PA3
Wire Wire Line
10350 5250 10900 5250
Wire Wire Line
9500 5250 9000 5250
Text GLabel 9500 5350 0 50 Input ~ 0
BUS
$EndSCHEMATC
(fp_lib_table
(lib (name tile)(type KiCad)(uri ${KIPRJMOD}/../tile.pretty)(options "")(descr ""))
)
# Original source: https://gist.github.com/xesscorp/8a2ed1b8923f04ae6366
# Edit by Jarek Paral <paral@robotikabrno.cz>
#
# KiCad outputs Gerber files with extensions that aren't recognized by the most commonly used
# PCB manufacturers. This Python script renames the files to what want manufactory Gatema for
# (company in Czech Republic which produce PCB - http://www.gatema.cz) Pool servis - prototype PCB
# (http://pcb.gatema.cz/kriteria-dat-pro-pool-servis/).
# Just execute this script in your KiCad project directory and the Gerber files will be renamed.
#
import glob
import os
# Make a list of .gbr and .drl files in the current directory.
gerbers = glob.glob('*.gbr')
gerbers.extend(glob.glob('*.drl'))
# File renaming rules.
gerber_types = [
{'from': '-B_SilkS.gbr', 'to': '-B_SilkS.gbr.plb'},
{'from': '-B_Mask.gbr', 'to': '-B_Mask.gbr.smb'},
{'from': '-B_Cu.gbr', 'to': '-B_Cu.gbr.bot'},
{'from': '-Inner1.Cu.gbr', 'to': '.G2L'},
{'from': '-Inner2.Cu.gbr', 'to': '.G3L'},
{'from': '-F_Cu.gbr', 'to': '-F_Cu.gbr.top'},
{'from': '-F_Mask.gbr', 'to': '-F_Mask.gbr.smt'},
{'from': '-F_SilkS.gbr', 'to': '-F_SilkS.gbr.plt'},
{'from': '-Edge_Cuts.gbr', 'to': '-Edge_Cuts.gbr.dim'},
{'from': '-NPTH.drl', 'to': '-NPTH.drl.mil'},
{'from': '.drl', 'to': '.drl.pth'},
]
if len(gerbers) == 0:
print "No files found with this extensions: "
for type in gerber_types:
print "\t" + type['from'] + ""
print "\nEND of script."
else:
print "Load files:"
for g in gerbers:
print g
print "\n",
print "Start renaming:"
# Rename files depending upon their names.
for g in gerbers:
for t in gerber_types:
if g.endswith(t['from']):
# Strip the 'from' string from the old name and append the 'to' string to make the new name.
new_g = g[:-len(t['from'])] + t['to']
# Remove any existing file having the new name.
print "\t" + g + " -> " + new_g
try:
os.remove(new_g)
except:
# An exception occurred because the file we tried to remove probably didn't exist.
pass
# Rename the old file with the new name.
os.rename(g, new_g)
break
raw_input('Press Enter to exit.')
(sym_lib_table
(lib (name tile)(type Legacy)(uri ${KIPRJMOD}/../tile.lib)(options "")(descr ""))
)
This diff is collapsed.
This diff is collapsed.
%TF.GenerationSoftware,KiCad,Pcbnew,5.1.5*%
%TF.CreationDate,2020-02-18T12:10:53+01:00*%
%TF.ProjectId,base,62617365-2e6b-4696-9361-645f70636258,rev?*%
%TF.SameCoordinates,Original*%
%TF.FileFunction,Legend,Bot*%
%TF.FilePolarity,Positive*%
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW 5.1.5) date 2020-02-18 12:10:53*
%MOMM*%
%LPD*%
G04 APERTURE LIST*
%ADD10C,1.102000*%
%ADD11C,1.102000*%
%ADD12C,0.100000*%
%ADD13O,1.102000X1.102000*%
%ADD14R,1.102000X1.102000*%
G04 APERTURE END LIST*
%LPC*%
D10*
%TO.C,U3*%
X104445000Y-89840000D03*
X94285000Y-110795000D03*
X93015000Y-110795000D03*
X100635000Y-89205000D03*
X103175000Y-89840000D03*
X98095000Y-110795000D03*
X101905000Y-110795000D03*
X96825000Y-110795000D03*
X105715000Y-89840000D03*
X106985000Y-89840000D03*