Wiki source code of LSS FlowArm

Version 136.1 by RB1 on 2020/01/03 10:30

Show last authors
1 {{lightbox image="LSS-FlowArm.png" width="400"/}}
2
3 [[[[image:[email protected]]]>>https://www.robotshop.com/en/lss-flowarm-app-download.html||target="_blank"]]
4
5 **Page Contents**
6
7 {{toc/}}
8
9 = Description =
10
11 The LSS FlowArm application is intended to allow easy control of the standard Lynxmotion Servo Erector Set (S.E.S.) v2 articulated robotic arm. The graphical interface shows multiple views of the arm which can be controlled via drag and drop, as well as by manually inputting coordinates. The full-featured built-in sequencer allows you create sequences which have the arm move automatically from one position ("frame") to the next. Make use of the "teach mode" to position the arm where you want and record frames which can be modified and played back. Associating each pattern with input keys means you can easily play back and test multiple sequences.
12
13 FlowBotics Studio was used to create this app and includes hundreds of built-in components that allow you to interface your PC to many standard computer peripherals and robotics components, and you can quickly design new components for new hardware. Easily create new projects with custom GUI screens, knobs, buttons, switches, etc. that will run live from within FlowBotics Studio without needing to wait for compilation, or export as stand-alone executable files. FlowBotics Studio includes a powerful graphics engine that allows you to make custom graphical objects by using standard bitmaps or by drawing your own shapes on the screen. Using this system, you can build entirely custom interfaces like this one for your projects and integrate photographs, drawings, and graphs.
14
15 = Features =
16
17 * Graphical interface for the Lynxmotion SES V2 articulated robot arm
18 * Full featured sequencer allows recording and playback of many sequences via keyboard input
19 * Teach mode allows the user to move the arm and have the virtual arm follow
20 * Position the arm using rectangular or cylindrical coordinates, virtual joysticks or mouse drag
21 * Application can be modified via FlowBotics Studio
22 * Optional data log shows what commands are sent and received and can be saved as a .csv file.
23 * LSS FlowArm is intended only for Windows operating systems 7 or higher.
24
25 = Initial Setup =
26
27 In order to understand the features, functionality and nuances of the Lynxmotion smart servos, it is suggested to read through the [[doc:lynxmotion-smart-servo.WebHome]] section of the wiki.
28
29 Before assembling the arm, each of the IDs assigned to the servos must correspond with what is needed in the software.
30
31 {{lightbox image="https://www.robotshop.com/info/wiki/lynxmotion/download/servo-erector-set-robots-kits/ses-v2-robots/ses-v2-arms/lss-articulated-arm/lss-articulated-arm-servo-setup/WebHome/SESV2-LSS-ARTICULATED-ARM-IDS.PNG" width="350"/}}
32
33 To do so, the [[LSS Configuration Software>>doc:lynxmotion-smart-servo.lss-configuration-software.WebHome]] is used. Follow the procedure outlined here: [[doc:lynxmotion-smart-servo.lss-configuration-software.lss-config-configure-ids.WebHome]]
34
35 * Servo ID is correctly assigned to each servo and there are no duplicate IDs
36 * Servos have been assembled in correct orientation (as per assembly manual)
37 * Servo offsets have been updated if necessary (see procedure below).
38
39 == Connecting via USB ==
40
41 The simplest way to connect is directly using the [[LSS-Adapter>>doc:servo-erector-set-system.ses-electronics.ses-modules.lss-adapter-board.WebHome]] (or any RS232 to USB interface). Here are the steps you need to follow in order to set this up. Follow the steps below:
42
43 1. Connect the USB cable to the LSS Adapter board on your robot
44 1. Plug the USB connector into the PC
45 1. Connect your LSS to the LSS-Adapter with the Lynxmotion cable
46 1. Connect the power to the LSS Adapter via the yellow XT60 plug
47 1. Power on the robot (On/Off switch)
48 1. Start the LSS FlowArm software
49 1. Select the appropriate COM port from the drop-down list & the baudrate (115200)
50 1. The software sends a query to servo ID1 and once a reply is received, it determines connection has been established.
51
52 == Connecting via Bluetooth ==
53
54 If you have purchased a Bluetooth module which is in XBee format, ensure to have the right baudrate on your bluetooth adapter, the default is 115 200 for the LSS.
55
56 = Interface =
57
58 Following are informations regarding the user interface of LSS FlowArm.
59
60 == Header ==
61
62 [[image:lss-flowarm-header.png||alt="lss-flowarm-header"]]
63
64 === Emergency stop ===
65
66 At any given time you can click this button to stop the arm. This will send a "LIMP" command directly to all servos.
67
68 === Store offsets (calibration) ===
69
70 The "STORE OFFSETS" button configures all of the servo offsets (this makes use of the CO command as part of the [[LSS Communication Protocol>>doc:lynxmotion-smart-servo.lss-communication-protocol.WebHome]]). Before pressing the button, orient the arm as shown below (with the gripper closed), and only then click the STORE OFFSETS button. This setup only need to be done once when first setting up the arm.
71
72 * Base servo aligned with the x axis
73 * Shoulder to elbow along z axis (straight up)
74 * Elbow to wrist along R axis (horizontal at 90 degrees to shoulder to elbow)
75 * Wrist servo along R axis (parallel to elbow to wrist)
76 * Gripper servo closed
77
78 (% style="width:700px" %)
79 |(% style="text-align:center; vertical-align:middle" %)[[image:lss-flowarm-offset-left.png||alt="lss-flowarm-left.png" height="300" width="300"]]|(% style="text-align:center; vertical-align:middle" %)[[image:lss-flowarm-offset-top.png||alt="lss-flowarm-top.png" height="300" width="300"]]
80
81 === Limp ===
82
83 Causes all servos to slowly go LIMP (i.e. lose torque), gradually loosing torque until hitting the ground. It's important to note that the software will not constantly query all servos for their position, and as such the virtual arm on screen will not update frequently if at all. If you want the virtual arm on screen to update as you move the real arm, use TEACH mode described below.
84
85 === Halt & hold ===
86
87 Causes all servos to immediately stop their motion and hold their position.
88
89 === Teach ===
90
91 Teach mode allows a user to physically move the arm and have the virtual arm on screen follow. This is used primarily to manually add frames to sequences, determine the optimal closed position for the gripper etc. In order to ensure the arm does not collapse, pressing the TEACH button will start a 5 second countdown during which the arm will slowly lose torque (angular force) until all servos are limp. When in teach mode, an orange outline appears over all on-screen fields which would cause a conflict and therefore cannot be used.
92
93 CAREFUL: Do not move the servos or the arm too quickly. We suggest holding the gripper servo to move the arm, or temporarily removing the arm's aesthetic shell.
94
95 Once the arm is limp, it can be moved physically, and the application will regularly send position query commands to all of the servos and update the virtual arm on screen to match the servo's responses. Use the sequencer to record each position (frame) while in teach mode. For more information on the sequencer, refer to the sequencer section below.
96
97 === Grid / units ===
98
99 Grid spacing can be toggled between Metric or Imperial. Options include 2cm, 3cm, 5cm and 1in, 2in and 3in.
100
101 === Baud ===
102
103 The default (and suggested) baud rate is 115200, which is the baud rate at which the servos are shipped. Should a user have changed the baud rate on the servos, it can be selected using the drop down. Note that the baud rate must be configured to the same value for all servos in order to work.
104
105 === COM ===
106
107 When the software is opened, a scan of all of your computer's COM ports is done automatically and a list of all available COM ports will be found in the drop down menu, along with OFF (stop searching for a COM port), and AUTO (the application tries to automatically find the correct COM port by sending a query command at the corresponding BAUD rate). Select which of your computer's COM ports is connected to the [[LSS Adapter>>doc:servo-erector-set-system.ses-electronics.ses-modules.lss-adapter-board.WebHome]] (which is provided with the standard SES v2 articulated robot arm). If you have a list of available COM ports and are unsure which is associated with the LSS Adapter, go to Device Manager in Windows, and view the list of USB devices connected. The LSS Adapter uses an FTDI USB to serial chip. Alternatively, simply unplug the USB from the arm and see which of the COM ports disappears from the list.
108
109 * If the red and green lights next to the field are flashing, the correct COM port has not yet been found, and the user may need to manually select the correct COM port.
110 * If the red light is solid, then no correct COM port has been located.
111 * If the green light is solid, the a COM port has been located.
112
113 === Window size ===
114
115 [[image:lss-flowarm-size.jpg]]
116
117 A the top right of the window, there are three dark rectangles allowing you to change the application's window size.
118
119 == Simulator ==
120
121 (% class="wikigeneratedid" id="HArmConfiguration" %)
122 The arm shown on screen is based on the assembly guide. The aesthetics of the arms will be changing for the next release version of the LSS Flowarm software.
123
124 === Side view ===
125
126 The left view is a representation of the arm, where the orange circles represent the location of each axis of rotation. You can move the arm in this view by clicking on and dragging anywhere in that side view screen.
127
128 [[image:lss-flowarm-left.png||width="300"]]
129
130 === Top view ===
131
132 The top view shows the arm top down. You can move the arm within this view by clicking on and dragging the dot right next to the gripper.
133
134 [[image:lss-flowarm-top.png||width="300"]]
135
136 == Shortcuts ==
137
138 **Base**: If you hold the SHIFT key while dragging with the mouse you can control base rotation.
139
140 **Wrist Tilt**: You can tilt the hand by right-clicking and fragging the mouse up and down.
141
142 **Gripper:** By holding the CTRL key whilst right-clicking and dragging you can open and close the gripper
143
144 Just above the sequencer, you can find the following:
145
146 [[image:lss-flowarm-keyboard-liveupdate.jpg]]
147
148 **Keyboard: **When active (orange), the keyboard keys W/A/S/D and four arrows can fine tune the position of the arm. Note however that LSS FlowArm will respond to any of these keys being pressed even in another window, and for this reason, it is turned off by default.
149
150 **Live Update: **When activate (orange), dragging the virtual arm on screen will send updated positions to the arm with a small time delay in between. With this option off, dragging the arm on screen will not cause any motion until the mouse is released.
151
152 == Left Menu ==
153
154 === Gripper ===
155
156 Assuming the gripper has been properly calibrated, The number below represents the opening at the tip. Fully closed should correspond to 0 degrees. We added a feature where the servo stop when it feel a current raising, this allows the user to ask for a full close and have a good grip on the item picked.
157
158 [[image:lss-flowarm-gripper-view.png||alt="lss-flowarm-gripper-view.jpg"]]
159
160 === Wrist ===
161
162 The wrist angle can be locked or unlocked. The field allows for user input (click the numbers) or fine adjustments using the arrows.
163
164 [[image:lss-flowarm-wrist-view.png||alt="lss-flowarm-wrist-view.jpg"]]
165
166 === End effector position ===
167
168 The position of the end effector can be controlled either by manually entering the information for R (radius), or the Cartesian x, y, z coordinates, or using the arrows.
169
170 When in keyboard mode, there is an overlay indicating which keys do what motion.
171
172 [[image:lss-flowarm-positioning.png||alt="lss-flowarm-positioning.jpg"]]
173
174 == Data Log ==
175
176 The optional Data log (normally hidden) can be toggled on or off and allows the user to see all commands being sent to and received from the smart servos. The data can be saved to a file in a Comma Separated Values (.csv) format.
177
178 [[image:lss-flowarm-data-log.png||alt="lss-flowarm-data-log.jpg"]]
179
180 = Sequencer =
181
182 [[image:lss-flowarm-sequencer.png||alt="lss-flowarm-sequencer.jpg"]]
183
184 LSS FlowArm has a powerful pattern sequencer component (normally found only in the full version of FlowBotics Studio) that is used to create reusable patterns within minutes, instead of hours or days.
185
186 (% style="width:1037px" %)
187 |(% style="width:207px" %)[[image:lss-flowarm-association.jpg]]|(% style="width:186px" %)Assign Input|(% style="width:662px" %)Patterns can be associated to keyboard keys F1 to F12, and keys E, F, G, and H
188 |(% style="width:207px" %)[[image:lss-flowarm-pattern-list.jpg]]|(% style="width:186px" %)Sequence List|(% style="width:662px" %)The sequence list is the first control on the sequencer.
189 |(% style="width:207px" %)[[image:lss-flowarm-patterns.jpg]]|(% style="width:186px" %)Sequence Management|(% style="width:662px" %)(((
190 Add, remove, duplicate, save, load and clear all patterns.
191 )))
192 |(% style="width:207px" %)[[image:lss-flowarm-frames.jpg]]|(% style="width:186px" %)Frame Options|(% style="width:662px" %)Adding a frame adds a blank frame to the list. The drop-down list gives "useful" pre-made frames. Recording a frame copies the arm's current on-screen position. The X removes a selected frame.
193 |(% style="width:207px" %)[[image:lss-flowarm-copy-paste.jpg]]|(% style="width:186px" %)Copy / Paste Frame|(% style="width:662px" %)Copy and paste a frame
194 |(% style="width:207px" %)[[image:lss-flowarm-settings.jpg]]|(% style="width:186px" %)Operations / Settings|(% style="width:662px" %)Useful features include: Toggle pause before frame; Remove gaps between frames; Reverse frames
195 |(% style="width:207px" %)[[image:lss-flowarm-lock.jpg]]|(% style="width:186px" %)Lock |(% style="width:662px" %)Timeline locking
196 |(% style="width:207px" %)[[image:lss-flowarm-loop.jpg]]|(% style="width:186px" %)Repeat / Loop Pattern|(% style="width:662px" %)Play once or loop; Set the playback speed using the up and down arrows.
197 |(% style="width:207px" %)[[image:lss-flowarm-play.jpg]]|(% style="width:186px" %)Sequence Playback|(% style="width:662px" %)Restart sequence, play or stop
198 |(% style="width:207px" %)[[image:lss-flowarm-inspector.png]]|(% style="width:186px" %)Frame Inspector|(% style="width:662px" %)Allows to modify the values sent in a particular frame manually.
199
200 === Sequences ===
201
202 The sequencer allows you to make your robot move over time by transitioning from one position to another. Each transition we call a frame and a sequence of frames we call a sequence. You can create as many sequences as you like. You can play sequences back manually or using the keyboard inputs mentioned below. This section describes the sequence management functions of the Sequencer.
203
204 === Sequence List ===
205
206 [[image:lss-flowarm-pattern-list.jpg]]
207
208 The sequence list is the first control on the sequencer. If you click on the arrow on the right-hand edge you'll see a list of the sequences that have been created and by selecting one you can move to that sequence. You can also scroll through the list one-by-one using the up and down arrow buttons. Clicking on the name of a sequence will allow you to change this. Simply type in the box then press the Return key or click away.
209
210 == Sequence Management ==
211
212 [[image:lss-flowarm-patterns.jpg]]
213
214 === Add a Sequence ===
215
216 To add a sequence click the add button. A new sequence will appear in the list and its name will open for editing.
217
218 === Remove a Sequence ===
219
220 Click the remove sequence button to delete the currently selected sequence from the list. This action is irreversible so you will be asked for confirmation.
221
222 === Duplicate a Sequence ===
223
224 If you want to make a new sequence based on an existing one then you can duplicate it.
225
226 === Saving Sequences ===
227
228 IMPORTANT: If you want to keep any sequences you create then you must export them otherwise they will be lost when you return to the project browser. 
229 To do this click the export button. You can choose whether to export all your sequences or just the currently selected one. Sequences are saved to files so you'll need to pick a filename and folder to save to. If a sequence uses sub sequences these will be saved even if you choose only to save the selected sequence.
230
231 === Loading Sequences ===
232
233 If you have saved sequences that you want to restore then click the Import button. You will be asked to choose a previously saved sequence file.
234 The sequences in the file will be added to the list. They do not replace the sequence list. Also it doesn't
235 matter how many sequences the file contains, all of them will be imported.
236
237 === Clear All Sequences ===
238
239 If you want to start from scratch you can clear all the sequences from the list using the clear all button.
240
241 == Frames ==
242
243 [[image:lss-flowarm-frame.jpg]]
244
245 We now know how to manage sequences now lets see how you build one. As we said earlier a sequence is made up of frames. A frame represents a transition between robot states over time.
246 In addition to frames, you can also add other sequences to a sequence. This allows quite complex series of movements to be built up very quickly and easily.
247
248 [[image:lss-flowarm-frames.jpg]]
249
250 === Adding Frames ===
251
252 To add a frame click the Add button. A new frame will be added at the end of the sequence. The duration of the frame will be whatever the last frame duration was. The frame will record whatever position the robot is currently set to. You can add a sub sequence to the sequence by clicking the arrow to the right of the Add button. A drop list of the available sequences will appear. Select one and it will be added to the end of the sequence.
253
254 === Recording to a Frame ===
255
256 When you add a frame it will record the state that the robot is currently in. If you want to change this state first select the frame by clicking on it. Next move the robot to the position you want to record. When you're happy press the record button. The frame will flash to indicate that it has been updated.
257
258 === Deleting Frames ===
259
260 To delete a sequence or frame from a sequence, click the Delete button.
261
262 === Naming Frames ===
263
264 To name a frame, simply double-click the top blue part of it. You will then be able to enter a name by typing text directly. Save the new name by pressing the [Enter] key once donce. Warning: please note that when double-clicking a frame to name it, it will play the frame which may move your robotic arm suddenly. You may want to activate the STOP button first to prevent movement when naming frames.
265
266 === Timeline Locking ===
267
268 [[image:lss-flowarm-lock.jpg]]
269
270 The timeline is locked by default. This means that frames will automatically run from one to the next – you cannot create space in between. Moving a frame past another one will move it along the order in the timeline. If the timeline is unlocked then you can move frames independently of each other and also create gaps of time in between.
271
272 === Moving and Resizing ===
273
274 To move a frame on the timeline, simply click on it and drag it to the time you want it to start. The start time will be displayed as you drag. How frames move relative to each other is determined by whether the timeline is locked (see previous section). To resize a frame grab the right-hand edge and drag it. When moving or resizing the mouse snaps to the nearest unit on the timeline. If you hold SHIFT while moving or resizing no snap will be applied. When the timeline is unlocked then if you hold CTRL while dragging or resizing a frame all frames to
275 the right of the selected frame will be moved so that the time interval between the selected frame and the next one is maintained.
276
277 === Auto Record ===
278
279 If you want changes you make to be automatically recorded you can lock the record button in place by double-clicking on it. Now whenever you change the robot position the currently elected frame will be updated. The record button will light up to show that auto record is on. To switch auto record off, double-click on the record button again.
280
281 === Copy and Paste ===
282
283 [[image:lss-flowarm-copy-paste.jpg]]
284
285 Sometimes you might want to copy the robot state from one frame to another. To do this we have copy and paste. To copy the data from a frame, select it then click the Copy button.
286 To duplicate the data on another frame, select the target frame and click the Paste button.
287
288 === Pause Before Frame ===
289
290 You can insert a pause before a frame commences. This is useful if you want the sequencer to stop and wait for some external event before continuing. First select the frame then click the Operations button and select Toggle Pause Before Frame. A red line will show at the start of the frame to show the pause. To remove the pause select the frame again and select Toggle Pause Before Frame after clicking on the Operations button.
291
292 === Remove Gaps Between Frames ===
293
294 [[image:lss-flowarm-settings.jpg]]
295
296 If the timeline is unlocked then you can instantly remove all the gaps between frames and push them up against each other by clicking the Operations button and choosing Remove Gaps Between Frames from the menu.
297
298 === Frame Inspector ===
299
300 [[image:lss-flowarm-inspector-frame.png]]
301
302 If any adjustments are required on a particular joint (servo) this function allows you to manually change them. Click on the particular frame and the commands can be edited.
303
304 == Sequencer ==
305
306 === Reverse Frames ===
307
308 [[image:lss-flowarm-settings.jpg]]
309
310 It's useful to be able to reverse the order of frames in a sequence. To do this click the Operations button and choose Reverse Frames.
311
312 === Sequence Playback ===
313
314 [[image:lss-flowarm-play.jpg]]
315
316 Once you have some frames in a sequence you can try playing it. Click the Play button to start the sequencer playing the current sequence. The play button lights up in green when the sequencer is playing. To stop playing click the Play button again or click the Stop button. You can reset the play position to the star by clicking the Reset button. You can also move the play position manually. Click on the black handle at the top of the playback position line and drag to move it.
317
318 [[image:lss-sequencer-handle.jpg||height="70" width="241"]]
319
320 === Assign an input to a sequence ===
321
322 [[image:lss-flowarm-association.jpg]]
323
324 You can assign an input to a sequence by choosing one in the drop-down list left of the sequence name. By default a sequence does not have a input associated with it. When you click on that box, you will be presented with a list of possible inputs. A sequence can only have one input associated with it. Similarly, an input can only be associated with one sequence at a time. If you choose an input in the list that is already associated, it will be removed from its previous sequence and assigned to the current one. By clicking on the sequence list, you will see which input is associated to each sequence to the right of their name:
325 If a sequence is already playing when its associated input is triggered, it will ignore that input and continue playing as normal. If an input that is associated is triggered when a different sequence is playing, it will be stopped and the
326
327 === Decision Frame ===
328
329 [[image:lss-flowarm-decision-frame.jpg]]
330
331 At the end of every sequence there is a permanent frame called the decision frame (it is orange for easy identification). Click on the top part (orange) to change the last action of the sequence. There are 3 options:
332
333 * STOP: once the sequence is completed, nothing else will happen
334 * LOOP: once the sequence is completed, it will repeat a set amount of time
335 * GOTO: once the sequence is completed, it will trigger the input selected
336
337 If another sequence is associated with that input, it will then play Playback Control. You can change the speed of playback by changing the speed multiplier. Click the up and down arrows to alter this. Normally a sequence plays to the end then stops. However, sometimes you want a sequence to repeat. You can toggle this by clicking the Loop button.
338
339 = Notifications =
340
341 (% style="width:1300px" %)
342 |(% style="text-align:center; width:450px" %)**Displayed Error**|(% style="text-align:center; width:100px" %)**LED Status**|(% style="text-align:center" %)**Informations**
343 |{{lightbox image="lss-flowarm-notification-limp.png"/}}|(% colspan="1" rowspan="2" style="text-align:center; vertical-align:middle" %)(((
344 [[image:LSS-UserColor.png||alt="LSS-Error-SafeMode.gif"]]
345
346 User Defined
347 )))|User clicked on the "LIMP" button or FlowArm noticed an error and put the arm in "LIMP" by himself.
348 |{{lightbox image="lss-flowarm-notification-firmware.png"/}}|(((
349 FlowArm noticed an earlier firmware version which is not compatible (SERVO 1 in this example).
350
351 * As suggested, use the LSS-Config software to update the servo(s)
352 )))
353 |{{lightbox image="lss-flowarm-notification-current.png"/}}|(% colspan="1" rowspan="2" style="text-align:center; vertical-align:middle" %)(((
354 [[image:LSS-Error-SafeMode.gif]]
355
356 Red Flashing
357 )))|(((
358 FlowArm noticed a high current error on the specified servo (SERVO 4 in this example)
359
360 * Verify that noting is in the way of the servo that can block it's movement.
361 * Try to "RELEASE SERVOS" which will "RESET" the servo(s) in error.
362 )))
363 |{{lightbox image="lss-flowarm-notification-temperature.png"/}}|(((
364 FlowArm noticed a high temperature error on the specified servo (SERVO 5 in this example).
365
366 * Let it cool down for a minute.
367 * Try to "RELEASE SERVOS" which will "RESET" the servo(s) in error.
368 )))
369
370 = Troubleshooting =
371
372 If you encounter any bugs or issues when installing or using the LSS FlowArm application, please submit a new post on the Lynxmotion community sub-forum here: [[https:~~/~~/www.robotshop.com/community/forum/c/lynxmotion/electronics-software>>url:https://www.robotshop.com/community/forum/c/lynxmotion/electronics-software]]

Recently Visited

Copyright RobotShop 2018