-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
… master open-bldc repository.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*~ | ||
*.swp | ||
*.[bsl]\#* |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
All hardware designs as in schematics and board layouts in this directory are | ||
copyright 2009 Piotr Esden-Tempski <[email protected]> and distributed under the | ||
Creative Commons - Share Alike 3.0 Germany License. | ||
|
||
http://creativecommons.org/licenses/by-sa/3.0/de/ | ||
|
||
(unless stated explicitly otherwise in the respective file) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
This project aims to create a fully open-source Brushless Drive Controller. | ||
|
||
This repository contains all current and past hardware designs. Please refer to the open-bldc repository for the source code. | ||
|
||
Licensing | ||
--------- | ||
All sourcecode is licensed under GPL version 3 or later, all circuitry designs | ||
and pcb layouts are available as original source files and licensed under | ||
CreativeCommons BY-SA 3.0. | ||
|
||
Feel free to use everything here as you wish! :) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
function current_sensor() | ||
|
||
# Opamp gain resistors | ||
R = 68000.0; # 5400 | ||
r = 1000.0; # 1000 | ||
|
||
# Opamp input resistor network | ||
r1 = 665.0; # 660 | ||
r2 = 562.0; # 560 | ||
r3 = 56000.0; # 4700 | ||
|
||
# Shunt resistance | ||
shunt = 0.0025; | ||
|
||
# Opamp gain | ||
printf("Opamp gain: "); | ||
G = (R + r)/r | ||
|
||
# Relation between the input signal e and signal v calculation | ||
|
||
A = -100.0:1.0:100.0; | ||
shunt_v = shunt * A; | ||
|
||
# k parameter | ||
k = ( 1/r1 + 1/r2 + 1/r3); | ||
U = 5.0; | ||
|
||
# translation voltage | ||
printf("Input translate: "); | ||
trans = U/(k*r3) | ||
|
||
printf("Oputput translate: "); | ||
out_trans = trans * G | ||
|
||
# opamp input | ||
v = (trans + shunt_v/(k*r1)); | ||
|
||
# opamp output | ||
S = v * G; | ||
|
||
# maxi/min value | ||
printf("Max: "); | ||
max(S) | ||
printf("Min: "); | ||
min(S) | ||
|
||
|
||
plot(A, shunt_v, "1", A, v, "2", A, S, "3") | ||
legend('e', 'v', 'S'); | ||
|
||
# calculate output voltage for 1A | ||
shunt_v_1 = shunt * 1; | ||
v_1 = (trans + shunt_v_1/(k*r1)); | ||
|
||
printf("Output voltage at 1A"); | ||
S_1 = v_1 * G |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
symbols/acs712.sym | ||
symbols/ir2101.sym | ||
symbols/irf3704s.sym | ||
symbols/jtag_10pin.sym | ||
symbols/lp2992.sym | ||
symbols/st662a.sym | ||
symbols/stm32f103xx_lqfp48.sym | ||
symbols/tinyconn10.sym | ||
symbols/tinyconn3.sym | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
## | ||
## Open-BLDC - Open BrushLess DC Motor Controller | ||
## Copyright (C) 2009 Uwe Hermann <[email protected]> | ||
## | ||
## This program is free software; you can redistribute it and/or modify | ||
## it under the terms of the GNU General Public License as published by | ||
## the Free Software Foundation; either version 3 of the License, or | ||
## (at your option) any later version. | ||
## | ||
## This program is distributed in the hope that it will be useful, | ||
## but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
## GNU General Public License for more details. | ||
## | ||
## You should have received a copy of the GNU General Public License | ||
## along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
## | ||
|
||
SCH = open-bldc | ||
BOARD = board | ||
|
||
GEDADIR = $(HOME)/geda | ||
SCHEMEDIR = $(GEDADIR)/share/gEDA/scheme | ||
|
||
# all: symbols sch-ps sch-pdf pcb-gerber pcb-ps pcb-png | ||
all: symbols sch-ps sch-pdf | ||
|
||
symbols: | ||
$(MAKE) -C symbols | ||
|
||
sch-ps: | ||
@# This must be done in an X11 session, doesn't work on console. | ||
gschem -p -o $(SCH).ps -s $(SCHEMEDIR)/print.scm $(SCH).sch | ||
|
||
sch-pdf: | ||
ps2pdf -sPAPERSIZE=a4 $(SCH).ps | ||
|
||
pcb-gerber: | ||
pcb -x gerber --gerberfile $(BOARD) $(BOARD).pcb | ||
|
||
pcb-ps: | ||
pcb -x ps --psfile $(BOARD).ps $(BOARD).pcb | ||
|
||
pcb-png: | ||
pcb -x png --dpi 300 --only-visible --outfile $(BOARD).png $(BOARD).pcb | ||
|
||
drc: $(SCH).sch | ||
# gnetlist -g drc2 $(SCH).sch -o $(SCH).drc | ||
gnetlist -g drc2 $(SCH).sch -o - | ||
@# Use the following line to ignore DRC errors. | ||
@# gnetlist -g drc2 -o - $(SCH).sch -O ignore-warnings-in-return-value | ||
|
||
bom: | ||
gnetlist -g partslist3 -o $(SCH).bom $(SCH).sch | ||
@# The below 'bom2' also needs an 'attribs' file as input. | ||
@# gnetlist -g bom2 -o $(SCH).bom $(SCH).sch | ||
|
||
clean: | ||
$(MAKE) -C symbols clean | ||
@rm -f $(SCH).sch~ $(SCH).ps $(SCH).pdf | ||
@rm -f $(BOARD).net $(BOARD).cmd $(BOARD).fab.gbr $(BOARD).ps | ||
@rm -f $(BOARD).new.pcb | ||
@rm -f $(SCH).drc | ||
@rm -f $(SCH).bom | ||
|
||
.PHONY: symbols | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
------------------------------------------------------------------------------- | ||
README | ||
------------------------------------------------------------------------------- | ||
|
||
This is an effort to re-implement the Open-BLDC hardware descriptions | ||
(schematics and PCB layouts) using the open-source tools gEDA/pcb. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
;; | ||
;; Open-BLDC - Open BrushLess DC Motor Controller | ||
;; Copyright (C) 2009 Uwe Hermann <[email protected]> | ||
;; | ||
;; This program is free software; you can redistribute it and/or modify | ||
;; it under the terms of the GNU General Public License as published by | ||
;; the Free Software Foundation; either version 3 of the License, or | ||
;; (at your option) any later version. | ||
;; | ||
;; This program is distributed in the hope that it will be useful, | ||
;; but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
;; GNU General Public License for more details. | ||
;; | ||
;; You should have received a copy of the GNU General Public License | ||
;; along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
;; | ||
|
||
;; This is the config file for gaf. | ||
|
||
;; Load additional symbols from the ''symbols' sub-directory. | ||
(component-library "${PWD}/symbols") | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## | ||
## Open-BLDC - Open BrushLess DC Motor Controller | ||
## Copyright (C) 2009 Uwe Hermann <[email protected]> | ||
## | ||
## This program is free software; you can redistribute it and/or modify | ||
## it under the terms of the GNU General Public License as published by | ||
## the Free Software Foundation; either version 3 of the License, or | ||
## (at your option) any later version. | ||
## | ||
## This program is distributed in the hope that it will be useful, | ||
## but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
## GNU General Public License for more details. | ||
## | ||
## You should have received a copy of the GNU General Public License | ||
## along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
## | ||
|
||
# This is the config file for gsch2pcb. | ||
|
||
# File name of the gschem input file (including .sch extention). | ||
schematics open-bldc.sch | ||
|
||
# Base file name of the output file (excluding the .pcb extention). | ||
output-name board | ||
|
||
# Sub-directory where to find additional pcb footprints. | ||
elements-dir footprints | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
;; | ||
;; Open-BLDC - Open BrushLess DC Motor Controller | ||
;; Copyright (C) 2009 Uwe Hermann <[email protected]> | ||
;; | ||
;; This program is free software; you can redistribute it and/or modify | ||
;; it under the terms of the GNU General Public License as published by | ||
;; the Free Software Foundation; either version 3 of the License, or | ||
;; (at your option) any later version. | ||
;; | ||
;; This program is distributed in the hope that it will be useful, | ||
;; but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
;; GNU General Public License for more details. | ||
;; | ||
;; You should have received a copy of the GNU General Public License | ||
;; along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
;; | ||
|
||
;; Force use of A4 paper size for exported PS/PDF schematics. | ||
(paper-size 11.69 8.27) ; A4 | ||
|
||
;; Use dark background in the gschem GUI. | ||
(load (string-append geda-rc-path "/gschem-colormap-darkbg")) | ||
|
||
;; Use light background for schematics printing (PS / PDF). | ||
(load (string-append geda-rc-path "/print-colormap-lightbg")) | ||
|