-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardware.html
More file actions
394 lines (265 loc) · 11.2 KB
/
Copy pathhardware.html
File metadata and controls
394 lines (265 loc) · 11.2 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
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
384
385
386
387
388
389
390
391
392
393
394
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hardware — behaviour_box 0 documentation</title>
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="index" title="Index"
href="genindex.html"/>
<link rel="search" title="Search" href="search.html"/>
<link rel="top" title="behaviour_box 0 documentation" href="index.html"/>
<link rel="next" title="Usage" href="Usage.html"/>
<link rel="prev" title="Install" href="Installation.html"/>
<script src="_static/js/modernizr.min.js"></script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href="index.html" class="icon icon-home"> behaviour_box
</a>
<div class="version">
1
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<p class="caption"><span class="caption-text">Contents:</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="Installation.html">Install</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Hardware</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#parts-list">Parts List</a></li>
<li class="toctree-l2"><a class="reference internal" href="#wiring-of-the-amplifier">Wiring of the Amplifier</a></li>
<li class="toctree-l2"><a class="reference internal" href="#wiring-solenoids">Wiring Solenoids</a></li>
<li class="toctree-l2"><a class="reference internal" href="#wiring-the-arduino">Wiring the Arduino</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="Usage.html">Usage</a></li>
<li class="toctree-l1"><a class="reference internal" href="Output.html">Output Format</a></li>
<li class="toctree-l1"><a class="reference internal" href="details.html">Software Descriptions</a></li>
<li class="toctree-l1"><a class="reference internal" href="code.html">Code Reference</a></li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="index.html">behaviour_box</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="index.html">Docs</a> »</li>
<li>Hardware</li>
<li class="wy-breadcrumbs-aside">
<a href="_sources/hardware.rst.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<div class="section" id="hardware">
<h1>Hardware<a class="headerlink" href="#hardware" title="Permalink to this headline">¶</a></h1>
<p>The basic hardware requirements</p>
<div class="section" id="parts-list">
<h2>Parts List<a class="headerlink" href="#parts-list" title="Permalink to this headline">¶</a></h2>
<table border="1" class="docutils">
<colgroup>
<col width="6%" />
<col width="94%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">QTY</th>
<th class="head">item</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>1 ×</td>
<td>Arduino Uno</td>
</tr>
<tr class="row-odd"><td> </td>
<td>Wires</td>
</tr>
<tr class="row-even"><td> </td>
<td><strong>Amplifier</strong></td>
</tr>
<tr class="row-odd"><td>1 ×</td>
<td><a class="reference external" href="http://www.ti.com/product/LM358-N">LM358N Op Amp</a></td>
</tr>
<tr class="row-even"><td>2 ×</td>
<td>1 KΩ resistors</td>
</tr>
<tr class="row-odd"><td>1 ×</td>
<td>220 KΩ resistor</td>
</tr>
<tr class="row-even"><td>1 ×</td>
<td>1 MΩ resistor</td>
</tr>
<tr class="row-odd"><td>1 ×</td>
<td>240 µF capacitor</td>
</tr>
<tr class="row-even"><td>1 ×</td>
<td>10 Ω - 2 MΩ <a class="reference external" href="https://www.digikey.com/catalog/en/partgroup/trimpot-3386-sealed-series/5834">trimpot (Bourns 3386)</a></td>
</tr>
<tr class="row-odd"><td>1 ×</td>
<td>1N4001 diode</td>
</tr>
<tr class="row-even"><td> </td>
<td><strong>Sensor</strong></td>
</tr>
<tr class="row-odd"><td>1 ×</td>
<td><a class="reference external" href="http://www.piezodriveonline.com/0-6mm-range-piezo-bender-actuator-ba3502/">0.6 mm Range Piezo Bender Actuator</a></td>
</tr>
<tr class="row-even"><td>1 ×</td>
<td>blunted 24 G needle</td>
</tr>
<tr class="row-odd"><td> </td>
<td><strong>Water Delivery / Air Puffer</strong></td>
</tr>
<tr class="row-even"><td>2 ×</td>
<td><a class="reference external" href="http://www.takasago-fluidics.com/p/valve/s/pinch/PS/">24 V DC Solenoid pinch valve PS-1615NC</a></td>
</tr>
<tr class="row-odd"><td>2 ×</td>
<td><a class="reference external" href="https://www.sparkfun.com/products/10213">MOSFET RFP30N06LE</a></td>
</tr>
<tr class="row-even"><td>2 ×</td>
<td>1N4001 diode</td>
</tr>
<tr class="row-odd"><td>2 ×</td>
<td>10 KΩ resistors</td>
</tr>
<tr class="row-even"><td> </td>
<td><strong>Speaker</strong></td>
</tr>
<tr class="row-odd"><td>1 ×</td>
<td><a class="reference external" href="https://www.digikey.com/product-detail/en/pui-audio-inc/AS07008PO-2-R/668-1191-ND/1738484">speaker 8Ω 2W</a></td>
</tr>
<tr class="row-even"><td> </td>
<td><strong>Stimulus</strong></td>
</tr>
<tr class="row-odd"><td>1 ×</td>
<td><a class="reference external" href="https://www.precisionmicrodrives.com/product/308-100-8mm-vibration-motor-3mm-type">LRA 8mm (precision microdrives)</a></td>
</tr>
<tr class="row-even"><td> </td>
<td>BNC headers</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="wiring-of-the-amplifier">
<h2>Wiring of the Amplifier<a class="headerlink" href="#wiring-of-the-amplifier" title="Permalink to this headline">¶</a></h2>
<div align="center" class="align-center"><img alt="_images/Amplifier_circuit.svg" src="_images/Amplifier_circuit.svg" /></div>
</div>
<div class="section" id="wiring-solenoids">
<h2>Wiring Solenoids<a class="headerlink" href="#wiring-solenoids" title="Permalink to this headline">¶</a></h2>
<p>The air puffer and water delivery system can both be constructed
with the following circuit. This circuit is described in <a class="reference external" href="http://bildr.org/2012/03/rfp30n06le-arduino/">this blog post from
bildr</a>.</p>
<p>Both the air-puffer and water delivery system can be constructed using
solenoid pinch valves. The valves listed above require 24 V DC power supply,
which exceeds that supplied by the Arduino logic pins. This circuit uses a
MOSFET (RFP30N06LE) to gate the solenoid. A 10 KΩ resistor and diode
(1N4001) are included to prevent voltage surges from shorting the Arduino.</p>
<div align="center" class="align-center"><img alt="_images/Solenoid_wiring.svg" src="_images/Solenoid_wiring.svg" /></div>
</div>
<div class="section" id="wiring-the-arduino">
<h2>Wiring the Arduino<a class="headerlink" href="#wiring-the-arduino" title="Permalink to this headline">¶</a></h2>
<p>The following table outlines the wiring of the Arduino for the program
in this repository. This indicates the power / signal lines only. Each
of these connections also needs to be wired to the Arduino ground. As
the Uno only has 3 GND pins you have to make an additional set of
headers to wire into.</p>
<table border="1" class="docutils">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">pin</th>
<th class="head">Physical connection</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>D3</td>
<td>short recording trigger (10ms TTL pulse )</td>
</tr>
<tr class="row-odd"><td>D4</td>
<td>full trial duration signal (bulb style trigger)</td>
</tr>
<tr class="row-even"><td>D5</td>
<td>Connect to Stimulus device, outputs a variable duration pulse</td>
</tr>
<tr class="row-odd"><td>D6</td>
<td>Connect to punishment device, (TTL trigger)</td>
</tr>
<tr class="row-even"><td>D7</td>
<td>output to auditory cue speaker</td>
</tr>
<tr class="row-odd"><td>D10</td>
<td>Connect to water valve gated power supply</td>
</tr>
<tr class="row-even"><td>A0</td>
<td>The Piezo Amplifier is connected to the analog input</td>
</tr>
<tr class="row-odd"><td>5V</td>
<td>Connect to the power input (5V) of the Piezo linear Amplifier</td>
</tr>
</tbody>
</table>
<p>Table: connections</p>
</div>
</div>
</div>
<div class="articleComments">
</div>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="Usage.html" class="btn btn-neutral float-right" title="Usage" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="Installation.html" class="btn btn-neutral" title="Install" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>
<hr/>
<div role="contentinfo">
<p>
© Copyright 2017, Andrew Micallef.
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'0',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt'
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/js/theme.js"></script>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.StickyNav.enable();
});
</script>
</body>
</html>