My name is Greg Winn I am a web developer, specializing in web application development. Take a look at some of my projects, then drop me a line.

### My Gems

Most of my projects can be followed on Github (@gregwinn)

### LED Resistor Calculator on a TI-Nspire CX CAS

##### Single LED only, not ment for use with series/parallel arrays.

Recently I needed to calculate a bunch of LED current limiting resistor values for different colored LEDâ€™s. In order to quickly do this I created a simple TI BASIC program that runs on my *TI-Nspire CX CAS* calculator based on the math used to calculate the value.

#### The Math

This very simple math problem will give you the current limiting resistor value for any LED!

#
# R = The Resistor value
#
R = (VCC - Forward Voltage) / Forward Current

#### The program asks 3 questions:

- VCC -> The input voltage going to the LED.
- Forward Voltage -> The voltage the LED allows through.
- Forward Current -> Current needed to make the LED light up!

#### Results:

Let me know if you have any questions or edits.

Checkout the Gist, or the GitHub Repo.