Ohms law calculator

Hey I had an hour of free time to myself and I made this

Click B to pull up the menu again

8 Likes

I just thought I’d go a little in depth about how this works. Basically if you’ve ever learned about what electrical engineering is you would know that you need to have a power supply, like a battery. You would also need a way to cut down the power by a little bit. That would be done with a resistor. The thing battery’s and resistors have in common is the measurement. They don’t use the exact same measurement but if you know what battery you need for a devise then you would know the voltage. Which is the measurement of battery’s. And the measurement of resistors is measured in ohms. The ohms law calculator uses two of the following four measurements to calculate the missing two. The measurements are: Ohms, Volts, Power, and Current. If you know the first two on your project than you could find out the other two using the ohms law wheel shown below.
IMG_0536
Let’s say you have a Power 6 and a Voltage of 12.

(Just so you know Amps is another word for current)

By looking at the wheel you see to find the current you divide the Power by the Volts.
Tada :tada: you have got a Current of 0.5.
Now let’s find the Ohms.
By looking at this we can see that to find this we solve Volts to the 2nd power (or Volts squared) divided by the Power which is 24

Now we know that the Ohms are 24 and the Current is 0.5. What this code does is basically all that bit without you doing the math.

I hope you understand what this is and how to use it now.

@RobbyZero

1 Like