🏃♂️ ResistorCalculator
An extension for MIT App Inventor 2. Resistor Calculator and Draw a resistor with color bands.
Specifications
Package: io.th.resistorcalculator.resistorcalculator
Size: 27.95 KB
Version: 1.0
Minimum API Level: 7
Updated On: 2025-04-08T18:30:00Z
Built & documented using: FAST v2.8.3
io.th.resistorcalculator.resistorcalculator.aix (28.0 KB)
RcView.aia (31.4 KB)
RcView.apk (4.6 MB)
Blocks
SMDResistorBlocks
SMDResistor
ElectronicsTools Blocks
Demo
Multi-Components
ResistorCalculator
Developed by th using Fast. Resistor Calculator and Draw a resistor with color bands
Telegram | GitHub
Blogger | YouTube
Find More Extension
Terms & Conditions
Summary
Events:
ResistorCalculator has total 3 events.
ResistanceChanged
Event raised when resistance value changes
Parameter | Type |
---|---|
value | number |
ResistorTouched
Triggered when resistor is touched
Parameter | Type |
---|---|
x | number |
y | number |
BandClicked
Triggered when a color band is clicked
Parameter | Type |
---|---|
colorName | text |
bandPosition | number |
Methods:
ResistorCalculator has total 8 methods.
ResistorView
Add resistor UI to given arrangement
Parameter | Type |
---|---|
arrangement | component |
ResistanceValue
Calculate the resistance value based on color bands
- Return type:
number
FormattedResistance
Get formatted resistance value with unit
- Return type:
text
ThreeBandColors
Set 3-band resistor colors
Parameter | Type |
---|---|
band1 | Colors (helper blocks) |
band2 | Colors (helper blocks) |
band3 | Colors (helper blocks) |
- Enums for Colors:
Red
,Green
,Blue
,Yellow
,Black
,Brown
,Orange
,Gray
,White
,Violet
FourBandColors
Set 4-band resistor colors
Parameter | Type |
---|---|
band1 | Colors (helper blocks) |
band2 | Colors (helper blocks) |
band3 | Colors (helper blocks) |
tolerance | Tolerance (helper blocks) |
- Enums for Colors:
Red
,Green
,Blue
,Yellow
,Black
,Brown
,Orange
,Gray
,White
,Violet
- Enums for Tolerance:
Brown
,Red
,Gold
,Silver
FiveBandColors
Set 5-band resistor colors
Parameter | Type |
---|---|
band1 | Colors (helper blocks) |
band2 | Colors (helper blocks) |
band3 | Colors (helper blocks) |
multiplier | Colors (helper blocks) |
tolerance | Tolerance (helper blocks) |
- Enums for Colors:
Red
,Green
,Blue
,Yellow
,Black
,Brown
,Orange
,Gray
,White
,Violet
- Enums for Tolerance:
Brown
,Red
,Gold
,Silver
ColorBandsForValue
Get color band names for given resistance value (ohms) and band count
- Return type:
any
Parameter | Type |
---|---|
resistance | number |
bandCount | number |
BandsFromValue
Set resistor bands based on resistance value
Parameter | Type |
---|---|
resistance | number |
bandCount | number |
Setters:
ResistorCalculator has total 11 setter properties.
BackgroundColor
Set the background color of the resistor view
- Input type:
number
Height
Set the height of the resistor view in pixels
- Input type:
number
BodyWidth
Set the width of the resistor body
- Input type:
number
WireLength
Set the wire length
- Input type:
number
BodyColor
Set the resistor body color
- Input type:
number
WireColor
Set the wire color
- Input type:
number
BandSpacing
Set the spacing between bands
- Input type:
number
BodyHeight
Set the height of the resistor body
- Input type:
number
BandPaddingLeft
Set the left padding for the color bands
- Input type:
number
WireStroke
Set the thickness of the wires
- Input type:
number
BandWidth
Set the width of the color bands
- Input type:
number
ElectronicsTools
ElectronicsTools Calculator - Developed by th using Fast
Events:
ElectronicsTools has total 4 events.
StandardValuesChanged
Triggered when standard values change
Parameter | Type |
---|---|
voltage | number |
temp | number |
pressure | number |
TransistorGainCalculated
Triggered when transistor gain is calculated
Parameter | Type |
---|---|
gain | number |
PowerFactorChanged
Triggered when power factor changes
Parameter | Type |
---|---|
powerFactor | number |
EfficiencyCalculated
Triggered when efficiency is calculated
Parameter | Type |
---|---|
efficiency | number |
Methods:
ElectronicsTools has total 33 methods.
CalculateCurrent
Calculate current using voltage and resistance (I = V/R)
- Return type:
number
Parameter | Type |
---|---|
voltage | number |
resistance | number |
CalculateVoltage
Calculate voltage using current and resistance (V = IR)
- Return type:
number
Parameter | Type |
---|---|
current | number |
resistance | number |
CalculateResistance
Calculate resistance using voltage and current (R = V/I)
- Return type:
number
Parameter | Type |
---|---|
voltage | number |
current | number |
CalculatePower
Calculate power (P = VI)
- Return type:
number
Parameter | Type |
---|---|
voltage | number |
current | number |
VoltageDiv
Calculate output voltage of voltage divider
- Return type:
number
Parameter | Type |
---|---|
inputVoltage | number |
r1 | number |
r2 | number |
ResistorSeries
Calculate total resistance in series
- Return type:
number
Parameter | Type |
---|---|
resistors | list |
ResistorParallel
Calculate total resistance in parallel
- Return type:
number
Parameter | Type |
---|---|
resistors | list |
CapacitorSeries
Calculate total capacitance in series
- Return type:
number
Parameter | Type |
---|---|
capacitors | list |
CapacitorParallel
Calculate total capacitance in parallel
- Return type:
number
Parameter | Type |
---|---|
capacitors | list |
CapacitorChargeTime
Calculate capacitor charge time to reach voltage
- Return type:
number
Parameter | Type |
---|---|
capacitance | number |
resistance | number |
targetVoltagePercent | number |
LEDResistor
Calculate required series resistor for LED
- Return type:
number
Parameter | Type |
---|---|
supplyVoltage | number |
ledVoltage | number |
ledCurrent | number |
NE555Frequency
Calculate 555 timer frequency in astable mode
- Return type:
number
Parameter | Type |
---|---|
r1 | number |
r2 | number |
c | number |
NE555DutyCycle
Calculate 555 timer duty cycle in astable mode
- Return type:
number
Parameter | Type |
---|---|
r1 | number |
r2 | number |
BatteryLife
Calculate battery life in hours
- Return type:
number
Parameter | Type |
---|---|
batteryCapacity | number |
currentDraw | number |
RegulatorDissipation
Calculate voltage regulator power dissipation
- Return type:
number
Parameter | Type |
---|---|
inputVoltage | number |
outputVoltage | number |
current | number |
RippleVoltage
Calculate power supply ripple voltage
- Return type:
number
Parameter | Type |
---|---|
current | number |
frequency | number |
capacitance | number |
CelsiusToFahrenheit
Convert Celsius to Fahrenheit
- Return type:
number
Parameter | Type |
---|---|
celsius | number |
FahrenheitToCelsius
Convert Fahrenheit to Celsius
- Return type:
number
Parameter | Type |
---|---|
fahrenheit | number |
WireResistance
Calculate wire resistance based on length, gauge, and material
- Return type:
number
Parameter | Type |
---|---|
length | number |
resistivity | number |
area | number |
InductorReactance
Calculate inductor reactance
- Return type:
number
Parameter | Type |
---|---|
inductance | number |
frequency | number |
CapacitorReactance
Calculate capacitor reactance
- Return type:
number
Parameter | Type |
---|---|
capacitance | number |
frequency | number |
TransistorGain
Calculate transistor gain
- Return type:
number
Parameter | Type |
---|---|
collectorCurrent | number |
baseCurrent | number |
RCTimeConstant
Calculate RC time constant
- Return type:
number
Parameter | Type |
---|---|
resistance | number |
capacitance | number |
ResonantFrequency
Calculate LC resonant frequency
- Return type:
number
Parameter | Type |
---|---|
inductance | number |
capacitance | number |
DecibelGain
Calculate decibel gain
- Return type:
number
Parameter | Type |
---|---|
outputPower | number |
inputPower | number |
PowerFactor
Calculate power factor
- Return type:
number
Parameter | Type |
---|---|
realPower | number |
apparentPower | number |
Impedance
Calculate impedance magnitude
- Return type:
number
Parameter | Type |
---|---|
resistance | number |
reactance | number |
CutoffFrequency
Calculate filter cutoff frequency
- Return type:
number
Parameter | Type |
---|---|
resistance | number |
capacitance | number |
TransformerRatio
Calculate transformer turns ratio
- Return type:
number
Parameter | Type |
---|---|
primaryVoltage | number |
secondaryVoltage | number |
TemperatureCoefficient
Calculate temperature coefficient
- Return type:
number
Parameter | Type |
---|---|
initialValue | number |
finalValue | number |
tempChange | number |
ThermalResistance
Calculate thermal resistance
- Return type:
number
Parameter | Type |
---|---|
tempDiff | number |
power | number |
Efficiency
Calculate efficiency percentage
- Return type:
number
Parameter | Type |
---|---|
outputPower | number |
inputPower | number |
WireCurrentCapacity
Calculate wire gauge current capacity
- Return type:
number
Parameter | Type |
---|---|
wireGauge | number |
temperatureRating | number |
Setters:
ElectronicsTools has total 2 setter properties.
StandardVoltage
Set standard voltage value (V)
- Input type:
number
RoomTemperature
Set room temperature (°C)
- Input type:
number
Getters:
ElectronicsTools has total 2 getter properties.
StandardVoltage
Set standard voltage value (V)
- Return type:
number
RoomTemperature
Set room temperature (°C)
- Return type:
number
SMDResistor
SMD Resistor Calculator - Developed by th using Fast
Events:
SMDResistor has total 3 events.
ResistanceChanged
Event raised when resistance value changes
Parameter | Type |
---|---|
value | number |
Click
Triggered when SMD resistor is clicked
LongPress
Triggered when long press is detected
Methods:
SMDResistor has total 3 methods.
SMDView
Add SMD UI to given arrangement
Parameter | Type |
---|---|
arrangement | component |
SMDCode
Set SMD code (e.g., ‘103’ for 10kΩ)
Parameter | Type |
---|---|
code | text |
FormattedSMDResistance
Get formatted resistance value with unit
- Return type:
text
Setters:
SMDResistor has total 6 setter properties.
BackgroundColor
Set the background color
- Input type:
number
BodyColor
Set the SMD body color
- Input type:
number
CodeTextColor
Set the SMD code text color
- Input type:
number
ValueTextColor
Set the value text color
- Input type:
number
Width
Set the SMD component width
- Input type:
number
Height
Set the SMD component height
- Input type:
number
Getters:
SMDResistor has total 2 getter properties.
BackgroundColor
Set the background color
- Return type:
number
BodyColor
Set the SMD body color
- Return type:
number