shfw-walkthrough/logic/index.html

35 lines
1.6 KiB
HTML
Raw Normal View History

2024-03-24 14:53:43 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Peak Current Draw Calculator</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1>Peak Current Draw Calculator</h1>
2024-05-10 17:37:02 +02:00
<p class="note">Note: The values calculated here represent theoretical outputs based on input parameters. Actual values may vary due to system efficiency, environmental conditions, and component tolerances. Please use these values for planning purposes and consult hardware specifications for real-world applications.</p>
2024-03-24 14:53:43 +01:00
<div class="input-section">
<!-- Iq (Torque component) -->
<label for="torqueAmps">Torque amps (I<sub>q</sub>) in A:</label>
<input type="number" id="torqueAmps">
</div>
<div class="input-section">
<!-- Inputs for calculating Id (Flux component) -->
<label for="initialFlux">Initial flux (I<sub>d</sub>, base) in A:</label>
<input type="number" id="initialFlux">
<label for="variableFlux">Variable flux (I<sub>d</sub>, variable) in mAh:</label>
<input type="number" id="variableFlux">
<label for="currentMaxSpeed">Current max speed in km/h:</label>
<input type="number" id="currentMaxSpeed">
2024-05-10 17:37:02 +02:00
<label for="activationSpeed">Field weakening start speed in km/h:</label>
2024-03-24 14:53:43 +01:00
<input type="number" id="activationSpeed">
</div>
<button onclick="calculatePeakCurrentDraw()">Calculate Peak Current Draw (I<sub>total</sub>)</button>
<div id="result"></div>
</div>
<script src="script.js"></script>
</body>
</html>