You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<divclass="language-Arduino highlight"><spanclass="filename">POT.ino Arduino Code</span><pre><span></span><code><spanid="__span-0-1"><aid="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><spanclass="c1">// Global Name Space</span>
1129
-
</span><spanid="__span-0-2"><aid="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a><spanclass="kr">int</span><spanclass="w"></span><spanclass="n">potAnalogPin</span><spanclass="w"></span><spanclass="o">=</span><spanclass="w"></span><spanclass="mi">0</span><spanclass="p">;</span><spanclass="w"></span><spanclass="c1">// FSR is connected to analog 0</span>
1129
+
</span><spanid="__span-0-2"><aid="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a><spanclass="kr">int</span><spanclass="w"></span><spanclass="n">potAnalogPin</span><spanclass="w"></span><spanclass="o">=</span><spanclass="w"></span><spanclass="mi">5</span><spanclass="p">;</span><spanclass="w"></span><spanclass="c1">// FSR is connected to analog 0</span>
1130
1130
</span><spanid="__span-0-3"><aid="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a><spanclass="kr">int</span><spanclass="w"></span><spanclass="n">LEDpin</span><spanclass="w"></span><spanclass="o">=</span><spanclass="w"></span><spanclass="mi">11</span><spanclass="p">;</span><spanclass="w"></span><spanclass="c1">// connect Red LED to pin 11 (PWM pin)</span>
1131
1131
</span><spanid="__span-0-4"><aid="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a><spanclass="kr">int</span><spanclass="w"></span><spanclass="n">potReading</span><spanclass="p">;</span><spanclass="w"></span><spanclass="c1">// the analog reading from the FSR resistor divider</span>
<p>Many of the pictures for this Mechanical Component Assembly section were taken during the prototyping phase of the system design and are of a slightly earlier version of the robot chassis. As a result, there may be slight differences with the robot chassis in your kit, but the describes in this documentation are all for the final chassis design.</p>
1243
1243
</div>
1244
+
<divclass="admonition info">
1245
+
<pclass="admonition-title">Info</p>
1246
+
<p>For those of you that are not familliar with breadboard circuits, Sparkfun have in intersting article on <debughl><ahref="https://learn.sparkfun.com/tutorials/how-to-use-a-breadboard/" target="_blank">How to Use a Breadboard</a></debughl>, describing their use and construction.</p>
1247
+
</div>
1244
1248
<h2id="adding-the-mechanical-components-to-the-chassis">Adding the mechanical components to the chassis</h2>
1245
1249
<p>This section will discuss the assembly of the mechanical system, and <ahref="#ElecConn" title="Electronic Component Layout and Connections">a later section</a> will discuss the assembly of the electronic circuitry.</p>
1246
1250
<figure>
@@ -1278,13 +1282,17 @@ <h3 id="attaching-the-fit0450-and-skinny-wheel">Attaching the FIT0450 and Skinny
1278
1282
<p><em><strong>Note:</strong> This video has no commentary</em></p>
1279
1283
<figcaption>Motor and wheel assembly video</figcaption>
1280
1284
</figure>
1285
+
<divclass="admonition note">
1286
+
<pclass="admonition-title">Note: Skinny Wheels May need drilling out</p>
1287
+
<p>The M3 mounting hole on some of the skinny wheels is too small. This will need drilling out to 3mm. Please see one of the lab technical staff in the lab session if this is the case.</p>
1288
+
</div>
1281
1289
<h3id="attaching-the-moulded-plastic-wheels">Attaching the Moulded Plastic wheels</h3>
1282
1290
<divclass="admonition note">
1283
1291
<pclass="admonition-title">Do this Before Attaching The MG996 Servo</p>
1284
1292
<p>These wheels must be attached before the servo, because the servo obscures access to the screw heads for the left wheel.</p>
1285
1293
</div>
1286
1294
<h4id="attaching-the-lefthand-moulded-plastic-wheel">Attaching the Lefthand Moulded Plastic Wheel</h4>
1287
-
<p>The lefthand moulded plastic wheel is the wheel next to the servo, at the front of the robot, and should be attached first. To attach this wheel, you require an <problemhl>M3x20 bolt and an M3 nyloc nut</problemhl>. The moulded plastic wheels are attached to the lugs at the front of the robot chassis.</p>
1295
+
<p>The lefthand moulded plastic wheel is the wheel next to the servo, at the front of the robot, and should be attached first. To attach this wheel, you require an M3x20 bolt and an M3 nyloc nut. The moulded plastic wheels are attached to the lugs at the front of the robot chassis.</p>
1288
1296
<p>The bolt for this wheel <strong>Must</strong> be pushed through from the between the lugs, with the head infront of the rectangular servo hole. This is to ensure that the servo hole is not obsured and an be inserted correctly.</p>
1289
1297
<p><debughl><ahref="#nylocWheel1Vid">Fig 5</a></debughl> shows a short video showing assembly of the lefthand wheel beside the servo. (Note: This video was recorded for a previous version of the chassis using an M4x20 bolt, not the M3x20 that is neccessary for the newer chassises.)</p>
1290
1298
<figure>
@@ -1294,7 +1302,7 @@ <h4 id="attaching-the-lefthand-moulded-plastic-wheel">Attaching the Lefthand Mou
1294
1302
<figcaption>Video showing the attachment of the lefthand moulded plastic wheel beside the servo.</figcaption>
1295
1303
</figure>
1296
1304
<h4id="attaching-the-righthand-moulded-plastic-wheel">Attaching the Righthand Moulded Plastic Wheel</h4>
1297
-
<p>The righthand moulded plastic wheel is the wheel away from the servo, at the front of the robot, and should be inserted second. To attach this wheel, you require an <problemhl>M4x20 bolt and an M4 nyloc nut</problemhl>.The presence of the lefthand wheel makes screwing in the bolt difficult, if inserted from between the lugs - we advise inserting the screw from the outside of the lugs, with the bolt on the inside.</p>
1305
+
<p>The righthand moulded plastic wheel is the wheel away from the servo, at the front of the robot, and should be inserted second. To attach this wheel, you require an M3x20 bolt and an M3 nyloc nut. The presence of the lefthand wheel makes screwing in the bolt difficult, if inserted from between the lugs - we advise inserting the screw from the outside of the lugs, with the bolt on the inside.</p>
1298
1306
<divclass="admonition note">
1299
1307
<pclass="admonition-title">Note on wheel screw tightness</p>
1300
1308
<p>When fastening the screws on the moulded plastic screws, ensure that you have sufficiently tightened the nyloc nut to prevent too much wobble in the wheel, but the wheel is still able to spin freely.</p>
@@ -1317,7 +1325,7 @@ <h3 id="attaching-the-mg996-servo">Attaching the MG996 Servo</h3>
1317
1325
<pclass="admonition-title">Attach the moulded plastic wheels before the MG996 Servo</p>
1318
1326
<p>You must attach both plastic wheels before attaching the MG996 servo, otherwise, the MG996 servo bolts will obscure the placement of the moulded plastic wheel screw.</p>
1319
1327
</div>
1320
-
<p>The MG996 servo is attached to the robot chassis using 4x M3x12 screws, as illustrated in <debughl><ahref="#servoNuts">Fig 8</a></debughl>.</p>
1328
+
<p>The MG996 servo is attached to the robot chassis using 4x M3x12 screws, as illustrated in <debughl><ahref="#servoNuts">Fig 8</a></debughl>. The top screws obscure access to the bottom screws, so it is recomended that you fit the bottom screws before the top screws.</p>
1321
1329
<figure>
1322
1330
<aname="servoNuts"></a>
1323
1331
<aclass="glightbox" href="../Images/Fixing%20screws%20for%20the%20MG996%20Servo.jpg" data-type="image" data-width="auto" data-height="auto" data-desc-position="bottom"><imgalt="Fixing screws for the MG996 Servo" src="../Images/Fixing%20screws%20for%20the%20MG996%20Servo.jpg"></a>
@@ -1403,7 +1411,7 @@ <h3 id="arduino-and-external-power-supplies-lines">Arduino and External Power Su
1403
1411
<li>The +5V supply from the Arduino</li>
1404
1412
<li>The external +5V from the AC-DC Plug-in Power Supply.</li>
1405
1413
</ol>
1406
-
<p><spanstyle="font-weight:bolder;color:red;">UNDER NO CIRCUMSTANCE</span> should the +5V lines of these power supplied be connected together. You must, however, connect all the <abbrtitle="Electrical Ground or 0V">GND</abbr> lines of these power supplies, and other systems, to a common <abbrtitle="Electrical Ground or 0V">GND</abbr> net/node on your robot chassis to ensure that all the working from the same reference voltage.</p>
1414
+
<p><spanstyle="font-weight:bolder;color:red;">UNDER NO CIRCUMSTANCE</span> should the +5V line from the Arduino be connected to the External 5V line. You must, however, connect all the <abbrtitle="Electrical Ground or 0V">GND</abbr> lines of these power supplies, and other systems, to a common <abbrtitle="Electrical Ground or 0V">GND</abbr> net/node on your robot chassis to ensure that all the working from the same reference voltage.</p>
1407
1415
<p>The external +5V should only be connected to the V<sub>m</sub> connection of the motor drive board and the V+ power connections of any servo used on your system. The Arduino +5V should be used for the V<sub>cc</sub> connection of the motor drive board and any other connection requiring +5V, <spanstyle="color:red;">which is not connected to the external +5V</span>.</p>
1408
1416
<divclass="admonition danger">
1409
1417
<pclass="admonition-title">Danger: You can destroy your Laptop motherboard if you get this wrong</p>
@@ -1602,9 +1610,9 @@ <h3 id="circuit-layout-for-the-dc-motor-exercise">Circuit Layout for the DC Moto
1602
1610
<tr><td>AI2</td><td>Channel A Bridge Configuration Input 2</td><td>N/C</td></tr>
1603
1611
<tr><td>AI1</td><td>Channel A Bridge Configuration Input 1</td><td>N/C</td></tr>
0 commit comments