-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript_setup.html
More file actions
177 lines (172 loc) · 6.21 KB
/
Copy pathscript_setup.html
File metadata and controls
177 lines (172 loc) · 6.21 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
<!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="not-active">
<a class="not-active" href="./electronic.html">
Electronics part 1: Set up
</a>
</li>
<li class="active">
<a class="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-2-script-initializing">Electronics part 2: Script initializing</h1>
<p>Within this section you're going to upload the scripts to the <a href="electronic/Arduino_Uno.html" title="">Arduino Uno</a> and BPod.</p>
<h2 id="source-of-the-code">Source of the code</h2>
<p>https://github.com/open-make/code-texture-discrimination</p>
<h2 class="page-step" id="matlab-code">Step 1: Matlab code</h2>
<ol>
<li>Install Matlab from the official website (https://www.mathworks.com/products/matlab.html)</li>
<li>Download the "Texture_dis" folder from the Github repository</li>
<li>Move the "Texture_dis" folder in the "bpod local/ protocol" folder of your Matlab installation</li>
</ol>
<h2 class="page-step" id="setup-of-the-arduino-uno">Step 2: Setup of the Arduino Uno</h2>
<ol>
<li>Install the Arduino IDE from the official Arduino website (https://www.arduino.cc/en/software).</li>
<li>Download the "texturedis" folder from the Github repository</li>
<li>Open "texturedis.ino" with the Arduino IDE</li>
<li>Connect the Arduino: Connect your Arduino board to your computer by using a USB cable.</li>
<li>Select the Arduino board and port: In the Arduino IDE, go to "Tools" > "Board" and select the appropriate Arduino board (e.g., "Arduino Uno"). Then, go to "Tools" > "Port" and select the port corresponding to your connected Arduino board.</li>
<li>Compile, check for errors and upload the code to your Arduino board.</li>
</ol>
<h2 id="saving-of-the-output">Saving of the output</h2>
<p>While running the program in Matlab it saves </p>
<p>Return in program</p>
<div class="info-block">
<p><strong>questions</strong> </p>
<p>arduino needs to be connected?</p>
</div>
<hr />
<p><a href="electronic.html">Previous page</a> | <a href="code_usage.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>