Skip to content

Commit

Permalink
Initial repository split commit. For history before that refer to the…
Browse files Browse the repository at this point in the history
… master open-bldc repository.
  • Loading branch information
esden committed Jul 1, 2012
0 parents commit 6f190a9
Show file tree
Hide file tree
Showing 80 changed files with 269,192 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*~
*.swp
*.[bsl]\#*
8 changes: 8 additions & 0 deletions COPYING
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)

11 changes: 11 additions & 0 deletions README
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! :)
56 changes: 56 additions & 0 deletions clogic/doc/current_sensor.m
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
2,778 changes: 2,778 additions & 0 deletions clogic/v0.1/clogic.brd

Large diffs are not rendered by default.

3,848 changes: 3,848 additions & 0 deletions clogic/v0.1/clogic.sch

Large diffs are not rendered by default.

3,741 changes: 3,741 additions & 0 deletions clogic/v0.2/clogic.brd

Large diffs are not rendered by default.

10,785 changes: 10,785 additions & 0 deletions clogic/v0.2/clogic.sch

Large diffs are not rendered by default.

3,226 changes: 3,226 additions & 0 deletions clogic/v0.3/clogic.brd

Large diffs are not rendered by default.

10,873 changes: 10,873 additions & 0 deletions clogic/v0.3/clogic.sch

Large diffs are not rendered by default.

3,416 changes: 3,416 additions & 0 deletions clogic/v1.1/clogic.brd

Large diffs are not rendered by default.

11,208 changes: 11,208 additions & 0 deletions clogic/v1.1/clogic.sch

Large diffs are not rendered by default.

1,460 changes: 1,460 additions & 0 deletions cpico_power/v0.1/cpico_power.brd

Large diffs are not rendered by default.

1,649 changes: 1,649 additions & 0 deletions cpico_power/v0.1/cpico_power.sch

Large diffs are not rendered by default.

14,212 changes: 14,212 additions & 0 deletions discarded/mini/open-bldc.sch

Large diffs are not rendered by default.

Binary file added discarded/normal/open-bldc-fets-one-side.brd
Binary file not shown.
1,869 changes: 1,869 additions & 0 deletions discarded/normal/open-bldc.brd

Large diffs are not rendered by default.

Binary file added discarded/normal/open-bldc.lbr
Binary file not shown.
14,595 changes: 14,595 additions & 0 deletions discarded/normal/open-bldc.sch

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions geda/.gitignore
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

67 changes: 67 additions & 0 deletions geda/Makefile
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

7 changes: 7 additions & 0 deletions geda/README
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.

23 changes: 23 additions & 0 deletions geda/gafrc
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")

29 changes: 29 additions & 0 deletions geda/gsch2pcb.cfg
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

27 changes: 27 additions & 0 deletions geda/gschemrc
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"))

Loading

0 comments on commit 6f190a9

Please sign in to comment.