forked from SwimTime/SwimTime.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·383 lines (358 loc) · 20.6 KB
/
index.html
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
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>SwimTime - Swim your Way to Success</title>
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom fonts for this template -->
<link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Merriweather:400,300,300italic,400italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
<!-- Plugin CSS -->
<link href="vendor/magnific-popup/magnific-popup.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/creative.min.css" rel="stylesheet">
</head>
<body id="page-top">
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-light fixed-top" id="mainNav">
<div class="container">
<a class="navbar-brand js-scroll-trigger" href="#page-top">SwimTime</a>
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#about">About</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#why">Why Swimtime</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#solution">Solution</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#features">Features</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#analysis">Analysis Dashboard FAQ</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#board">Implementation</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#contact">Contact</a>
</li>
</ul>
</div>
</div>
</nav>
<header class="masthead text-center text-white d-flex">
<div class="container my-auto">
<div class="row">
<div class="col-lg-10 mx-auto">
<h1 class="text-uppercase">
<strong>SwimTime</strong>
</h1>
<hr>
</div>
<div class="col-lg-5 mx-auto">
<h3 class="text-bold text-uppercase mb-5">Swim your way to Success.</h3>
<a class="btn btn-primary btn-xl js-scroll-trigger" href="#about">Find Out More</a>
</div>
</div>
</div>
</header>
<section class="bg-primary" id="about">
<div class="container">
<div class="row">
<div class="col-lg-8 mx-auto text-center">
<h2 class="section-heading text-white">About</h2>
<hr class="light my-4">
<h4></h4>
<p class="text-faded mb-4">SwimTime uses an ultrasonic sensor and thermometer to aid swimmers get closer to their goals. Attached on one end of the pool, it detects when you finished your lap and automatically records your lap times. Through a user interface you can control this IoT module, track your performance over time, and actively monitor the swimming conditions.</p>
<a class="btn btn-dark btn-xl js-scroll-trigger" href="#why">SwimTime Purpose</a>
</div>
</div>
</div>
</section>
<section id="why">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-heading">Why SwimTime?</h2>
<hr class="my-4">
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-6 text-center">
<div class="service-box mt-5 mx-auto">
<p class="text-justify"><b>Swimming is a very popular sport:</b></p>
<li class="text-justify">In the U.S. swimming is ranked as the No. 3 sports activity in terms of popularity.</li>
<li class="text-justify">Over 400,000 members have been registered in the USA.</li>
<li class="text-justify">In Great Britain swimming has been recorded as the No. 3 fitness activity for all ages with an approximately 10% increase in year-round athlete membership.</li><br>
<p class="text-justify">As the number of swimmers is rising, SwimTime strives to help these swimmers on their journey to success.</p>
<p class="text-justify"><b>Significance of water temperature:</b><br><br>In CNN it was reported that a high water temperature leads to muscle spasms due to the trapping of body heat. This can have fatal consequences if the "swimmer doesn’t always realize this over-exertion is occurring".<br><br>On the other hand, swimming in water that is too cold can also have dangerous implications. In an interview with CNN Professor Mike Tipton (Human and Applied Physiology at University of Portsmouth) explains that swimming in water below 21°C can cause "irregular heart rhythms in healthy people" and even "cardiac arrests in those with heart problems."<br><br>SwimTime aids in monitoring the swimming temperature to ensure that you are swimming in optimal conditions.</p>
</div>
</div>
<div class="col-lg-6 col-md-6 text-center">
<div class="service-box mt-5 mx-auto">
<p class="mb-3 text-justify"><b>SwimTime to analyse performance:</b><br><br>To progress in any competitive activity, you must be able to evaluate your performance to push your boundaries to the limit. Swimming is no different. The difficulty lies in being able to accurately and precisely measure your lap times to compare against others as well as your previous sessions. SwimTime provides automated and effective tracking of your swimming so that you can set your goals and observe how you achieve them over time.</p>
<img class="img-fluid" src="img/pic_swimtime.jpg" alt="">
<hr class="my-4">
<a class="btn btn-dark btn-xl js-scroll-trigger" href="#solution">See Solution</a>
</div>
</div>
<div class="row">
<div class="col-lg-12 mx-auto text-center">
</div>
</div>
</div>
</div>
</section>
<section class="bg-primary" id="solution">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-heading text-white">Solution</h2>
<hr class="light my-4">
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-6 text-center">
<div class="service-box mt-5 mx-auto">
<i class="fa fa-4x fa-newspaper-o text-faded mb-3 sr-icons"></i>
<h5 class="mb-3 text-white">How to use SwimTime?</h4>
<img class="img-fluid" src="img/swim_lane.jpg" alt="">
</div>
</div>
<div class="col-lg-6 col-md-6 text-center">
<div class="service-box mt-5 mx-auto">
<p class="mb-3 text-justify text-white">All you must do is specify through the website how many laps you are planning to do. A couple seconds thereafter the timer begins. The ultrasonic sensor measures the distance to you by transmitting and receiving sound waves and can detect when you have finished your lap. At that moment, SwimTime records the lap time, sends the data to the website and resets the timer for the next lap. This repeats until you finish all the laps specified. The website stores the necessary information to track your performance over time, such as various statistics.</p>
<a class="btn btn-dark btn-xl js-scroll-trigger" href="#features">See Product features</a>
</div>
</div>
<div class="row">
<div class="col-lg-12 mx-auto text-center">
</div>
</div>
</div>
</div>
</section>
<section id="features">
<div class="container">
<div class="row">
<div class="col-lg-8 mx-auto text-center">
<h2 class="section-heading">Product Features</h2>
<hr class="my-4">
<div class="row">
<div class="col-lg-6 mx-auto text-center">
<h2 class="mb-4 text-justify">Connect to the Internet</h2>
<p class="mb-4 text-justify">The connection of the board to the Internet facilitates the flow of information between the module and the dashboard. The module receives the number of laps you specified through the dashboard before you start swimming and sends the lap times back when you are done.</p>
</div>
<div class="col-lg-6 mx-auto text-center">
<br>
<br>
<img class="img-fluid" src="img/new2/internet.png" alt="">
</div>
</div>
<div class="row">
<div class="col-lg-6 mx-auto text-center">
<br>
<br>
<img class="img-fluid" src="img/new2/timer.png" alt="">
</div>
<div class="col-lg-6 mx-auto text-center">
<h2 class="mb-4 text-justify">Automatically Measure Your Lap Times</h2>
<p class="mb-4 text-justify">Equipped with an ultrasonic sensor, the board can detect when you have finished one lap by measuring your proximity with high frequency sound waves. The device times how long it takes you to complete a lap and logs this as the lap time.</p>
</div>
</div>
<div class="row">
<div class="col-lg-6 mx-auto text-center">
<h2 class="mb-4text-justify">Track Your Performance</h2>
<p class="mb-4 text-justify">After you are done with your session you can visit the dashboard to see how well you performed. With the dynamic graph you can track your improvement by analysing the change in your overall times. Furthermore, you can extract information about your stamina from the individual lap times.</p>
</div>
<div class="col-lg-6 mx-auto text-center">
<br>
<br>
<br>
<img class="img-fluid" src="img/new2/performance.png" alt="">
<br>
</div>
</div>
<div class="row">
<div class="col-lg-6 mx-auto text-center">
<br>
<img class="img-fluid" src="img/new2/web.png" alt="">
</div>
<div class="col-lg-6 mx-auto text-center">
<h2 class="mb-4 text-justify">User-Friendly Interface</h2>
<p class="mb-4 text-justify">The simple yet effective user interface means you can focus on your swimming and let SwimTime do the rest.</p>
</div>
</div>
<div class="row">
<div class="col-lg-6 mx-auto text-center">
<br>
<h2 class="mb-4 text-justify">Measure Temperature</h2>
<p class="mb-4 text-justify">SwimTime uses a thermometer to let you know if your pool is operating at the ideal temperature.</p>
</div>
<div class="col-lg-6 mx-auto text-center">
<br>
<br>
<img class="img-fluid" src="img/temp.png" alt="">
</div>
</div>
<hr class="light my-4">
<a class="btn btn-dark btn-xl js-scroll-trigger" href="#analysis">Analysis Dashboard FAQ</a>
</div>
</div>
</div>
</section>
<section class="bg-primary" id="analysis">
<div class="container">
<div class="row">
<div class="col-lg-8 mx-auto text-center">
<h2 class="section-heading text-white">Analysis Dashboard FAQ</h2>
<hr class="light my-4">
<p class="text-white mb-4 text-justify text-bold">Q. How do you access the analysis dashboard?<br>A. You can find the link <a href="https://io.adafruit.com/kk2314/dashboards/swimtime" style="color:blue">here</a>.</p><br>
<p class="text-white mb-4 text-justify text-bold">Q. How do you start your session?<br>A. Simply select the number of laps you wish to swim with the "lap" slider and press "start."</p><br>
<p class="text-white mb-4 text-justify text-bold">Q. How is the data transferred to the analysis dashboard?<br>A. This is done automatically over an MQTT broker.</p><br>
<p class="text-white mb-4 text-justify text-bold">Q. What analysis tools/data processing are available on this dashboard?<br>A. Several useful tools have been incorporated in the analysis dashboard that allow you to monitor various aspects of your swimming. These tools include a real-time stream that displays the lap times as you complete each lap and a dynamic graph to depict the evolution of your lap times. Values such as your best, worst, total, and average lap times are also shown for your complete session. Finally, as an indication of the swimming conditions a temperature measure is also displayed.</p><br>
<hr class="light my-4">
<img class="img-fluid" src="img/Dashboard.png" alt=""><br>
<hr class="light my-4">
<a class="btn btn-dark btn-xl js-scroll-trigger" href="#board">See Technical Implementation</a>
</div>
</div>
</div>
</section>
<section id="board">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-heading">Board Implementation</h2>
<hr class="my-4">
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-6 text-center">
<div class="service-box mt-5 mx-auto">
<img class="img-fluid" src="img/tech.jpg" alt="">
</div>
</div>
<div class="col-lg-6 col-md-6 text-center">
<div class="service-box mt-5 mx-auto">
<p class="mb-3 text-justify">The Adafruit Feather HUZZAH ESP8266 board reads/writes data to/from sensors, processes the data and establishes a WiFi connection with the MQTT. The board interfaces with sensors via an I2C interface; the SwimTime board interfaces with four components: an ultrasonic range sensor, a temperature sensor, a buzzer, and an ADS115 analog to digital converter. The ADS115 receives an analog signal from the ultrasonic range sensor, which is proportional to the distance. This signal is converted to a distance measure, which is subsequently compared to a threshold. If the measure is less than the threshold value, the device considers a lap to be completed. It then records the lap time and resets the timer for the next lap. <i>(Note: To obtain an improved performance, a sonar range sensor should be used over the ultrasonic sensor. Furthermore, the board should be enclosed within a waterproof case.)</i></p>
<a class="btn btn-dark btn-xl js-scroll-trigger" href="#mqtt">More Information on the MQTT</a>
</div>
</div>
<div class="row">
<div class="col-lg-12 mx-auto text-center">
</div>
</div>
</div>
</div>
</section>
<section class="bg-primary" id="mqtt">
<div class="container">
<div class="row">
<div class="col-lg-8 mx-auto text-center">
<h2 class="section-heading text-white">MQTT Implementation</h2>
<hr class="light my-4">
<p class="text-white mb-4 text-justify text-bold">The Message Queuing Telemetry Transport (MQTT) is an internet protocol that enables SwimTime to communicate with the Internet. It acts as a broker between the sensors and the server. SwimTime data is published to an online MQTT broker, which is subscribed to by Adafruit IO MQTT server.</p>
<a class="btn btn-dark btn-xl js-scroll-trigger" href="#dashboard">Analysis Dashboard</a>
</div>
</div>
</div>
</section>
<section id="dashboard">
<div class="container">
<div class="row">
<div class="col-lg-8 mx-auto text-center">
<h2 class="section-heading">Analysis Dashboard Implementation</h2>
<hr class="my-4">
<p class="mb-3 text-justify">The Adafruit IO MQTT server stores data, plots the lap times and displays the minimum, maximum and average lap time, as well as the total time of the laps specified. In addition to lap times, the dashboard displays the water temperature.</p>
<a class="btn btn-dark btn-xl" href="https://io.adafruit.com/kk2314/dashboards/swimtime">Access Analysis Dashboard</a>
</div>
</div>
</div>
</section>
<section class="bg-primary" id="contact">
<div class="container">
<div class="row">
<div class="col-lg-8 mx-auto text-center">
<h2 class="section-heading text-white">Contact Details</h2>
<hr class="my-4">
<p class="mb-5 text-white">Feel free to contact us to learn more about SwimTime. Give us a call or send us an email and we will get back to you as soon as possible.</p>
</div>
</div>
<div id="map" style="width:auto;height:400px;">My map will go here</div>
<script>
function myMap() {
var uluru = {lat: 51.499208, lng: -0.174882};
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 17,
center: uluru
});
var marker = new google.maps.Marker({
position: uluru,
map: map
});}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCwKPPJmegD0e_1yO4usQBYMl61dFc8lH8&callback=myMap"></script>
</div>
</section>
<footer class="">
<div class="footer-above row bg-dark text-white">
<div class="col-lg-4 ml-auto text-center">
<i class="fa fa-phone fa-3x mb-3 sr-contact"></i>
<p>Contact: Mr. Tanmay Gautam <br> Tel: +44 (0) 7756 601 603<br>Contact: Mr. Yousif Elmosharaf <br> Tel: +44 (0) 7404 841 783</p>
</div>
<div class="col-lg-4 mr-auto text-center">
<i class="fa fa-envelope-o fa-3x mb-3 sr-contact"></i>
<p>
Contact: Mr. Alexandros Haliassos <br>
<a href="mailto:ah2214@ic.ac.uk">Send an Email</a><br>
Contact: Mr. Keidi Kapllani <br>
<a href="mailto:kk2314@ic.ac.uk">Send an Email</a>
</p>
</div>
<div class="col-lg-4 mr-auto text-center">
<i class="fa fa-location-arrow fa-3x mb-3 sr-contact"></i>
<p>
Imperial College London<br>
Kensington, London SW7 2AZ<br>
United Kingdom
</p>
</div>
</div>
<!--<div class="footer-below bg-primary">
<div class="col-lg-12 text-center">
<h5>
Copyright © SwimTime 2018
</h5>
</div>
</div>
</footer> -->
<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Plugin JavaScript -->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<script src="vendor/scrollreveal/scrollreveal.min.js"></script>
<script src="vendor/magnific-popup/jquery.magnific-popup.min.js"></script>
<!-- Custom scripts for this template -->
<script src="js/creative.min.js"></script>
</body>
</html>