-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcirc01.html
314 lines (301 loc) · 12.9 KB
/
circ01.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
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>ardx:circ-01[.:wcrs:.]</title>
<meta name="description" content="Arduino Experimenters Kit Blinking LED circuit">
<!-- #include «head.html» -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--[if IE]><link rel="shortcut icon" href="favicon.ico"><![endif]-->
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<link rel="icon" href="favicon.png">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<script src="js/vendor/modernizr-2.8.3.min.js"></script>
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<!-- #include «topnav.html» -->
<nav id="topnav">
<a id="logo" href="https://wcrsyyc.github.io/"><img
src="img/wcrs_logo.png" alt="logo"></a>
<h2><a href="index.html">WCRS</a></h2>
<ul>
<li><a href="https://github.com/WCRSyyc/ardx">about</a> |</li>
<li><a href="https://github.com/WCRSyyc/ardx/issues">contact</a> |</li>
<li><a href="https://github.com/WCRSyyc/ardx/wiki">wiki</a></li>
</ul>
<hr>
<p><!-- current message text --></p>
</nav>
<!-- #include «sidebar.html» -->
<nav id="sidebar">
<section id="menu">
<ul>
<li><h2>PRODUCTS</h2>
<ul>
<li><a href="https://github.com/WCRSyyc/ardx/"><h3>(WCRS)</h3>ARDX additions</a>
<ul>
<li><a href="preface.html">
<h4>ABOUT</h4>A Few Words</a></li>
<!-- <li><a href="assembling.html">
<h4>ASSMB</h4>Putting It Together</a></li> -->
<li><a href="starthere.html">
<h4>START</h4>Startup Links</a></li>
<li><a href="programming.html">
<h4>PROG</h4>Programming Primer</a></li>
<li><a href="electronics.html">
<h4>ELEC</h4>Electronics Primer</a></li>
<li><a href="fritzing.html">
<h4>FRITZING</h4>Fritzing with ARDX</a></li>
<li><a href="circ01.html">
<h4>CIRC-01</h4>Blinking LED</a></li>
<li><a href="circ02.html">
<h4>CIRC-02</h4>Multiple LEDs</a></li>
<li><a href="circ03.html">
<h4>CIRC-03</h4>Transistors & Motors</a></li>
<li><a href="circ04.html">
<h4>CIRC-04</h4>Servos</a></li>
<li><a href="circ05.html">
<h4>CIRC-05</h4>74HC595 Shift Registers</a></li>
<li><a href="circ06.html">
<h4>CIRC-06</h4>Piezo Speaker</a></li>
<li><a href="circ07.html">
<h4>CIRC-07</h4>Pushbuttons</a></li>
<li><a href="circ08.html">
<h4>CIRC-08</h4>Potentiometers</a></li>
<li><a href="circ09.html">
<h4>CIRC-09</h4>Photo-Resistors</a></li>
<li><a href="circ10.html">
<h4>CIRC-10</h4>Temperature</a></li>
<li><a href="circ11.html">
<h4>CIRC-11</h4>Relays</a></li>
<li><a href="circ12.html">
<h4>CIRC-12</h4>RGB LED blink</a></li>
<li><a href="circ15.html">
<h4>CIRC-15</h4>Dice Simulator</a></li>
</ul>
</li>
<li><a href="https://github.com/WCRSyyc/ardx/"><h3>(WCRS)</h3>Python ARDX</a>
<ul>
<!-- <li><a href="preface.html">
<h4>ABOUT</h4>A Few Words</a></li> -->
<!-- <li><a href="assembling.html">
<h4>ASSMB</h4>Putting It Together</a></li> -->
<!-- <li><a href="starthere.html">
<h4>START</h4>Startup Links</a></li> -->
<!-- <li><a href="programming.html">
<h4>PROG</h4>Programming Primer</a></li> -->
<li><a href="electronics.html">
<h4>ELEC</h4>Electronics Primer</a></li>
<li><a href="fritzing.html">
<h4>FRITZING</h4>Fritzing with ARDX</a></li>
<li><a href="ArdxPythonHowTo.html">
<h4>GUIDE</h4>Python Guide</a></li>
<!--
<li><a href="circ01p.html">
<h4>CIRC-01</h4>Blinking LED</a></li>
<li><a href="circ02p.html">
<h4>CIRC-02</h4>Multiple LEDs</a></li>
<li><a href="circ03p.html">
<h4>CIRC-03</h4>Transistors & Motors</a></li>
<li><a href="circ04p.html">
<h4>CIRC-04</h4>Servos</a></li>
<li><a href="circ05p.html">
<h4>CIRC-05</h4>74HC595 Shift Registers</a></li>
<li><a href="circ06p.html">
<h4>CIRC-06</h4>Piezo Speaker</a></li>
<li><a href="circ07p.html">
<h4>CIRC-07</h4>Pushbuttons</a></li>
<li><a href="circ08p.html">
<h4>CIRC-08</h4>Potentiometers</a></li>
<li><a href="circ09p.html">
<h4>CIRC-09</h4>Photo-Resistors</a></li>
<li><a href="circ10p.html">
<h4>CIRC-10</h4>Temperature</a></li>
<li><a href="circ11p.html">
<h4>CIRC-11</h4>Relays</a></li>
<li><a href="circ12p.html">
<h4>CIRC-12</h4>RGB LED blink</a></li>
<li><a href="circ15p.html">
<h4>CIRC-15</h4>Dice Simulator</a></li> -->
</ul>
</li>
<li><a href="http://www.oomlout.com/a/products/ardx/"><h3>(ARDX)</h3>arduino / netduino experimenter´s kit</a>
</li>
</ul>
</li>
</ul>
</section>
<section>
<h3><a rel="license" href="http://creativecommons.org/licenses/by/4.0/">
<img alt="Creative Commons License"
src="img/80x15.png"></a></h3>
This work is licensed under a <a rel="license"
href="http://creativecommons.org/licenses/by/4.0/">Creative Commons
Attribution 4.0 International License</a>.
</section>
</nav>
<main id="circ-01">
<header>
<h1>CIRC<br/>01</h1>
<h2>.:Getting Started:.<br/>.:Blinking LED:.</h2>
<img src="img/experiments/CIRC-01-square-100.jpg" width="100" height="100" alt="blinking led circuit">
</header>
<h2>(ARDX) .:Arduino Experimentation Kit:. (ARDX)</h2>
<section>
<h2>What We're Doing</h2>
<p>LEDs (light emitting diodes) are used in all sorts of clever things, which is why we have included them in this kit. We will start off with something very simple, turning one on and off, repeatedly, producing a pleasant blinking effect. To get started, grab the parts listed below, Optionally, <a href="https://github.com/WCRSyyc/ardx/wiki/layout-sheet">pin the layout sheet to your breadboard</a>, then plug everything in. Once the circuit is assembled you'll need to upload the program. To do this plug the Arduino board into your USB port. Then select the proper board in Tools > Board > (<a href="https://github.com/WCRSyyc/ardx/wiki/Arduino-Boards">your Arduino board</a>), and port in Tools > Serial Port > (the comm port of your Arduino). Next upload the program by going to File > Upload to I/O Board (ctrl+U). Finally, bask in the glory and possibility that controlling lights offers.</p>
<p>If you are having trouble uploading, a full trouble shooting guide can be found here: <a href="https://www.arduino.cc/en/Guide/Troubleshooting">http://ardx.org/TRBL</a></p>
<p>If you have having trouble identifying the parts, have a look at the <a href="electronics.html">Electronics Primer</a> page, which is also available from the (WCRS) menu to the left.</p>
</section>
<section id="circuit">
<h2>The Circuit</h2>
<div id="CIRC-theparts">
<h3>The Parts</h3>
<table>
<tr>
<td><img src="img/parts/CIRC-01-3dsheet-60.png"
width="60" height="36" alt="circuit 1 breadboard sheet 3d view"/></td>
<td>CIRC-01<br/>Breadboard Sheet<br/>x1</td>
<td><img src="img/parts/HEAD-02-60.png"
width="60" height="36" alt="2 pin header"/></td>
<td>2 Pin Header<br/>x4</td>
<td><img src="img/parts/LED-10B-60.png"
width="60" height="36" alt="10mm LED"/></td>
<td>10mm LED<br/>x1</td>
<td><img src="img/parts/WIRE-01-60.png"
width="60" height="36" alt="wire"/></td>
<td>Wire</td>
</tr><tr>
<td><img src="img/parts/RES-561-60.png"
width="60" height="36" alt="resistor"/></td>
<td>560 Ohm Resistor<br/>Green-Blue-Black-Black<br/>x1</td>
<td colspan="6"></td>
</tr>
</table>
</div>
<span class="bb-svg-container"><svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="24 12 76 76"
preserveAspectRatio="xMaxYMin meet">
<image height="100" width="100"
xlink:href="img/experiments/CIRC01-bb.svg"/>
</svg></span>
<div>
<h3>Schematic</h3>
<span class="sch-svg-container"><svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="78 57 27 27"
preserveAspectRatio="xMidYMin meet">
<image height="100" width="100"
xlink:href="img/experiments/CIRC01-sch.svg" />
</svg></span>
</div>
<div>
<h3>Resources</h3>
<h4>.:download:.</h4>
<p>Breadboard layout sheet<br/>
<a href="img/experiments/CIRC01-sheet-OOML.pdf">http://ardx.org/BBLS01</a>
</p>
<p>Fritzing diagram<br/><a href="fritzing/CIRC01.fzz">
https://wcrsyyc.github.io/ardx/fritzing/CIRC01.fzz</a></p>
<h4>.:view:.</h4>
<p>
assembly video<br/>
<a href="https://www.youtube.com/watch?v=vGHjV50NxqY">http://ardx.org/VIDE01</a>
</p>
</div>
</section>
<section id="code">
<h2>Code <span>(no need to type everything in just)</span></h2>
<p>Download the Code from ( <a
href="code/CIRC01-code.txt">
https://wcrsyyc.github.io/ardx/code/CIRC01-code.txt</a> )<br/>
(and then copy the text and paste it into an empty Arduino Sketch)</p>
<p>An alternate version can be opened from the Arduino IDE</p>
<h3>File > Examples > 1.Basic > Blink</h3>
<p>(example from the great <a href="https://www.arduino.cc/">arduino.cc</a> site, check it out for other ideas)</p>
<pre>/*
*Blink
*Turns an LED on for one second, then off for one second, repeatedly.
*The circuit:
* LED connected from digital pin 13 to ground.
* Note: On most Arduino boards, there is already an LED on the board
* connected to pin 13, so you don't need any extra components for this example.
*Created 1 June 2005
*By David Cuartielles
*http://arduino.cc/en/Tutorial/Blink
*based on an original by H. Barragan for the Wiring i/o board
*/
int ledPin = 13; // LED connected to digital pin 13
// The setup() method runs once, when the sketch starts
void setup()
{
// initialize the digital pin as an output:
pinMode(ledPin, OUTPUT);
}
// the loop() method runs over and over again,
// as long as the Arduino has power
void loop()
{
digitalWrite(ledPin, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(ledPin, LOW); // set the LED off
delay(1000); // wait for a second
}</pre>
</section>
<section id="CIRC-notworking">
<h2>Not Working? <span>(3 things to try)</span></h2>
<div>
<h3>LED Not Lighting Up?</h3>
<p>LEDs will only work in one direction. Try taking it out and twisting it 180 degrees.<br/>
(no need to worry, installing it backwards does no permanent harm).</p>
</div>
<div>
<h3>Program Not Uploading</h3>
<p>This happens sometimes, the most likely cause is a confused serial port, you can change this in <b>tools>serial port></b></p>
</div>
<div>
<h3>Still No Success?</h3>
<p>A broken circuit is no fun, send us an e-mail and we will get back to you as soon as we can.</p>
<p><a href="mailto:[email protected]">[email protected]</a></p>
</div>
</section>
<section id="CIRC-makingBetter">
<h2>Making it Better?</h2>
<h3>Changing the pin:</h3>
<p>The LED is connected to pin 13 but we can use any of the Arduino's pins. To change it take the wire plugged into pin 13 and move it to a pin of your choice (from 0-13) (you can also use analog 0-5 analog 0 is 14...)</p>
<p>Then in the code change the line:<br/>
<code>int ledPin = 13;</code> -> <code>int ledPin = newpin;</code><br/>
Fill in your own number for "newpin".</p>
<p>Then upload the sketch: (ctrl-u) </p>
<h3>Change the Blink Time:</h3>
<p>Unhappy with one second on, one second off?</p>
<p>In the code change the lines:</p>
<pre> digitalWrite(ledPin, HIGH);
delay(time on); //(seconds * 1000)
digitalWrite(ledPin, LOW);
delay(time off); //(seconds * 1000</pre>
<p>Fill in your own numbers for "time on" and "time off".</p>
<h3>Control the Brightness:</h3>
<p>Along with digital (on/off) control the Arduino can control some pins in an analog (brightness) fashion. (more details on this in later circuits). To play around with it.</p>
<p>Change the LED to pin 9: (also change the wire)<br/>
<code>int ledPin = 13;</code> -> <code>int ledPin = 9;</code></p>
<p>Replace the code inside the { }'s of loop() with this:</p>
<pre> analogWrite(ledPin, new number);</pre>
<p>(new number) = any number between 0 and 255. 0 = off, 255 = on, in between = different brightness</p>
<h3>Fading:</h3>
<p>We will use another included example program. To open, go to.<br/>
<b>File > Examples > Analog > Fading</b></p>
<p>Then upload to your board and watch as the LED fades in and then out.</p>
</section>
</main>
<footer>.:Welcome to the Bottom:.</footer>
</body>
</html>