Skip to content

signaloid/Signaloid-Demo-Electronics-ResistorPowerDissipation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[Add to signaloid.io] [Add to signaloid.io]

Example: Resistor Power Dissipation

This is a minimal example that demonstrates the effect of uncertainty in resistance and voltage on the power dissipation of the resistor.

Getting started

Use the "add to signaloid.io" image button to add this application to your Signaloid Cloud account and run it.

You can fork this repository on GitHub, or clone it with:

git clone git@github.com:signaloid/Signaloid-Demo-Electronics-ResistorPowerDissipation.git

This repository does not include any build system. The Signaloid Cloud Compute Engine handles building the application.

Inputs

This example does not accept command-line arguments or inputs.

The example defines the following constants which it uses for computing the result:

  • Nominal resistance of the resistor: $1000 \hspace{0.5ex} \Omega$.
  • Tolerance of the resistor, assuming a gold-band resistor: $0.05 \% $.
  • Nominal voltage of the circuit: $3.3 \hspace{0.5ex} \mathrm{V}$.
  • Standard deviation for the voltage of the circuit: $0.01 \hspace{0.5ex} \mathrm{V}$.

With these constants, the example creates the following values and then uses them in Equation 1 for $\mathrm{V}$ and $\mathrm{R}$:

Voltage Distribution (Volts) Resistance Distribution (Ohms)

(C0-L+)

(C0-L+)

Voltage Distribution Resistance Distribution

Output

Running this application computes the power dissipation of the resistor (Equation 1) assuming the actual resistance value and the supplied voltage both are uncertain.

$$P=\frac{V^2}{R} \tag{1}$$


Resistor Power Dissipation Distribution (Watts)

(C0-L+)

Resistor Power Dissipation Distribution

Usage

This example does not accept command-line arguments or inputs.

Repository Structure

This is a simple repository with a single source file and entry point: src/main.c.

About

Compute the resistor power dissipation probability distribution taking resistor tolerance into account.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages