Wiki source code of Microcontroller

Last modified by Eric Nantel on 2022/04/29 09:11

Show last authors
1 {{stepNavigation pageTitle="A4WD3 Wheeled - Microcontroller" previousStepName="Setup" previousStepURL="https://wiki.lynxmotion.com/info/wiki/lynxmotion/view/rover-kits/a4wd3-wheeled/a4wd3-wheeled-quickstart/a4wd3-wheeled-setup/" nextStepName="Return" nextStepURL="https://wiki.lynxmotion.com/info/wiki/lynxmotion/view/rover-kits/a4wd3-wheeled/a4wd3-wheeled-quickstart/"/}}
2
3 {{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.
4
5 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."/}}
6
7 (% style="width:710px" %)
8 |(% colspan="3" %)The following steps are described for the Lynxmotion BotBoarduino microcontroller and Dimension Engineering Sabertooth 2x12A DC motor controller. Note that the DIP switch setup for other Sabertooth motor controllers may not be the same. Should you have selected a different microcontroller, FPGA or single board computer, or a different motor controller, it is your responsibility to read the user guide and understand the electronic setup, connections and power requirements.
9 |(% colspan="3" %)**1. Set the Sabertooth DIP Switches**
10 |(% style="text-align:center; width:250px" %)Sabertooth 2 x 12A Standard|(% style="width:35px" %) |(% style="text-align:center" %)**Typical Setup**
11 |(% colspan="1" rowspan="6" style="text-align:center; vertical-align:middle" %)[[image:[email protected]]]|(% style="text-align:center; vertical-align:middle" %)1|(% style="text-align:left; vertical-align:middle" %)OFF (Enable RC Mode)
12 |(% style="text-align:center; vertical-align:middle" %)2|(% style="text-align:left; vertical-align:middle" %)ON (Enable RC Mode)
13 |(% style="text-align:center; vertical-align:middle" %)3|(% style="text-align:left; vertical-align:middle" %)OFF (Lithium Battery Mode)
14 |(% style="text-align:center; vertical-align:middle" %)4|(% style="text-align:left; vertical-align:middle" %)ON (Enable Mixing Mode)
15 |(% style="text-align:center; vertical-align:middle" %)5|(% style="text-align:left; vertical-align:middle" %)ON (Disable Exponential)
16 |(% style="text-align:center; vertical-align:middle" %)6|(% style="text-align:left; vertical-align:middle" %)OFF (Disable Timeout)
17 |(% colspan="3" rowspan="1" style="vertical-align:middle" %)(((
18 More Info:
19
20 * [[Sabertooth 2x12 - Dip Switch Wizard>>https://www.dimensionengineering.com/datasheets/SabertoothDIPWizard/start.htm]]
21 * [[Sabertooth 2x12 - User Guide>>https://www.dimensionengineering.com/datasheets/Sabertooth2x12.pdf]]
22 )))
23 |(% colspan="3" %)**2. Connect the Sabertooth to your Microcontroller**
24 |(% colspan="1" rowspan="6" style="text-align:center; vertical-align:middle" %){{lightbox image="https://wiki.lynxmotion.com/info/wiki/lynxmotion/download/rover-kits/WebHome/BBU-01-Sabertooth-Wiring-2.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
25 |(% style="text-align:center; vertical-align:middle" %)[[image:[email protected]||alt="SQUARE-Blue.png"]]|(% style="text-align:left; vertical-align:middle" %)Ground or 0V
26 |(% 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
27 |(% 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
28 |(% 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
29 |(% 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
30 |(% colspan="3" rowspan="1" style="text-align:left; vertical-align:middle" %)More Info: [[BotBoarduino User Manual>>http://www.lynxmotion.com/images/html/build185.htm]]
31 |(% colspan="3" style="text-align:left; vertical-align:middle" %)**3. Lift the rover on something to avoid the wheels / tracks to touch the ground. Connecting the batterie will likely have it spin.**
32 |(% colspan="3" style="text-align:left; vertical-align:middle" %)**4. Connect the main battery (required to power the BotBoarduino)**
33 |(% colspan="3" %)(((
34 **5. Upload your code**
35
36 * [[Lynxmotion GitHub - Arduino A4WD3 Examples>>https://github.com/Lynxmotion/Rovers/tree/master/A4WD3]]
37 )))
38 |(% colspan="3" %)(((
39 **5.1 Regarding the BotBoarduino**
40
41 * Please read through the BotBoarduino user guide [[HERE>>url:http://www.lynxmotion.com/images/html/build185.htm]].
42 * If you are new to Arduino, please visit their guides [[HERE>>url:http://www.arduino.cc/en/Guide ]].
43 * You are free to create your own code, or try an example
44 )))
45
46 {{stepNavigation pageTitle="A4WD3 Wheeled - Microcontroller" previousStepName="Setup" previousStepURL="https://wiki.lynxmotion.com/info/wiki/lynxmotion/view/rover-kits/a4wd3-wheeled/a4wd3-wheeled-quickstart/a4wd3-wheeled-setup/" nextStepName="Return" nextStepURL="https://wiki.lynxmotion.com/info/wiki/lynxmotion/view/rover-kits/a4wd3-wheeled/a4wd3-wheeled-quickstart/"/}}
Copyright RobotShop 2018