-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
158 lines (122 loc) · 5.67 KB
/
Copy pathindex.html
File metadata and controls
158 lines (122 loc) · 5.67 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>VLABS</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<!-- logo image -->
<div class="logo">
<img src="IMAGES YAAR/logobgr.png" alt="">
</div>
<div class="Vlabs">
<span>VLABS</span>
</div>
<div class="User">
<span>Profile Name</span>
</div>
<!--
<div class="logouserprofile">
<img src="IMAGES YAAR/logobgr.png" alt="">
</div>
-->
<div class="Signupbutton">
<span><a href="https://vlabsproject.github.io/signup-login/">Sign Out</a></span>
</div>
<div class="line1"> </div>
<div class="linetwo"> </div>
<div class="labtitle">ASK Modulation and Demodulation</div>
<div class="next"> Next</div>
<div class="back"> Back</div>
<div class="bluewrapper"> </div>
<div class="wrapper">
<div class="titleinstruction"> Instruction</div>
<div class="midContainer1">
1. First Turn on 8 Bit Variable data generator using power switch which helps to generate the data signal from given data <br><br>
2. Change the orientation of data switch as per your data, for 0 toggle it up to vice versa.<br><br>
3. Check the data again from S0 to S7 bit and the amplitude and frequency of message signal.<br>
</div>
<div class="midContainer2">
4. Click on RUN button to generate the ASK signal <br><br>
5. Observe the graph and download it from right to top corner of graph in png , jpeg , and pdf format.<br><br>
6. To decode the ASK signal click the decode button shown below.<br>
</div>
</div>
<div class="linethree"> </div>
<div class="linefour"> </div>
<div class="titlesimulation"> Simulation</div>
<div id="parent">
<!-- switch -->
<div class="setup1">
<span><img src="IMAGES YAAR/setup bg.jpg" alt=""></span>
</div>
<!-- switch -->
<div class="imagebgswitch"> </div>
<div class="Switch">
<div class="switchRed shadow" onclick="onOff()"> </div>
<!-- bulb -->
<div class="led "><img id="leds" src="IMAGES YAAR/redLed.png"></div>
</div>
<!-- User Input -->
<div class="userInput">
<img src="IMAGES YAAR/zero.jpeg" class="image" id="ss0" >
<img src="IMAGES YAAR/zero.jpeg" class="image" id="ss1" >
<img src="IMAGES YAAR/zero.jpeg" class="image" id="ss2" >
<img src="IMAGES YAAR/zero.jpeg" class="image" id="ss3" >
<img src="IMAGES YAAR/zero.jpeg" class="image" id="ss4" >
<img src="IMAGES YAAR/zero.jpeg" class="image" id="ss5" >
<img src="IMAGES YAAR/zero.jpeg" class="image" id="ss6" >
<img src="IMAGES YAAR/zero.jpeg" class="image" id="ss7" >
<button class="runButton" onclick="printArray()">RUN </button>
</div>
<!-- Toogle Pins Code -->
<div class="togglepins">
<span class="s0" ><img id="s0" src="IMAGES YAAR/toggle_off.png" onclick="swapOneZero0(); playSound();"/></span>
<span class="s1"> <img id="s1" src="IMAGES YAAR/toggle_off.png" onclick="swapOneZero1(); playSound();" /></span>
<span class="s2" ><img id="s2" src="IMAGES YAAR/toggle_off.png" onclick="swapOneZero2(); playSound();"/></span>
<span class="s3" ><img id="s3" src="IMAGES YAAR/toggle_off.png" onclick="swapOneZero3(); playSound();"/></span>
<span class="s4" ><img id="s4" src="IMAGES YAAR/toggle_off.png" onclick="swapOneZero4(); playSound();"/></span>
<span class="s5" ><img id="s5" src="IMAGES YAAR/toggle_off.png" onclick="swapOneZero5(); playSound();"/></span>
<span class="s6" ><img id="s6" src="IMAGES YAAR/toggle_off.png" onclick="swapOneZero6(); playSound();"/></span>
<span class="s" ><img id="s7" src="IMAGES YAAR/toggle_off.png" onclick="swapOneZero7(); playSound();"/></span>
</div>
<div class="amplitudeslider">
<input id="amp_input" type="range" class="ampslider" min="0" value="0" max="10" step="1" />
<div class="amplitudeslidervalue">
<p class="values"> <output id="value1"></output></p>
</div>
</div>
<div class="frequencyslider">
<input id="freq_input" type="range" class="freqslider" min="0" value="0" max="10" step="1" />
<div class="frequencyslidervalue">
<p class="values"> <output id="value2"></output></p>
</div>
</div>
</div>
<div class="Simulationsubtextone">Amplitude</div>
<div class="Simulationsubtexttwo">Frequency</div>
<div class="linefive"> </div>
<div class="linesix"> </div>
<div class="titlegraph"> Graph</div>
<!-- Graphs -->
<div class="Gbg1">Message Signal</div>
<div class="Gbg2">ASK Signal </div>
<div class="Gbg3">Carrier Signal</div>
<div class="Gbg4">Decoding of ASK signal</div>
<div>
</div>
<div class="graphs">
<canvas id="canvasBinary" width = "640px" height = " 450px" ; style="border:1px solid"></canvas>
<!-- <canvas id="canvasFSK" width = "640px" height=" 370px" style="border:1px solid"></canvas> -->
<canvas id="canvasASK" width = "640px" height=" 370px" style="border:1px solid"></canvas>
<canvas id="canvasCarrier" width = "640px" height=" 370px" style="border:1px solid"></canvas>
<canvas id="canvasDemodulated" width = "650px" height=" 370px" style="border:1px solid"></canvas>
</div>
<div class="last-block"></div>
</div>
<script src="index.js"></script>
</body>
</html>