Wiki source code of 02 - Simple Gait
Last modified by Eric Nantel on 2024/07/03 09:38
Hide last authors
![]() |
13.1 | 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"/}} |
![]() |
6.1 | 2 | |
![]() |
12.1 | 3 | |
![]() |
9.1 | 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 | ||
![]() |
7.1 | 8 | |
![]() |
9.1 | 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.1 | 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"/}} |
![]() |
9.1 | 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)** | ||
![]() |
13.1 | 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"/}}|((( |
![]() |
9.1 | 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 | ))) | ||
![]() |
11.1 | 27 | |(% colspan="2" style="vertical-align:middle" %)**4. Get the mechDOG Simple Gait Sample Code** |
![]() |
10.1 | 28 | |(% style="vertical-align:middle" %)[[image:[email protected]]]|((( |
29 | Download the Example | ||
![]() |
6.1 | 30 | |
![]() |
11.1 | 31 | * [[mechDOG-RC-PPM on GitHub>>https://github.com/Lynxmotion/mechDOG/releases/download/mechDOG-Simple-Gain-01/mechDOG_RC_PPM.zip]] |
![]() |
6.1 | 32 | * Unzip the whole directory to a known location |
![]() |
12.1 | 33 | |
34 | |||
35 | Ref: [[Lynxmotion mechDOG GitHub Repo>>url:http://github.com/Lynxmotion/mechDOG]] | ||
![]() |
6.1 | 36 | ))) |
37 | |(% colspan="2" style="vertical-align:middle" %)**5. Open the sample code** | ||
![]() |
13.1 | 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"/}}|((( |
![]() |
10.1 | 39 | In the Arduino IDE open the sample code |
![]() |
6.1 | 40 | |
![]() |
11.1 | 41 | * **mechDOG_RC_PPM.ino** |
![]() |
6.1 | 42 | ))) |
![]() |
10.1 | 43 | |(% colspan="2" style="vertical-align:middle" %)**6. Upload the Code** |
![]() |
13.1 | 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"/}}|((( |
![]() |
6.1 | 45 | Upload the code |
46 | |||
47 | * Select your COM port | ||
48 | * Select your Board type | ||
49 | * Upload the code | ||
50 | ))) | ||
![]() |
10.1 | 51 | |(% colspan="2" style="vertical-align:middle" %)**7. RC Controls** |
![]() |
11.1 | 52 | |(% style="vertical-align:middle" %){{lightbox image="SESV2-mechDOG-Setup-RC-Control-REV3.png"/}}|(% style="vertical-align:bottom" %)((( |
![]() |
6.1 | 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 | ))) | ||
![]() |
10.1 | 93 | |
![]() |
13.1 | 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"/}} |