Mail Archives: geda-user/2015/12/16/14:38:53
damianzrb AT gmail DOT com:
> I learnt some python some time ago,but I had a "block" in my head to learn
> more.Eh,studying make me tired :P
Ok, programs are like ideas och different persons express their ideas
in different forms, you'll have to find out what makes you tick.
Why don't you try a few different programming languages and see what
works for you.
And when learning a language, try to find something that you often do
and try to make that process into a program.
E.g. when prototyping, you won't probably have many of the resistor
values that comes up in a design. So I made a little program to
find what combination of one, two or tree resistors from the E6 series
that could give me a value or close to it:
http://turkos.aspodata.se/git/openhw/share/gschem/include/rfind.pl
http://turkos.aspodata.se/git/openhw/share/gschem/include/Rdiv.pm
http://turkos.aspodata.se/git/openhw/share/gschem/include/Eseries.pm
$ ./rfind.pl 2344 2345 2346
2344:
err type Rtot R1 R2 R3
6.1, 0, 2200, 2200
0.3, 0, 2350.00, 150.0 2200.0
0.0, 1, 2344.71, 4700.0 6800.0 15000.0
2345:
err type Rtot R1 R2 R3
6.2, 0, 2200, 2200
0.2, 0, 2350.00, 150.0 2200.0
0.0, 1, 2344.71, 4700.0 6800.0 15000.0
2346:
err type Rtot R1 R2 R3
6.2, 0, 2200, 2200
0.2, 0, 2350.00, 150.0 2200.0
0.0, 0, 2347.00, 47.0 100.0 2200.0
Thus, if I want close to 2345 Ohm, I take 4.7k, 6.8k och 15k and
put them in paralell, or 2.2k and 150 in series.
Type 0 is all in series, 1 all parallell, 3 R1 in paralell with (R2+R3)
(yes, I missed type 2 for some reason...).
So, start easy and program something that you have direct use of.
///
> I was thinking to convert PDF with datasheet to footprint,symbol and
> characteristics more directly way,ex. that converter "takes' pin sequence
> etc to footprint,schematic image for symbol and diagrams with
> characteristics etc - on .cvs or .ods. It split the PDF to footprint,symbol
> and characteristics easily readable not only for human,but also for e.x
> simulators like gnucap or ngspice.
Pin number/label extraction is not that easy, mostly because the pdf
file format doesn't have any model for tables. Tables in pdf's point
of view is just some random text and lines placed to please a human
reader (just as you would do with an actual typewriter).
Please go to:
http://www.delorie.com/archives/browse.cgi?p=geda-user/2015/09/04
and look for "pdf table extraction" for a discussion on the topic.
Regards,
/Karl Hammar
-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57
- Raw text -