Wiki source code of 06 - Setup

Version 21.1 by Eric Nantel on 2022/04/06 14:18

Hide last authors
Eric Nantel 9.1 1 {{stepNavigation nextStepName="Return" previousStepURL="https://wiki.lynxmotion.com/info/wiki/lynxmotion/view/rover-kits/a4wd3-tracked/a4wd3-tracked-quickstart/a4wd3-tracked-tracks/" nextStepURL="https://wiki.lynxmotion.com/info/wiki/lynxmotion/view/rover-kits/a4wd3-tracked/a4wd3-tracked-quickstart/" pageTitle="A4WD3 Tracked - Setup"/}}
Eric Nantel 1.1 2
Eric Nantel 21.1 3
Eric Nantel 12.1 4 {{warningBox warningText="CAUTION: Before powering the motors, ensure they rotate in the same direction on each side. If the wiring between the motors and the Sabertooth was done correctly, the motors on each side of the robot should rotate in the same direction.
Eric Nantel 11.1 5
Eric Nantel 12.1 6 If the front and rear motors rotate in opposite directions however, the track which connects them will cause them to stall and burn very quickly! If you are at all uncertain, it is safest to remove the sprockets and test the motors. If they rotate in opposite directions, the wiring to the Sabertooth needs to be corrected."/}}
Eric Nantel 9.1 7
Eric Nantel 1.1 8 {{warningBox warningText="Radio Control (RC) Mode"/}}
9
10 (% style="width:710px" %)
Eric Nantel 11.1 11 |(% colspan="4" %)The following steps are described for the Dimension Engineering Sabertooth 2x12A DC motor controller. Note that the DIP switch setup for other Sabertooth motor controllers may not be the same and as such it is your responsibility to read the user guide and understand the electronic setup, connections and power requirements for the electronics you purchased.
Coleman Benson 7.1 12 |(% colspan="4" %)**1. Set the Sabertooth DIP Switches**
Coleman Benson 5.1 13 |(% style="width:35px" %) |(% style="text-align:center; width:350px" %)Sabertooth 2 x 12A Standard|(% style="width:35px" %) |**Typical Setup**
Eric Nantel 3.1 14 | |(% colspan="1" rowspan="6" style="text-align:center; vertical-align:middle" %)[[image:rover-kits.a4wd3-wheeled.a4wd3-wheeled-quickstart.a4wd3-wheeled-setup.WebHome@Sabertooth-2x12-Switches.png||alt="dip-switch-example.jpg"]]|(% style="text-align:center; vertical-align:middle" %)1|(% style="text-align:left; vertical-align:middle" %)OFF (Enable RC Mode)
Eric Nantel 1.1 15 | |(% style="text-align:center; vertical-align:middle" %)2|(% style="text-align:left; vertical-align:middle" %)ON (Enable RC Mode)
16 | |(% style="text-align:center; vertical-align:middle" %)3|(% style="text-align:left; vertical-align:middle" %)OFF (Lithium Battery Mode)
17 | |(% style="text-align:center; vertical-align:middle" %)4|(% style="text-align:left; vertical-align:middle" %)ON (Enable Mixing Mode)
18 | |(% style="text-align:center; vertical-align:middle" %)5|(% style="text-align:left; vertical-align:middle" %)ON (Disable Exponential)
19 | |(% style="text-align:center; vertical-align:middle" %)6|(% style="text-align:left; vertical-align:middle" %)OFF (Disable Timeout)
Coleman Benson 7.1 20 | |(% colspan="3" rowspan="1" %)More Info: [[Sabertooth 2x12 - Dip Switch Wizard>>https://www.dimensionengineering.com/datasheets/SabertoothDIPWizard/start.htm]]
21 | |(% colspan="3" rowspan="1" %)More Info: [[Sabertooth 2x12 - User Guide>>https://www.dimensionengineering.com/datasheets/Sabertooth2x12.pdf]]
Eric Nantel 13.1 22 |(% colspan="4" %)**2. Connect the main battery and add the hatch**
23 |(% colspan="4" %)**3. Calibration**
Eric Nantel 21.1 24 | |(% colspan="2" %)the throttle stick may need to be zeroed, or the mixing modified so the rover moves in a straight line rather than a gentle arc. To understand the changes needed and how to proceed, please refer to the user manual of your remote control.|(((
Eric Nantel 19.1 25 (% style="text-align:center" %)
Eric Nantel 21.1 26 [[image:A4WD3-Setup-RC-Control.png]]
Eric Nantel 13.1 27 )))
Eric Nantel 1.1 28
29 {{warningBox warningText="Microcontroller / Autonomuous"/}}
30
31 (% style="width:710px" %)
Coleman Benson 7.1 32 |(% colspan="4" %)**1. Set the Sabertooth DIP Switches**
Coleman Benson 5.1 33 |(% style="width:35px" %) |(% style="text-align:center; width:350px" %)Sabertooth 2 x 12A Standard|(% style="width:35px" %) |(% style="text-align:center" %)**Typical Setup**
Eric Nantel 4.1 34 | |(% colspan="1" rowspan="6" style="text-align:center; vertical-align:middle" %)[[image:rover-kits.a4wd3-wheeled.a4wd3-wheeled-quickstart.a4wd3-wheeled-setup.WebHome@Sabertooth-2x12-Switches.png||alt="dip-switch-example.jpg"]]|(% style="text-align:center; vertical-align:middle" %)1|(% style="text-align:left; vertical-align:middle" %)OFF (Enable RC Mode)
Eric Nantel 1.1 35 | |(% style="text-align:center; vertical-align:middle" %)2|(% style="text-align:left; vertical-align:middle" %)ON (Enable RC Mode)
36 | |(% style="text-align:center; vertical-align:middle" %)3|(% style="text-align:left; vertical-align:middle" %)OFF (Lithium Battery Mode)
37 | |(% style="text-align:center; vertical-align:middle" %)4|(% style="text-align:left; vertical-align:middle" %)ON (Enable Mixing Mode)
38 | |(% style="text-align:center; vertical-align:middle" %)5|(% style="text-align:left; vertical-align:middle" %)ON (Disable Exponential)
39 | |(% style="text-align:center; vertical-align:middle" %)6|(% style="text-align:left; vertical-align:middle" %)OFF (Disable Timeout)
Coleman Benson 5.1 40 | |(% colspan="3" rowspan="1" style="vertical-align:middle" %)More Info: [[Sabertooth 2x12 - Dip Switch Wizard>>https://www.dimensionengineering.com/datasheets/SabertoothDIPWizard/start.htm]]
41 | |(% colspan="3" rowspan="1" style="vertical-align:middle" %)More Info: [[Sabertooth 2x12 - User Guide>>https://www.dimensionengineering.com/datasheets/Sabertooth2x12.pdf]]
Eric Nantel 1.1 42 |(% colspan="4" %)**2. Connect the Sabertooth to your Microcontroller**
Eric Nantel 9.1 43 | |(% colspan="1" rowspan="9" style="text-align:center; vertical-align:middle" %){{lightbox image="https://wiki.lynxmotion.com/info/wiki/lynxmotion/download/rover-kits/a4wd3-wheeled/a4wd3-wheeled-quickstart/a4wd3-wheeled-setup/WebHome/BBU-01-to-Sabertooth.png"/}}|(% style="text-align:center; vertical-align:middle" %)[[image:[email protected]||alt="SQUARE-Blue.png" height="18" width="18"]]|(% style="text-align:left; vertical-align:middle" %)__Jumper on "VS"__ to use the Sabertooth as the power source for the BotBoarduino
Eric Nantel 1.1 44 | |(% style="text-align:center; vertical-align:middle" %)[[image:[email protected]||alt="SQUARE-Blue.png"]]|(% style="text-align:left; vertical-align:middle" %)__No Jumper__ to isolate the middle row and avoid conflicts
45 | |(% style="text-align:center; vertical-align:middle" %)[[image:[email protected]||alt="SQUARE-Blue.png"]]|(% style="text-align:left; vertical-align:middle" %)Ground or 0V
46 | |(% style="text-align:center; vertical-align:middle" %)[[image:[email protected]||alt="SQUARE-Blue.png"]]|(% style="text-align:left; vertical-align:middle" %)To "S1" on Sabertooth #1
47 | |(% style="text-align:center; vertical-align:middle" %)[[image:[email protected]||alt="SQUARE-Blue.png"]]|(% style="text-align:left; vertical-align:middle" %)To "S2" on Sabertooth #1
48 | |(% style="text-align:center; vertical-align:middle" %)[[image:[email protected]||alt="SQUARE-Blue.png"]]|(% style="text-align:left; vertical-align:middle" %)To "S1" on Sabertooth #2 (if equipped)
49 | |(% style="text-align:center; vertical-align:middle" %)[[image:[email protected]]]|(% style="text-align:left; vertical-align:middle" %)To "S2" on Sabertooth #2 (if equipped)
50 | |(% style="text-align:center; vertical-align:middle" %)[[image:[email protected]||alt="SQUARE-Blue.png"]]|(% style="text-align:left; vertical-align:middle" %)__Jumper on "Ext"__ to power the BotBoarduino from the Sabertooth 5V regulator
51 | |(% style="text-align:center; vertical-align:middle" %)[[image:[email protected]||alt="SQUARE-Blue.png"]]|(% style="text-align:left; vertical-align:middle" %)__Jumper on "VL = VS"__ to link the two together
Coleman Benson 6.1 52 | |(% colspan="1" style="text-align:left; vertical-align:middle" %)More Info: [[BotBoarduino User Manual>>http://www.lynxmotion.com/images/html/build185.htm]]|(% style="text-align:center; vertical-align:middle" %) |(% style="text-align:left; vertical-align:middle" %)
Coleman Benson 5.1 53 |(% colspan="4" %)**3. Upload your code**
54 | |(% colspan="3" rowspan="1" style="vertical-align:middle" %)Sample Code: [[Lynxmotion GitHub - Arduino A4WD3 Examples>>https://github.com/Lynxmotion/Rovers/tree/master/A4WD3]]
Eric Nantel 1.1 55 |(% colspan="4" %)**4. Connect the battery**
56 |(% colspan="4" %)**5. Enjoy**
57
Eric Nantel 9.1 58 {{stepNavigation nextStepName="Return" previousStepURL="https://wiki.lynxmotion.com/info/wiki/lynxmotion/view/rover-kits/a4wd3-tracked/a4wd3-tracked-quickstart/a4wd3-tracked-tracks/" nextStepURL="https://wiki.lynxmotion.com/info/wiki/lynxmotion/view/rover-kits/a4wd3-tracked/a4wd3-tracked-quickstart/" pageTitle="A4WD3 Tracked - Setup"/}}
Copyright RobotShop 2018