Wiki source code of 02 - Simple Gait

Last modified by Eric Nantel on 2023/02/20 15:05

Show last authors
1 {{stepNavigation previousStepName="Setup" previousStepURL="https://wiki.lynxmotion.com/info/wiki/lynxmotion/view/ses-v2-legged/ses-v2-mechdog/mechdog-quickstart/mechdog-setup/" nextStepName="Quickstart" nextStepURL="https://wiki.lynxmotion.com/info/wiki/lynxmotion/view/ses-v2-legged/ses-v2-mechdog/mechdog-quickstart/" pageTitle="SES V2 - mechDOG Simple Gait"/}}
2
3
4 (% style="width:710px" %)
5 |(% colspan="2" style="width:350px" %)**1. Install Arduino IDE**
6 |(% style="text-align:center; width:350px" %)[[image:[email protected]||height="150" width="150"]]|(((
7 Use the official tutorial to install Arduino IDE
8
9 * [[Install the Arduino Software (IDE)>>https://www.arduino.cc/en/Guide/Windows||rel="noopener noreferrer" target="_blank"]]
10 )))
11 |(% colspan="2" style="width:350px" %)**2. Install the Lynxmotion Smart Servo Library**
12 |(((
13 {{lightbox image="https://wiki.lynxmotion.com/info/wiki/lynxmotion/download/ses-v2-legged/ses-v2-mechdog/mechdog-quickstart/mechdog-setup/WebHome/SESV2-mechDOG-Setup-Arduino-IDE-Libraries-LSS.PNG"/}}
14 )))|(((
15 Use the official tutorial to install Libraries
16
17 * [[Installing Libraries Tutorial>>https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries||rel="noopener noreferrer" target="_blank"]]
18 * Library Name: Lynxmotion Smart Servo -LSS-
19 )))
20 |(% colspan="2" %)**3. Install the PPM Library (for RC PPM use)**
21 |{{lightbox image="https://wiki.lynxmotion.com/info/wiki/lynxmotion/download/ses-v2-legged/ses-v2-mechdog/mechdog-quickstart/mechdog-setup/WebHome/SESV2-mechDOG-Setup-Arduino-IDE-Libraries-PPM.PNG"/}}|(((
22 Use the official tutorial to install Libraries
23
24 * [[Installing Libraries Tutorial>>https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries||rel="noopener noreferrer" target="_blank"]]
25 * Library Name: PPM
26 )))
27 |(% colspan="2" style="vertical-align:middle" %)**4. Get the mechDOG Simple Gait Sample Code**
28 |(% style="vertical-align:middle" %)[[image:[email protected]]]|(((
29 Download the Example
30
31 * [[mechDOG-RC-PPM on GitHub>>https://github.com/Lynxmotion/mechDOG/releases/download/mechDOG-Simple-Gain-01/mechDOG_RC_PPM.zip]]
32 * Unzip the whole directory to a known location
33
34
35 Ref: [[Lynxmotion mechDOG GitHub Repo>>url:http://github.com/Lynxmotion/mechDOG]]
36 )))
37 |(% colspan="2" style="vertical-align:middle" %)**5. Open the sample code**
38 |(% style="vertical-align:middle" %){{lightbox image="https://wiki.lynxmotion.com/info/wiki/lynxmotion/download/ses-v2-legged/ses-v2-mechdog/mechdog-quickstart/mechdog-setup/WebHome/SESV2-mechDOG-Setup-Arduino-IDE-Open.PNG"/}}|(((
39 In the Arduino IDE open the sample code
40
41 * **mechDOG_RC_PPM.ino**
42 )))
43 |(% colspan="2" style="vertical-align:middle" %)**6. Upload the Code**
44 |(% style="vertical-align:middle" %){{lightbox image="https://wiki.lynxmotion.com/info/wiki/lynxmotion/download/ses-v2-legged/ses-v2-mechdog/mechdog-quickstart/mechdog-setup/WebHome/SESV2-mechDOG-Setup-Arduino-IDE-Code.PNG"/}}|(((
45 Upload the code
46
47 * Select your COM port
48 * Select your Board type
49 * Upload the code
50 )))
51 |(% colspan="2" style="vertical-align:middle" %)**7. RC Controls**
52 |(% style="vertical-align:middle" %){{lightbox image="SESV2-mechDOG-Setup-RC-Control-REV3.png"/}}|(% style="vertical-align:bottom" %)(((
53 Left Switch
54
55 * Down: Sleep
56 * Up: Wake
57
58 Left Joystick:
59
60 * Up: Trot Forward
61 * Down: Trot Backward
62 * Left: Turn Left
63 * Right: Turn Right
64
65 Right Switch (mode)
66
67 * Down: Trot Left / Right
68 * Up: Body Roll / Pitch
69
70 Right Joystick in Body Roll / Pitch Mode
71
72 * Up: Look Up
73 * Down: Look Down
74 * Left: Roll to the Left
75 * Right: Roll to the Right
76
77 Right Joystick in Trot Left / Right Mode
78
79 * Left: Trot to the Left
80 * Right: Trot to the Right
81
82 Right Button
83
84 * Trot in Place
85
86 Potentiometer
87
88 * Left: Faster gait speed
89 * Right: Slower gait speed
90
91
92 )))
93
94 {{stepNavigation previousStepName="Setup" previousStepURL="https://wiki.lynxmotion.com/info/wiki/lynxmotion/view/ses-v2-legged/ses-v2-mechdog/mechdog-quickstart/mechdog-setup/" nextStepName="Quickstart" nextStepURL="https://wiki.lynxmotion.com/info/wiki/lynxmotion/view/ses-v2-legged/ses-v2-mechdog/mechdog-quickstart/" pageTitle="SES V2 - mechDOG Simple Gait"/}}
Copyright RobotShop 2018