# Ohms law calculator

**URL:** https://forum.makecode.com/t/ohms-law-calculator/26315
**Category:** Arcade
**Created:** [January 25, 2024, 1:59am UTC](https://forum.makecode.com/t/ohms-law-calculator/26315 "2024-01-25T01:59:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![RobbyZero](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robbyzero/32/17188_2.png) [@RobbyZero](https://forum.makecode.com/u/RobbyZero)
#### Post date: [January 25, 2024, 1:59am UTC](https://forum.makecode.com/t/ohms-law-calculator/26315/1 "2024-01-25T01:59:38Z")

</div>

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

> **[Ohms Law Calculator](https://arcade.makecode.com/S08678-83143-47612-33122)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Click B to pull up the menu again

---

<div class="post-metadata">

### Author: ![RobbyZero](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robbyzero/32/17188_2.png) [@RobbyZero](https://forum.makecode.com/u/RobbyZero)
#### Post date: [April 16, 2024, 3:42am UTC](https://forum.makecode.com/t/ohms-law-calculator/26315/2 "2024-04-16T03:42:11Z")

</div>

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](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/a/a8ebe7efb72da6d28d2282669efbc1eeaf6d3027.jpeg)  
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 🎉 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
