Transistor Database
Project description
transistordatabase (TDB)
Import/export and manage transistor data in the transistor database.
Functionality examples:
- digitize transistor datasheet parameters and graphs and save it to the TDB
- use this data for calculations in python (e.g. some loss calulations for a boost-converter)
- export this data to matlab for calculations in matlab
- export transistors to GeckoCIRCUITS simulation program
Development status: Alpha
1. Installation
1.1 Windows
1.1.1 Install Mongodb
For the first usage, you need to install mongodb. Windows Use the MongoDB community server, as platform, choose windows. Link
1.1.2 Install git
1.1.3 Install Pycharm
1.2 Linux
Archlinux / Manjaro Enable Arch-User-Repository (AUR):
sudo pacman -Syu mongodb-bin git pycharm
Ubuntu
sudo apt install python3 python3-pip git
Note: Install pycharm from Snapstore
1.3 All Operating systems: Install the transitor database
Using Pycharm: Navigate to file -> settings -> Project -> Python Interpreter -> add: transistordatabase
1.4 Complete minimal python example
# load the python package
import transistordatabase as tdb
# update the database from the online git-repository
tdb.update_from_fileexchange()
# print the database
tdb.print_TDB()
# load a transistor from the database
transistor_loaded = tdb.load({'name': 'CREE_C3M0016120K'})
# quick start fill in .wp.-storage for further calculations in your program
transistor_loaded.quickstart_wp()
2 transistordatabase's usage
Import transistordatabase to your python program
import transistordatabase as tdb
2.1 Generate a new transistor
2.1.1 transistor object basics
Transistor
|
+-Metadata
|
+-Switch
| +-Switch Metadata
| +-Channel Data
| +-Switching Data
|
+-Diode
| +-Switch Metadata
| +-Channel Data
| +-Switching Data
+-wp (temporary storage for further calculations)
2.1.2 reading curves from the datasheet
For reading datasheet curves, use the tool WebPlotDigitizer. There is a online-version available. Also you can download it for Linux, Mac and Windows. WebPlotDigitizer is open source software.
2.1.3 Use the template to generate a new transistor object
After digizing the curves, you can use a template to generate a new transistor object and store it to the database. For this, see the template
Some hints to fill the template:
- Fuji housing overview https://www.fujielectric.com/products/semiconductor/model/igbt/2pack.html
2.2 Update transistors from file exchange
There is a file exchange to share transistor objects. The repository can be found here. To update your local transistordatabase type in to your python code
tdb.update_from_fileexchange()
After this, you can find new or updated transistor files in your local transistordatabase.
2.3 Load a transistor from the database
transistor_loaded = tdb.load({'name': 'CREE_C3M0016120K'})
2.3 Use Transistor.wp. for usage in your programs
There is a subclass .wp. you can fill for further program calculations.
2.3.1 Full-automated example: Use the quickstart method to fill in the wp-class.
There is a search function, that chooses the closes operating point. In the full-automated method, there are some predefined values
- Chooses transistor.switch.t_j_max - 25°C as operating temperature to start search
- Chooses transistor.i_abs_max/2 as operating current to start search
- Chooses v_g = 15V as gate voltage to start search
transistor_loaded.quickstart_wp()
2.3.2 Half-automated example: fill in the wp-class by a search-method to find the closes working point to your methods
Insert a working point of interest. The algorithm will find the closest working point and fills out the Transistor.wp.-class
transistor.update_wp(125, 15, 50)
2.3.2 Non-automated example: fill in the wp-class manually
Look for all operationg points manually. This will result in an error in case of no match.
transistor_loaded.wp.e_oss = transistor_loaded.calc_v_eoss()
transistor_loaded.wp.q_oss = transistor_loaded.calc_v_qoss()
# switch, linearize channel and search for losscurves
transistor_loaded.wp.switch_v_channel, transistor_loaded.wp.switch_r_channel = transistor_loaded.calc_lin_channel(25, 15, 150, 'switch')
transistor_loaded.wp.e_on = transistor_loaded.get_object_i_e('e_on', 25, 15, 600, 2.5).graph_i_e
transistor_loaded.wp.e_off = transistor_loaded.get_object_i_e('e_off', 25, -4, 600, 2.5).graph_i_e
# diode, linearize channel and search for losscurves
transistor_loaded.wp.diode_v_channel, transistor_loaded.wp.diode_r_channel = transistor_loaded.calc_lin_channel(25, -4, 150, 'diode')
3. Roadmap
Planned features in 2021
- show a virtual datasheet of a transistor
- exporters to a few programs, e.g. Simulink, GeckoCIRCUITS, PLECs, ...
- save measurement data from double pulse measurements in the transistor database
- compare resistors within the database (e.g. compare measurements wit datasheet values, or compare datasheet values for transistor A with transistor B)
- provide a pip package
4. Organisation
4.1 Bug Reports
Please use the issues report button within github to report bugs.
4.2 Changelog
Find the changelog here
4.3 Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. For contributing, please refer to this section.
4.4 Authors and acknowledgement
Actual developers
- Nikolas Förster
- Manuel Klädtke
- Henning Steinhagen
Project leading
- Nikolas Förster
- Philipp Rehlaender
Developers in the past
4.5 License
4.6 History and project status
This project started in 2020 as a side project and was initially written in matlab. It quickly became clear that the project was no longer a side project. The project should be completely rewritten, because many new complex levels have been added. To place the project in the open source world, the programming language python is used.
In january 2021 a very early alpha status is reached. First pip package is provided in may 2021.
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased
0.2.5 - 2021-06-10
Added
- export_simulink_loss_model using new functions to search transistor elements (incl. fix #17)
Removed
- export_simulink_v1 (outdated)
0.2.4 - 2021-05-28
Added
- #13: GeckoCircuits Exporter exports mirrowed conducting characterisitc for negative currents
Bugfixes
- #11, #12: Path displays when export to gecko (.scl) or to .json
0.2.3 - 2021-05-21
Added
- Simple calculation method for mosfet gate resistor (Paper PCIM 2006: D.Kübrich 'Invetsigation of Turn-Off Behaviour under the Assumption of Linear Capacitances')
Bugfix
- bug #7: was not fully fixed. Fixed now.
- bug #9: in case of no err-data, fill working point with object instead of list
0.2.2 - 2021-05-11
Added
- print_TDB() returns a list with transistor names
- add some CREE power module housing types
Bugfix
- fix #6: Avoid KeyError when using devices without err-losscurves
- fix #7: wrong fill of wp.xxx_r_channel/xxx_v_channel when using transistor.update_wp() or transistor.quickstart_wp()
0.2.1 - 2021-05-06
Bugfix
- Problem when reading .csv-files generated by english-language systems
0.2.0 - 2021-05-04
Added
- Example template to generate a transistor object
- transistor method: linearize_switch_ui_graph
- transistor.switch methods: print_all_channel_data, print_channel_data_vge, print_channel_data_temp
- New class LinearizedModel: Contains data for a linearized Switch/Diode depending on given operating point.
- New class to store c_iss, c_oss, c_rss in Transistor.
- New Transistor attribute: e_coss
- Documentation drawing
- Exporter: GeckoCIRCUITS
- calc_object_i_e to calculate loss loss curves for other gate resistors/voltage levels
- New class 'wp' to store local calculation parameters to use in your program
- automatically fill 'wp' objects when using functions like find_approx_wp()
- added a quick start to fill in 'wp' values quick and easy
- New housing types
- .json exporter
Removed
- Removed Metadata class. Added its attributes to Transistor class instead
Changed
- Restructured foster thermal model argument handover
- Rename package to transistordatabase (instead of transistor_database) due to pip package rules
- csv2array callable with options
- move some functionality out of transistor class (tdb.Transistor. -> tdb.)
0.1.0 - 2021-02-04
Added
- Construct a Transistor-object and save relevant data in its attributes and subclasses
- Class structure documented in a class UML diagram
- Save Transistor-object in an object database created with mongodb
- Mandatory attributes and restricted types/values to guarantee only valid and functional Transistors can be added to the database
- Matlab-Exporter
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for transistordatabase-0.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17528aa0c6ef48b4404fc0639def0c7a63882b77f6599508cf2d5641b9fce388 |
|
MD5 | 371ca0d9e5ae886759159d1637e452cd |
|
BLAKE2b-256 | 11d3f54a6987dfe1d5ad50b516ff7efcfc3f5bf3b2ebd8b8a70e2dbe71bec6aa |