-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnappy.html
More file actions
301 lines (256 loc) · 7.79 KB
/
nappy.html
File metadata and controls
301 lines (256 loc) · 7.79 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Nappy Robot Arm | Peter He</title>
<meta name="description" content="4-DOF Robot Arm with Custom Control Library">
<meta name="author" content="Peter He">
<meta property="og:url" content="https://peterhe.dev/nappy" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Nappy Robot Arm | Peter He" />
<meta property="og:description" content="4-DOF Robot Arm with Custom Control Library" />
<!-- Favicon -->
<link rel="icon" type="image/x-icon" href="favicon/favicon.ico">
<link rel="icon" type="image/svg+xml" href="favicon/favicon.svg">
<link rel="apple-touch-icon" sizes="180x180" href="favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="192x192" href="favicon/web-app-manifest-192x192.png">
<link rel="icon" type="image/png" sizes="512x512" href="favicon/web-app-manifest-512x512.png">
<link rel="manifest" href="favicon/site.webmanifest">
<script src="https://cdn.tailwindcss.com"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Inter', sans-serif;
margin: 0;
padding: 0;
background-color: #ffffff;
color: #000000;
line-height: 1.6;
}
.container {
display: flex;
min-height: 100vh;
max-width: 1400px;
margin: 0 auto;
padding: 0 2rem;
}
.left-section {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
}
.right-section {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
padding: 2rem;
}
.left-section img {
max-width: 100%;
height: auto;
border-radius: 10px;
}
.project-name {
color: #000000;
font-size: 2.5rem;
font-weight: 700;
}
h1 {
margin: 0 0 1rem 0;
}
h2 {
font-size: 1.5rem;
color: #333333;
margin: 0 0 1rem 0;
font-weight: 500;
}
p {
margin: 0.5rem 0;
color: #555555;
}
.video-section {
padding: 4rem 2rem;
text-align: center;
}
.video-section h2 {
font-size: 2.5rem;
margin-bottom: 2rem;
color: #000000;
}
.project-details {
margin: 2rem 0;
}
.project-details h3 {
font-size: 1.25rem;
margin: 0 0 1rem 0;
color: #000000;
}
.project-details ul {
margin: 0;
padding-left: 1.5rem;
}
.project-details li {
margin: 0.5rem 0;
color: #555555;
}
.learn-more-btn-wrapper {
text-align: center;
margin-top: 2rem;
}
.learn-more-btn {
display: inline-block;
padding: 1rem 2rem;
background-color: #000000;
color: white;
text-decoration: none;
border-radius: 5px;
font-weight: 500;
transition: background-color 0.3s ease;
}
.learn-more-btn:hover {
background-color: #333333;
}
.learn-more-section {
padding: 4rem 2rem;
background-color: #f8f9fa;
}
.learn-more-section h2 {
text-align: center;
font-size: 2.5rem;
margin-bottom: 3rem;
color: #000000;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
max-width: 1200px;
margin: 0 auto;
}
.feature {
background-color: white;
padding: 2rem;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.feature h3 {
font-size: 1.5rem;
margin: 0 0 1rem 0;
color: #000000;
}
.feature p {
margin: 1rem 0;
color: #555555;
}
footer {
text-align: center;
padding: 2rem 0;
color: #666666;
border-top: 1px solid #e5e5e5;
margin-top: 4rem;
}
@media (max-width: 768px) {
.container {
flex-direction: column;
padding: 0 1rem;
}
.left-section,
.right-section {
padding: 1rem;
}
.project-name {
font-size: 2rem;
}
.features-grid {
grid-template-columns: 1fr;
gap: 1rem;
}
}
</style>
</head>
<body class="bg-white text-gray-900 font-sans">
<!-- Navigation -->
<nav class="border-b border-gray-200 py-4">
<div class="max-w-6xl mx-auto px-6">
<div class="flex space-x-8">
<a href="index.html" class="text-gray-500 hover:text-gray-700 transition-colors">home</a>
<a href="projects.html" class="text-black font-medium border-b-2 border-black pb-1">projects</a>
<a href="research.html" class="text-gray-500 hover:text-gray-700 transition-colors">research</a>
<a href="creative.html" class="text-gray-500 hover:text-gray-700 transition-colors">creative</a>
</div>
</div>
</nav>
<div class="container">
<div class="left-section">
<img id="productImage" src="nappy.png" alt="Nappy Robot Arm">
</div>
<div class="right-section">
<h1><span class="project-name">Nappy</span></h1>
<h2>ECE 3140 Embedded Systems - Final Project</h2>
<p>A 4-DOF robot arm with custom control library</p>
<div class="project-details">
<h3>Key Features</h3>
<ul>
<li>Custom C library for analog servo control</li>
<li>Python Tkinter UI for control interface</li>
<li>UART communication protocol</li>
<li>Modified open-source 4-DOF arm design</li>
</ul>
</div>
<div class="learn-more-btn-wrapper">
<a href="https://pages.github.coecis.cornell.edu/ece3140-sp2025/ph475-xz834-yk699/" target="_blank" rel="noopener noreferrer" class="learn-more-btn">View Project Page</a>
</div>
</div>
</div>
<div class="learn-more-section" id="learn-more">
<h2>Project Details</h2>
<div class="features-grid">
<div class="feature">
<h3>Custom Control Library</h3>
<img id="productImage" src="robotgifnap.gif" alt="robotg trash">
<p>Developed a custom library in C for controlling analog servos with the FRDM-KL46Z embedded board, based on the standard Arduino servo library.</p>
</div>
<div class="feature">
<h3>User Interface</h3>
<img id="productImage" src="tkinter.png" alt="tkinter">
<p>Created a Tkinter Python UI for intuitive control of the robot arm through UART communication.</p>
</div>
<div class="feature">
<h3>Mechanical Design</h3>
<img id="productImage" src="nappymix.png" alt="robot w/ gun">
<p>Modified an open-source 4-DOF arm design by Omartronics to meet project requirements.</p>
</div>
</div>
</div>
<div class="video-section alt-bg">
<h2>Video</h2>
<div style="display: flex; justify-content: center; margin: 2rem 0;">
<iframe width="560" height="315" src="https://www.youtube.com/embed/fvBaP8aSvRo" title="YouTube video player" frameborder="0" allowfullscreen></iframe>
</div>
</div>
<footer>
<p>© 2025 Peter He</p>
</footer>
<script>
var prevScrollpos = window.pageYOffset;
window.onscroll = function () {
var currentScrollPos = window.pageYOffset;
var navbar = document.getElementById("navbar");
if (prevScrollpos > currentScrollPos) {
navbar.style.top = "0px";
} else {
if (currentScrollPos > 0) {
navbar.style.top = "-70px";
}
}
prevScrollpos = currentScrollPos;
};
</script>
</body>
</html>