Wiki source code of 02 - Simple Gait

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

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