-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabout.html
More file actions
340 lines (295 loc) · 12.3 KB
/
about.html
File metadata and controls
340 lines (295 loc) · 12.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SynchroPoint</title>
<link href="https://fonts.cdnfonts.com/css/raveparty-narrow" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<style>
.box {
display: flex;
align-items: center;
justify-content: space-around;
width: 100%;
margin: 40px auto;
padding: 40px;
border-radius: 20px;
background-color: #fff;
}
.box:nth-child(1) {
border: none;
box-shadow: none;
}
.box:nth-child(odd) {
flex-direction: row;
}
.box:nth-child(even) {
flex-direction: row-reverse;
}
.box img {
width: 40%;
height: auto;
border-radius: 10px;
border: 0px solid #ccc;
}
.box-content {
width: 55%;
padding: 0 20px;
}
.box-content h3 {
margin-top: 0;
font-size: 1.5rem;
color: #333;
}
.box-content p {
color: #555;
}
#graphSliderContainer {
display: flex;
flex-direction: column;
align-items: center;
}
#sineWaveCanvas {
border: 1px solid #000;
display: block;
margin-bottom: 20px; /* Space between canvas and slider */
}
#knobContainer {
margin-top: 10px; /* Space between slider and content below */
text-align: center; /* Center align the slider if desired */
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.slider-container {
--label: 2.75rem;
--width: clamp(20rem, calc(10.18rem + 43.64vw), 32rem);
--thumb: clamp(3rem, calc(2.28rem + 3.18vw), 3.88rem);
inline-size: var(--width);
aspect-ratio: 10.665 / 1;
display: grid;
position: relative;
padding-inline: var(--space);
border: 0;
border-radius: 100vh;
background: linear-gradient(
to right,
#fff9,
#0000,
hsl(203deg 21% 65%),
#0001,
#fff9
);
box-shadow: #0002 0px 2px 1px, #0001 0px 4px 2px, #0001 0px 8px 4px,
#0001 0px 16px 8px, #0001 0px 26px 16px;
}
.number--label {
position: absolute;
top: -3rem;
left: -1rem;
display: inline-flex;
align-items: center;
justify-content: center;
height: var(--label);
aspect-ratio: 1;
border-radius: 50%;
font-size: 1.75em;
transition: 366ms cubic-bezier(0.3, 0.6, 0.4, 1.125);
color: hsl(198deg 91% 45%);
}
.input-slider {
place-self: center;
border-radius: 100vh;
width: calc(var(--width) - 1rem);
height: min(2rem, 4vw);
background-color: hsl(198deg 41% 45%);
box-shadow: inset 0 2px 3px #0005, inset 0 -2px 2.5px 0.5px #fff3;
-webkit-appearance: none;
appearance: none;
outline: none;
}
.input-slider::-webkit-slider-thumb {
background: linear-gradient(
to bottom,
#fff 30%,
hsl(192, 3%, 68%) 75%,
hsl(192deg 3% 46%)
);
border-radius: 50%;
width: clamp(3rem, calc(2.28rem + 3.18vw), 3.88rem);
aspect-ratio: 1;
-webkit-appearance: none;
appearance: none;
box-shadow: 0 -1px 5px 4px #fff7 inset, 0 1px 1.5px #0004, 0 2px 5px #0003,
0 5px 9px #0002;
}
.input-slider::-moz-range-thumb {
background: linear-gradient(
to bottom,
#fff 30%,
hsl(192, 3%, 68%) 75%,
hsl(192deg 3% 46%)
);
border-radius: 50%;
width: clamp(3rem, calc(2.28rem + 3.18vw), 3.88rem);
height: clamp(3rem, calc(2.28rem + 3.18vw), 3.88rem);
aspect-ratio: 1;
-webkit-appearance: none;
appearance: none;
box-shadow: 0 -1px 5px 4px #fff7 inset, 0 1px 1.5px #0004, 0 2px 5px #0003,
0 5px 9px #0002;
}
@media (max-width: 768px) {
.box {
flex-direction: column;
}
.box:nth-child(even) {
flex-direction: column;
}
.box img,
.box-content {
width: 100%;
}
}
.iframe-container {
display: block;
position: relative;
width: 40vw; /* Adjust as needed */
height: 45vw; /* Adjust as needed; aspect ratio 16:9 */
max-width: 600px; /* Optional max width */
min-width: 400px;
max-height: 562px; /* Optional max height; maintains aspect ratio */
margin: 40px;
border: 20px;
}
.iframe-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}
</style>
</head>
<body>
<div class="container">
<h1>SynchroPoint</h1>
<h2>Precision Zero Cross Detection</h2>
<nav>
<a href="https://tsltd.github.io/webpage.html">Home</a>
<a href="https://tsltd.github.io/about">About</a>
<a href="https://tsltd.github.io/product_detail.html">Our Product</a>
<a href="https://tsltd.github.io/contact.html">Contact</a>
</nav>
<main>
<!-- Box 1 -->
<div class="box">
<video controls>
<source src="videos/What_Is_a_Zero_Cross_Detector.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="box-content">
<h3>What is a Zero Cross Detector?</h3>
<p>The basics of zero cross detection in under 4 minutes!</p>
</div>
</div>
<!-- Box 2 -->
<div class="box">
<img src="scope.png" alt="Image placeholder">
<div class="box-content">
<h3>Power Supply Monitoring</h3>
<p>A zero cross detector is essential for digitally monitoring the frequency of a power supply, and can also be used to monitor stability. The SynchroPoint zero cross detector also allows the polarity of the supply voltage to be determined at a given time.</p>
</div>
</div>
<!-- Box 3 -->
<div class="box">
<iframe src="graphSlider.html" style="width: 100%; height: 600px; border: none;"></iframe>
<div class="box-content">
<h3>Power Control</h3>
<p>Combined with a microcontroller and a relay, the zero cross detector can be used to control average voltage output. This is used to modulate power, for example to control the brightness of a light, the temperature of a heater or the speed of a motor.</p>
</div>
</div>
<!-- Box 4 -->
<div class="box">
<div class="iframe-container">
<iframe src="/turbines.html" allowfullscreen></iframe>
</div>
<div class="box-content">
<h3>Power Generation - Grid Injection</h3>
<p>A zero cross detector is essential when injecting generated electricity into the power grid to ensure seamless and synchronized integration. By detecting the precise moment when the grid's AC voltage crosses zero, the zero cross detector enables the synchronization of the phase, frequency, and voltage of the generated power with that of the grid. This synchronization is crucial to avoid disruptions, minimize the risk of electrical faults, and ensure that the injected power blends smoothly with the existing grid supply. Without zero cross detection, improper synchronization could lead to inefficiencies, equipment damage, or even grid instability.</p>
</div>
</div>
<!-- Box 5 -->
<div class="box">
<div class="iframe-container">
<iframe src="/distro_animation.html" allowfullscreen></iframe>
</div>
<div class="box-content">
<h3>Power Distribution</h3>
<p>A zero cross detector can enable efficient and precise power distribution across multiple channels using integral wave burst firing methods. By ensuring precise timing when switching power at the zero-voltage point of the AC waveform, electrical noise and power loss are reduced, allowing for smooth and accurate power delivery. Randomizing the sequence can further minimize harmomics and EMI.</p>
<a href="/proposal.html">Algorithmic optimization of randomized burst firing- A Proposal</a>
</div>
</div>
<a href="webpage.html" class="button-71">Back to Home</a>
</main>
</div>
<footer>
<p>© 2024 SynchroPoint Ltd. All rights reserved.</p>
<p>
<a href="https://synchropoint.co.uk/privacy">Privacy Policy</a> |
<a href="https://synchropoint.co.uk/terms">Terms of Service</a>
</p>
</footer>
<script>
const canvas = document.getElementById('sineWaveCanvas');
const ctx = canvas.getContext('2d');
const knob = document.getElementById('input-slider');
const spinningWheel = document.getElementById('spinningWheel');
const canvasWidth = canvas.width;
const canvasHeight = canvas.height;
const amplitude = 50; // Amplitude of the sine wave
const frequency = 5; // Frequency of the sine wave (in cycles per canvas width)
const squareWaveFrequency = frequency * 2;
const minSpeed = 10; // Minimum speed (in seconds for one full rotation)
const maxSpeed = 0.1; // Maximum speed (in seconds for one full rotation)
function updateSpinningWheelSpeed() {
const value = knob.value;
const percent = value / 100;
// Calculate the animation duration based on slider value
const speed = minSpeed - percent * (minSpeed - maxSpeed); // Linear mapping from minSpeed to maxSpeed
spinningWheel.style.animationDuration = `${speed}s`;
}
function drawSineWave(dutyCycle) {
ctx.clearRect(0, 0, canvasWidth, canvasHeight);
const sineWavePeriod = canvasWidth / frequency;
const squareWavePeriod = canvasWidth / squareWaveFrequency;
ctx.beginPath();
for (let x = 0; x <= canvasWidth; x++) {
const angle = (x / canvasWidth) * 2 * Math.PI * frequency;
const y = (canvasHeight / 2) + amplitude * Math.sin(angle);
const currentCyclePosition = x % squareWavePeriod;
if (currentCyclePosition < (dutyCycle / 100) * squareWavePeriod) {
ctx.lineTo(x, y);
} else {
ctx.lineTo(x, canvasHeight / 2);
}
}
ctx.strokeStyle = '#000';
ctx.lineWidth = 2;
ctx.stroke();
}
function updateWave() {
const dutyCycle = knob.value;
drawSineWave(dutyCycle);
updateSpinningWheelSpeed();
}
knob.addEventListener('input', updateWave);
// Initial draw and spinning wheel speed setup
updateWave();
</script>
</body>
</html>