Cirkit is a formula toolkit for electronics. Functionalities include calculating resistor combinations (series/parallel) and calculating resistors needed for LED’s. Each functionality has its own tab.
Mockups
Pseudo-code for functionality
func calcResistance(r1:Float, r2:Float) {
var result: Float = 0
if type == "Series" {
result = r1 + r2
}
else if type == "Parallel" {
result = 1 / ((1 / r1) + (1 / r2))
}
return result
}
func calcLED(sourceVoltage:Float, ledVoltage:Float, ledCurrent:Float) {
/**
sourceVoltage is the source voltage, measured in volts (V),
ledVoltage is the voltage drop across the LED, measured in volts (V),
ledCurrent is the current through the LED, measured in milii-Amperes (mA)
the return value is the resistance, measured in Ohms (Ω).
**/
return (sourceVoltage - ledVoltage) / ledCurrent
}