Git Product home page Git Product logo

eetools's Introduction

EETools

This is serioulsy just a scrap repository to keep some of the scripts I use for electrical engineering tasks organized. There's no real rhyme or reason, just a storage bin for anything I found useful doing circuit design.

eetools.netlist

Reads netlists in TANGO format. No reason to prefer tango, other than it's something that Altium Designer actually spits out. Use it thus:

netlist = eetools.netlist.load('file.net')

for net_name in netlist.nets:
    print net_name

or, if you like, you can create a new netlist from scratch:

# Create a netlist with a single resistor that's shorted out
netlist = eetools.netlist.Netlist()
netlist.add_component('R1')
netlist.add_to_net('NET_1', 'R1', 1)
netlist.add_to_net('NET_1', 'R1', 2)

eetools.pin_planner

eetools.pin_planner is a gem, but is kind of a mess. It lets you load a microcontroller pin map (in a currently undocumented awful format) and create a pin plan, detailing how each pin will be used. The module can be used interactively, so pins can be claimed and unclaimed in real-time, easing the hassle of planning the pin utilization in a complex microcontroller design. The module also provides convenient queries, so that pin constraints can be examined, and resolved more easily.

Without having to clean it up or explain myself, check out the source, as well as the examples/pin_planner.py

eetools.eia

The eetools.eia package keeps some static lists of standard EIA component values, as well as provides some convenient functions for searching and accessing them. Examples!

from eetools.eia import one_percent_resistors as res

# I need a 221 ohm resistor
print res.nearest(221.0)

# If I'm desigining a circuit, and I want to err on one side or the other
print res.nearest_above(221.0)
print res.nearest_below(221.0)

eetools's People

Contributors

ryansturmer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.