Showing posts with label resistance. Show all posts
Showing posts with label resistance. Show all posts

Saturday, November 28, 2026

HP 15C: The I Squared Rule and HHC 2026

HP 15C: The I Squared Rule and HHC 2026



HHC 2026 Videos


Before we start, the videos for HHC 2026 are up! Please take a look, everyone at HHC is wonderful, knowledgeable, and awesome.


https://www.youtube.com/@hpcalc




Introduction


Given:

* The AWG type (size) of a wire and the type (single 0 and numbers only, not 00, 000, or 0000)

* The length of the wire in meters

* The current going through the wire in amps



Calculate:

* Wire diameter (m)

* Resistance of the wire (Ω)

* Power Loss (W)

Instructions:

1. Store resistivity of material in R0. See the table below for reference (Test & Soldering Equipment), amounts may vary.

Cooper: 1.68 * 10^-8 Ω m

Aluminum: 2.65 * 10^-8 Ω m

Brass: 7.2 * 10^-8 Ω m

Gold: 2.44 * 10^-8 Ω m

Iron: 9.71 * 10^-8 Ω m

Silver: 1.59 * 10^-8 Ω m

Tin: 1.3 * 10^-7 Ω m



2. Input AWG number. Valid entries are 0 – 16. (Double, triple, and quadruple zeroes are not valid). Press [ f ] A (or whatever label is used) (AWG of 12 – 20 are common).


3. The wire diameter is displayed (in meters). Input the length of the wire (in meters) and press [R/S].


4. The resistance in ohms (Ω) is displayed. Input the current and press [R/S].


5. The power is displayed in watts (W).



HP 15C Code


001 42,21, 11: [f] LBL A

002 3: 3

003 6: 6

004 34: X<>Y

005 30: -

006 3: 3

007 9: 9

008 10: ÷

009 9: 9

010 2: 2

011 34: X<>Y

012 14: Y^X

013 48: .

014 1: 1

015 2: 2

016 7: 7

017 26: EEX

018 3: 3

019 16: CHS

020 20: ×

021 31: R/S

022 45, 0: RCL 0

023 20: ×

024 34: X<>Y

025 43, 11: [g] x^2

026 43, 26: [g] π

027 20: ×

028 4: 4

029 10: ÷

030 10: ÷

031 31: R/S

032 43, 11: [g] x^2

033 20: ×

034 43, 32: [g] RTN


Examples


Inputs: 12 AWG copper wire, 5 m long. A current of 20 Amps is running through the wire.


Copper Wire: 1.68 [EXP] 8 [CHS] [STO] 0

12 [f] A (Display, fix 5: 0.00205 (wire diameter in meters))

5 [R/S] (Display: 0.02539 Ω)

20 [R/S] (Display: 10.15482 W)


Inputs: 14 AWG iron wire, 100 m long. A current of 25 Amps is running through the wire.


Iron Wire: 9.71 [EXP] 8 [CHS] [STO] 0

14 [f] A (Display, fix 5: 0.00163 (wire diameter in meters))

100 [R/S] (Display: 4.66623 Ω)

25 [R/S] (Display: 2916.39555 W)


Sources


Chen, David. “What is I² (I-Squared) in Electrical Circuits: Power Loss & Let-Through” ElectricalFlux. September 9, 2026.

URL: https://electricalflux.com/learn-components/what-is-i-squared-power-loss-let-through

Retrieved: November 7, 2026


“Wire Resistance Calculator” Test & Soldering Equipment On-line Store. 2026.

URL:

https://www.tmatlantic.com/encyclopedia/index.php?ELEMENT_ID=54075&st_source=ai_overview

Retrieved: November 7, 2026



Quick Note:

I have returned. Over the last several weeks, I had jury duty and then the next week I had a medical procedure (everything turned out well, I’m doing great).


Eddie


All original content copyright, © 2011-2026. Edward Shore. Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited. This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author.


Saturday, November 23, 2019

HP 42S DM42 Smith Chart Conversions

HP 42S DM42 Smith Chart Conversions



Smith Conversions

Introduction

The program SMITH brings generates a custom menu that allows the user to convert between four factors: 

RL:  return loss
p:  reflection coefficient
s:  voltage standing ratio
SWR:  standing wave ratio

p = 10^-(RL/20)
s = (1 + p)(1 - p)
SWR = 20 * log s

Programs here:

HP 42S/DM42 Program:  SMITH

00 { 111-Byte Prgm }
01▸LBL "SMITH"
02 "RL>p"
03 KEY 1 GTO 01
04 "p>s"
05 KEY 2 GTO 02
06 "s>SWR"
07 KEY 3 GTO 03
08 "SWR>s"
09 KEY 4 GTO 04
10 "s>p"
11 KEY 5 GTO 05
12 "p>RL"
13 KEY 6 GTO 06
14 MENU
15▸LBL 07
16 STOP
17 GTO 07
18▸LBL 01
19 +/-
20▸LBL 04
21 20
22 ÷
23 10↑X
24 RTN
25▸LBL 02
26 STO 00
27 1
28 +
29 1
30 RCL- 00
31 ÷
32 RTN
33▸LBL 05
34 STO 00
35 1
36 -
37 1
38 RCL+ 00
39 ÷
40 RTN
41▸LBL 06
42 1/X
43▸LBL 03
44 LOG
45 20
46 ×
47 RTN
48 .END.

Example 1

Convert SWR of 12 to RL:

[XEQ]  (SMITH)
12  (SWR>s)  (s>p) (p>RL)

Result:  4.45901

Conversions Between Complex Reflection Coefficient and Impedance

It is recommended that you set the calculator to Degree and Polar modes.  To enter complex numbers in polar mode,

Z→R:  Convert from impedance to complex reflection coefficient
Stack:  Z, Z0 (characteristic impedance)

Γ = (Z/Z0 - 1) / (Z/Z0 + 1)

R→Z:  Convert from complex reflection coefficient to impedance
Stack:  Z0, Γ

Z = Z0 * (1 + Γ) / (1 - Γ)

HP 42S/DM42 Programs:  Z→R and R→Z

00 { 19-Byte Prgm }
01▸LBL "Z→R"
02 ÷
03 ENTER
04 ENTER
05 1
06 -
07 X<>Y
08 1
09 +
10 ÷
11 RTN
12 .END.

00 { 20-Byte Prgm }
01▸LBL "R→Z"
02 ENTER
03 ENTER
04 1
05 +
06 X<>Y
07 1
08 -
09 +/-
10 ÷
11 ×
12 RTN
13 .END.

Example 2

In a system with the resistance of 66 Ω has the impedance of 10 ∠ 15°.  What is the reflection coefficient?

(Degree and Polar Mode)
10 [ENTER] 15 [(shift)] (COMPLEX) 66 
[XEQ]  ( Z→R )

Result:  0.40469 ∠ -163.92848

Example 3

What is the impedance of a system with a reflection coefficient of 0.86∠50° with a resistor of 125 Ω?

(Degree and Polar Mode)
125 [ENTER] 0.86 [ENTER] 50 [(shift)] (COMPLEX)
[XEQ] (  R→Z )

Result:  246.80096 ∠ 78.82055°

Source: 

Step-by-Step Solutions For Your HP Calculator: Engineering Applications (HP-32S).  Hewlett Packard.  Edition 1. Corvallis, OR  June 1988

Eddie

All original content copyright, © 2011-2019.  Edward Shore.   Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited.  This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author.

Friday, January 4, 2019

HP Prime and HP 42S: Noise Figure and Noise Voltage

HP Prime and HP 42S:  Noise Figure and Noise Voltage

Notes:  The programs for the HP 42S format are designed to work with the HP 42S's solver.  The programs were created using Thomas Okken's Free42, and should also be compatible with the Swiss Micros DM42.

Noise Figure

Given system temperature (in Kelvins), this program calculates the noise figure (in Decibels), which describes the noise performance of an amplifier.  The noise figure is described as the difference between the noise output of an actual receiver to an ideal, noiseless receiver.  A noiseless receiver is said to have a resistor operating at room temperature, 290 K (about 16.85°C or 62.33°F). The lower the noise figure, the better.

Formula:

F = 10 * log(T/290 + 1)

where:

F = noise figure (dB)
T = system temperature (K)

HP Prime Program Function:  NOISEDB

EXPORT NOISEDB(T)
BEGIN
// Noise Figure in dB
// Input: T: Temperature (K)
// 2019-01-04 EWS
10*LOG(T/290+1);
END;

HP 42S Program for Solver:  NSEFG

00 { 35-Byte Prgm }
01▸LBL "NSEFG"
02 MVAR "F"
03 MVAR "T"
04 RCL "T"
05 290
06 ÷
07 1
08 +
09 LOG
10 10
11 ×
12 RCL "F"
13 -
14 END

Example (Fix 4):

Input:  T = 57.8°F, convert it to Kelvins, enter 287.4833 K (approximately)
Result:  F = 2.9914 dB

Noise Voltage

Given the noise bandwidth (in Hertz) and the resistance (in Ω), calculate the open-circuit voltage (in RMS volts).

Formula:

e_n = √(1.6*10^-20 * B * R)

where:

e_n = open circuit voltage noise (RMS volts)
B = bandwidth (Hz)
R = resistance (Ω)

HP Prime Program Function: NOISEVOLT

EXPORT NOISEVOLT(b,r)
BEGIN
// Noise Voltage in V
// Input: B=bandwidth (Hz)
// Input: R=resistor (Ω)
// input numbers only
√(1.6ᴇ−20*b*r);
END;

HP 42S Program for Solver:  NSEVT

00 { 37-Byte Prgm }
01▸LBL "NSEVT"
02 MVAR "B"
03 MVAR "R"
04 MVAR "En"
05 16ᴇ-21
06 RCL× "B"
07 RCL× "R"
08 SQRT
09 RCL- "En"
10 .END.

Example (FIX 4):

Input:  B = 31,000 Hz, R = 950 Ω
Result:  e_n = 6.8644e-7 V

Sources: 

Ball, John A.  Algorithms For RPN Calculators  John Wiley & Sons: New York  1978.  ISBN 0-471-03070-8

Eddie

All original content copyright, © 2011-2018.  Edward Shore.   Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited.  This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author.  Please contact the author if you have questions.

Saturday, May 19, 2018

Update to the Big Font Math Reference

Original post:  https://edspi31415.blogspot.com/2018/04/april-11-2018-seven-years.html

I added several sections to the Big Math Reference document, which you can download on the right side of the blog.

What is added:

* Days Between Dates Algorithm
*  Astronomy Formulas: Kepler's 3rd Law, Parallax, Luminosity, Schwartzchild Radius
*  Physics:  Projectile Motion, Linear Motion, Angular Motion
*  Electronics:  Ohm's Law, Resistance

Eddie

Thursday, August 10, 2017

Casio fx-3650p and HP 21S: Minimum Loss Matching

Casio fx-3650p and HP 21S: Minimum Loss Matching



This program takes the incoming impedances Z0 (from left) and Z1 (from right), and determines the resistance R1 and R2, with the corresponding minimum loss.  The program assumes that Z0 and Z1 are both positive and Z0 ≥ Z1. 

Formulas Used:

R1 = Z0 * √(1 – Z1/Z0)
R2 = Z1 / √(1 – Z1/Z0)
Minimum loss = 20 * log (√(Z1/Z0) + √(Z1/Z0 -1))

Casio fx-3650P

Input:  X = Z0, Y = Z1
Program (49 steps):

? → X : ? → Y : Y ÷ X → M :
X √ ( 1 – M → A ◢
Y √ ( 1 – M → B ◢
20 log ( √ M ^-1 + √ ( M ^-1 – 1 → C

HP 21S

Input:  Z0 gets stored in register 0, Z1 gets stored in register 1

Program (44 steps):

Step
Code
Key
Notes
01
61, 41, C
LBL C
Start the program
02
22, 1
RCL 1
Z1
03
45
÷

04
22, 0
RCL 0
Z0
05
74
=

06
21, 4
STO 4

07
33
(

08
1
1

09
65
-

10
22, 4
RCL 4

11
34
)

12
11
√

13
21, 5
STO 5

14
55
*

15
22, 0
RCL 0

16
74
=

17
21, 2
STO 2

18
26
R/S
Display R1
19
22, 1
RCL 1

20
45
÷

21
22, 5
RCL 5

22
74
=

23
21, 3
RCL 3

24
26
R/S
Display R2
25
33
(

26
22, 4
RCL 4

27
15
1/x

28
11
√

29
75
+

30
33
(

31
22, 4
RCL 4

32
15
1/x

33
65
-

34
1
1

35
34
)

36
11
√

37
34
)

38
51, 13
LOG

39
55
*

40
2
2

41
0
0

42
74
=

43
21, 5
STO 5
Display minimum loss (Z)
44
61, 26
RTN



Example:

Input:  Z0 = 50, Z1 = 45
Results: R1 = 15.8113883008, R2 = 142.302494708, Min Loss = 2.84419586692

Source:  Casio Scientific Formula 128 fx-1000F/fx-5000F owner’s manual, 1987

Eddie


This blog is property of Edward Shore, 2017

HP 15C: The I Squared Rule and HHC 2026

HP 15C: The I Squared Rule and HHC 2026 HHC 2026 Videos Before we start, the videos for HHC 2026 are up! Please take a look, ev...