Search the Community
Showing results for tags 'light-emmitting diodes'.
-
So, since my 3 years long quest to find a portable LED resistor calculator (as in one that doesn't require me to go online, Google it and then use it while online) has been a failure, I made my own. I found one but it didn't have resistor wattage, only resistance. First one I made was in form of a VBScript but since that just gave me nightmares (doesn't accept floats, need to write a whole fairy tale for it to work even nearly as good as I wanted it to) now it's written in Python. And since there might be others who might want to use something like this, I decided to release it. Here are the download links for English and Croatian versions: English - download link Croatian - download link It's designed to calculate resistor's resistance value and wattage for a single LED and multiple LEDs in serial/parallel connection. Usage is simple, pick an option from the main menu by executing the option's number (1 for single, 2 for serial, etc.), it has a help option that explains input/output values and a list of common LED voltages for 5mm diodes. Also, it's only 5kb in size so it doesn't take up much space. Formulas used are: Single diode: (Vs - Vl) / I Serial connection: (Vs - (Vl * X)) / I Parallel connection: (Vs - Vl) / (I * X) X represents the number of diodes in a serial or parallel connection. There are also other variations of those same formulas for calculating resistor wattage. It requires Python 2, not tested in Python 3 so I'm not sure if it will work in it. :confused: Tried it in Python 2.6.6 on Windows 7 Ultimate x64 and Python 2.7.3 on both Windows 7 and Ubuntu Linux 12.04 LTS x64. To start it in Windows you just need to double-click it, to start it in Ubuntu's Terminal you need to execute the following commands depending on which one you use: sudo python /*file path*/Werne_LED_Calculator_ENG.py sudo python /*file path*/Werne_LED_Calculator_CRO.py Pics of this thing running: In Python 2.6.6 on Windows 7: In Python 2.7.3 on Ubuntu 12.04: And the source code: English: Croatian: Feel free to use this and edit it in any way you see fit, I release all my work freely so this can be edited and/or distributed without my permission. :smile: Also, thank you Mark Hammond, whoever you might be. :thumbsup: Without him I'd still be sitting with a thumb in my arse and type LED voltage multiplied by 10 into a VBScript. :yucky: Thought I might thank him too since Python installer has a big thank you message after it's finished installing.
- 7 replies
-
- light-emmitting diodes
- resistors
- (and 2 more)
