-
Notifications
You must be signed in to change notification settings - Fork 0
/
electronic.html
246 lines (241 loc) · 9.38 KB
/
electronic.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Construct your texture discrimination task setup!</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="./static/Logo/favicon.ico" />
<link rel="icon" type="image/png" href="./static/Logo/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./static/Logo/favicon-16x16.png" sizes="16x16" />
<link href="./static/style.css" rel="stylesheet">
<style>
.nav-list a.navhome, .sub-nav-list a.navhome{
background-color: #f1502f !important;
}
.gallery-thumb img:hover {
border: 4px solid #f1502f;
}
</style>
<style>
.nav-list a.active, .sub-nav-list a.active {
background-color: #cccccc !important;
}
</style>
<style>
.nav-list a:hover:not(.active), .sub-nav-list a:hover:not(.active) {
background-color: #555555 !important;
}
</style>
<style>
.gallery-show img {
border: none;
}
</style>
<style>
.gallery-show img {
background: none;
}
</style>
</head>
<body>
<header class="site-header">
<div class="wrapper header-wrapper" >
<div class=header-text>
<h1 class="site-title">Construct your texture discrimination task setup!</h1>
</div>
</div>
</header>
<div class="page-content">
<div>
<nav class="sidebar">
<a href="#" class="menu-icon">
<svg viewBox="0 0 18 15">
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
</svg>
</a>
<ul class="nav-list">
<li>
<a class="navhome" href="./">
Construct your texture discrimination task setup!
</a>
</li>
<li class="not-active">
<a class="not-active" href="./platform.html">
Construction of the elevated platform
</a>
</li>
<li class="not-active">
<a class="not-active" href="./platform_base.html">
Platform part 1: Base platform
</a>
</li>
<li class="not-active">
<a class="not-active" href="./mouse_tube.html">
Platform part 2: Mouse tube
</a>
</li>
<li class="not-active">
<a class="not-active" href="./head_fixation.html">
Platform part 3: Head fixation
</a>
</li>
<li class="not-active">
<a class="not-active" href="./lick_detection.html">
Platform part 4: Lick detection
</a>
</li>
<li class="not-active">
<a class="not-active" href="./peripherals.html">
Construction of the peripherals
</a>
</li>
<li class="not-active">
<a class="not-active" href="./horizontal_motor.html">
Motor part 1: Horizontal motor
</a>
</li>
<li class="not-active">
<a class="not-active" href="./rotational_motor.html">
Motor part 2: Rotational motor
</a>
</li>
<li class="not-active">
<a class="not-active" href="./setup_electronic.html">
Set up of the electronics
</a>
</li>
<li class="active">
<a class="active" href="./electronic.html">
Electronics part 1: Set up
</a>
</li>
<li class="not-active">
<a class="not-active" href="./script_setup.html">
Electronics part 2: Script initializing
</a>
</li>
<li class="not-active">
<a class="not-active" href="./code_usage.html">
Electronics part 3: Program explanation
</a>
</li>
<li class="not-active">
<a class="not-active" href="./training.html">
Information about training
</a>
</li>
</ul>
</nav>
</div>
<div class="wrapper">
<h1 id="electronics-part-1-set-up">Electronics part 1: Set up</h1>
<p>Wiring:</p>
<ul>
<li>
<p>Bpod flex i/o lick sensor channel 1 and ground via wire to bnc adapter in analog output of amplifier of lick detection,
if pieso lick sensor</p>
</li>
<li>
<p>Motor just connected with arduino shield, motor connection Bnc (needs 4 times bnc to wire)</p>
</li>
</ul>
<p>const int Spinpib = 13; // Define the digital output pin rotating upper motor pin
const int latpib = 11; right left movement
const int dirpib = 8; right left movement</p>
<p>Pin for buzzer:
const int cue1pib = 6; for buzzer</p>
<p>usb mini in computer</p>
<p>This step guides you the connection of the electronic devices.</p>
<div class="pagebom">
<h3 id="part">Parts</h3>
<ul>
<li>2 <a Class="bom" href="electronic/Arduino_Due.html">Arduino Board Due Core</a> </li>
<li>4 <a Class="bom" href="electronic/bnc_wire.html">BNC to wire connector</a> </li>
<li>2 <a Class="bom" href="electronic/bpod.html">Bpod</a> </li>
<li>2 <a Class="bom" href="electronic/bpod_shield.html">Bpod shield</a> </li>
<li>1 <a Class="bom" href="electronic/buzzer.html">buzzer</a> </li>
<li>many <a Class="bom" href="connectors/cable_tie.html">cable ties</a> </li>
<li>Some <a Class="bom" href="electronic/circuit_board.html">circuit board</a> </li>
<li>3 <a Class="bom" href="electronic/ethernet.html">ethernet cable</a> </li>
<li>Some <a Class="bom" href="electronic/jumper_wires.html">jumper wires</a> </li>
<li>2 <a Class="bom" href="electronic/pib.html">port interface board</a> </li>
<li>2 <a Class="bom" href="electronic/pv.html">solenoid pinch valve</a> </li>
<li>1 <a Class="bom" href="electronic/pv_tube.html">tube</a> </li>
</ul>
</div>
<h2 class="page-step" id="connect-electronic-components">Step 1: Connect electronic components</h2>
<p>The <a href="electronic/bpod.html">Bpod</a> is the central component where everything is connected to.</p>
<h3 id="arduino">Arduino</h3>
<ul>
<li>
<p>Attach the <a href="electronic/bpod_shield.html">Bpod shield</a> to the <a href="electronic/Arduino_Due.html">Arduino Board Due Core</a>. There is only one possibility to combine them based on the labeling of pins.</p>
</li>
<li>
<p>Connect the <a href="electronic/bpod_shield.html" title="">Bpod shield</a> via an <a href="electronic/ethernet.html">ethernet cable</a> to the <a href="electronic/bpod.html" title="">Bpod</a>.</p>
</li>
</ul>
<h3 id="solenoid-pinch-valve">Solenoid pinch valve</h3>
<ul>
<li>
<p>Attach the two wires of the <a href="electronic/pv.html">solenoid pinch valve</a> to the valve connections of the <a href="electronic/pib.html">port interface board</a>. </p>
</li>
<li>
<p>Connect the <a href="electronic/pib.html" title="">port interface board</a> via an <a href="electronic/ethernet.html">ethernet cable</a> to the <a href="electronic/bpod.html" title="">Bpod</a>.</p>
</li>
</ul>
<h3 id="motor-to-arduino">Motor to Arduino</h3>
<ul>
<li>
<p>The power supply of the motor needs to be in a plug socket.</p>
</li>
<li>
<p>The four other cables of the motor need to go via a <a href="electronic/bnc_wire.html">BNC to wire connector</a> in the <a href="electronic/bpod_shield.html" title="">Bpod shield</a>.</p>
</li>
</ul>
<h4 id="how-to-connect">How to connect</h4>
<p>One wire of each <a href="electronic/bnc_wire.html" title="">BNC to wire connector</a> needs to go to a grounding. Use a <a href="electronic/circuit_board.html">circuit board</a> and <a href="electronic/jumper_wires.html">jumper wires</a> as the Arduino has not enough groundings.</p>
<ul>
<li>The spin connection needs to go in pin 13</li>
<li>The lateral connection needs to go in pin 11</li>
<li>The direction connection needs to go in pin 8</li>
<li>The go connection needs to go in pin 4</li>
</ul>
<div class="caution-block">
<p><strong>Caution</strong> </p>
<p>Adjust connection names</p>
</div>
<h3 id="buzzer">Buzzer</h3>
<p>The <a href="electronic/buzzer.html">buzzer</a> needs to go to the ground and into pin 6.</p>
<div class="caution-block">
<p><strong>Caution</strong> </p>
<p>Which buzzer</p>
</div>
<h2 id="_1"></h2>
<p><img alt="" src="images/ardu_shield.png" title="" /></p>
<p><a href="electronic/bpod.html">bpod</a></p>
<p><a href="electronic/ethernet.html">ethernet cable</a></p>
<p><a href="electronic/pib.html">port interface board</a></p>
<p><a href="electronic/bpod_shield.html">bpod shield</a></p>
<p><a href="electronic/pv.html">solenoid pinch valve</a></p>
<p><a href="electronic/pv_tube.html">tube</a></p>
<p><a href="electronic/circuit_board.html">circuit board</a>. </p>
<p><a href="electronic/jumper_wires.html">jumper wires</a></p>
<p><a href="connectors/cable_tie.html">cable ties</a> </p>
<p><a href="electronic/Arduino_Due.html">Arduino Board Due Core</a></p>
<h4 id="wiring-configuration">Wiring configuration</h4>
<hr />
<p><a href="setup_electronic.html">Previous page</a> | <a href="script_setup.html">Next page</a></p>
</div>
</div>
<footer class="site-footer">
<div class="wrapper">
<a target="_blank" rel="noopener noreferrer" href="https://gitbuilding.io">
<img class="icon" src="./static/Logo/GitBuilding500x.png" alt="GitBuilding logo">
<span class="info">Documentation powered by GitBuilding</span>
</a>
</div>
</footer></body>
</html>