<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Home</title><link>https://sourceforge.net/p/ksr10usbpython/wiki/Home/</link><description>Recent changes to Home</description><atom:link href="https://sourceforge.net/p/ksr10usbpython/wiki/Home/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 12 Sep 2012 18:17:14 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/ksr10usbpython/wiki/Home/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Home modified by Niels Bosboom</title><link>https://sourceforge.net/p/ksr10usbpython/wiki/Home/</link><description>&lt;pre&gt;--- v5
+++ v6
@@ -26,7 +26,7 @@
 
 - - - - - - -
 
-[Example 1] - simple)
+[Example 1] - simple
 
 [Example 2] - more complex, uses Windows speech recognition to control the robot arm with your voice.
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Niels Bosboom</dc:creator><pubDate>Wed, 12 Sep 2012 18:17:14 -0000</pubDate><guid>https://sourceforge.net81e963f83185717c90e39fd26672f6a5f83c077f</guid></item><item><title>WikiPage Home modified by Niels Bosboom</title><link>https://sourceforge.net/p/ksr10usbpython/wiki/Home/</link><description>&lt;pre&gt;--- v4
+++ v5
@@ -28,7 +28,7 @@
 
 [Example 1] - simple)
 
-[Example 2] - more complex, uses Windows speech recognition to control the robot arm.
+[Example 2] - more complex, uses Windows speech recognition to control the robot arm with your voice.
 
 [[project_admins]]
 [[download_button]]
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Niels Bosboom</dc:creator><pubDate>Tue, 24 Jul 2012 14:11:33 -0000</pubDate><guid>https://sourceforge.neta6082a7dafbe65688594d6b1a7f700d4efaec9c1</guid></item><item><title>WikiPage Home modified by Niels Bosboom</title><link>https://sourceforge.net/p/ksr10usbpython/wiki/Home/</link><description>&lt;pre&gt;--- v3
+++ v4
@@ -30,127 +30,5 @@
 
 [Example 2] - more complex, uses Windows speech recognition to control the robot arm.
 
-~~~~~~
-#!/usr/bin/python
-
-import ksr10
-import time
-
-# create object
-ksr = ksr10.ksr10.ksr10_class()
-
-# turn on lights
-ksr.lights()
-
-# move base of the arm to the left
-ksr.move("base","left")
-
-# wait 0.5 second
-time.sleep(.5)
-
-# stop all movement
-ksr.stop()
-
-# move base to the right and 
-# elbow up simultaneously
-ksr.move("base","right")
-ksr.move("elbow","up")
-
-# wait 0.5 second
-time.sleep(.5)
-
-# stop all movement
-ksr.stop()
-
-# turn off lights
-ksr.lights()
-~~~~~~
-
-
-
-
-Example 2 (more complex; speech control)
----------
-# example 1 : controlling robot arm using speech
-
-~~~~~~
-#!/usr/bin/python
-
-import ksr10
-import speech
-import time
-
-def response(phrase, listener):
-    # speech.say("You said %s" % phrase)
-    print phrase
-    if phrase.lower() == "turn off":
-        listener.stoplistening()
-    if phrase.lower() == "lights":
-        ksr.lights()
-    
-    
-    if phrase.lower() == "stop":
-        ksr.stop()
-    
-    # move shoulder
-    if phrase.lower() == "shoulder up":
-        ksr.move("shoulder","up")
-        time.sleep(.5)
-        ksr.stop()
-    if phrase.lower() == "shoulder down":
-        ksr.move("shoulder","down")
-        time.sleep(.5)
-        ksr.stop()
-    # move base
-    if phrase.lower() == "base left":
-        ksr.move("base","left")
-        time.sleep(.5)
-        ksr.stop()
-    if phrase.lower() == "base right":
-        ksr.move("base","right")
-        time.sleep(.5)
-        ksr.stop()
-    # move wrist
-    if phrase.lower() == "wrist up":
-        ksr.move("wrist","up")
-        time.sleep(.5)
-        ksr.stop()
-    if phrase.lower() == "wrist down":
-        ksr.move("wrist","down")
-        time.sleep(.5)
-        ksr.stop()
-    # move elbow
-    if phrase.lower() == "elbow up":
-        ksr.move("elbow","up")
-        time.sleep(.5)
-        ksr.stop()
-    if phrase.lower() == "elbow down":
-        ksr.move("elbow","down")
-        time.sleep(.5)
-        ksr.stop()
-    # move elbow
-    if phrase.lower() == "grip open":
-        ksr.move("grip","open")
-        time.sleep(.2)
-        ksr.stop()
-    if phrase.lower() == "grip close":
-        ksr.move("grip","close")
-        time.sleep(.2)
-        ksr.stop()
-    
-if __name__ == '__main__':
-    
-    # create a robot arm object
-    ksr = ksr10.ksr10.ksr10_class()
-    
-    print "Start listening..."
-    listener = speech.listenforanything(response)
-    
-    while listener.islistening():
-        time.sleep(10)
-        print ".",
-~~~~~~
-  
-
 [[project_admins]]
 [[download_button]]
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Niels Bosboom</dc:creator><pubDate>Tue, 24 Jul 2012 13:59:16 -0000</pubDate><guid>https://sourceforge.netc4f9c1cc3cefcd38acdfa10c7b55cd5c412a5713</guid></item><item><title>WikiPage Home modified by Niels Bosboom</title><link>https://sourceforge.net/p/ksr10usbpython/wiki/Home/</link><description>&lt;pre&gt;--- v2
+++ v3
@@ -24,11 +24,133 @@
 ksr.lights() will turn on or turn off the lights
 ksr.move(part,direction) will move "part" in certain "direction", like ksr.move("shoulder","down") will move the shoulder down. Please note that the ksr10 will not stop moving unless you command it do so with ksr.stop().
 
-Example 1
+- - - - - - -
+
+[Example 1] - simple)
+
+[Example 2] - more complex, uses Windows speech recognition to control the robot arm.
+
+~~~~~~
+#!/usr/bin/python
+
+import ksr10
+import time
+
+# create object
+ksr = ksr10.ksr10.ksr10_class()
+
+# turn on lights
+ksr.lights()
+
+# move base of the arm to the left
+ksr.move("base","left")
+
+# wait 0.5 second
+time.sleep(.5)
+
+# stop all movement
+ksr.stop()
+
+# move base to the right and 
+# elbow up simultaneously
+ksr.move("base","right")
+ksr.move("elbow","up")
+
+# wait 0.5 second
+time.sleep(.5)
+
+# stop all movement
+ksr.stop()
+
+# turn off lights
+ksr.lights()
+~~~~~~
+
+
+
+
+Example 2 (more complex; speech control)
 ---------
+# example 1 : controlling robot arm using speech
 
-Example 2
----------
+~~~~~~
+#!/usr/bin/python
+
+import ksr10
+import speech
+import time
+
+def response(phrase, listener):
+    # speech.say("You said %s" % phrase)
+    print phrase
+    if phrase.lower() == "turn off":
+        listener.stoplistening()
+    if phrase.lower() == "lights":
+        ksr.lights()
+    
+    
+    if phrase.lower() == "stop":
+        ksr.stop()
+    
+    # move shoulder
+    if phrase.lower() == "shoulder up":
+        ksr.move("shoulder","up")
+        time.sleep(.5)
+        ksr.stop()
+    if phrase.lower() == "shoulder down":
+        ksr.move("shoulder","down")
+        time.sleep(.5)
+        ksr.stop()
+    # move base
+    if phrase.lower() == "base left":
+        ksr.move("base","left")
+        time.sleep(.5)
+        ksr.stop()
+    if phrase.lower() == "base right":
+        ksr.move("base","right")
+        time.sleep(.5)
+        ksr.stop()
+    # move wrist
+    if phrase.lower() == "wrist up":
+        ksr.move("wrist","up")
+        time.sleep(.5)
+        ksr.stop()
+    if phrase.lower() == "wrist down":
+        ksr.move("wrist","down")
+        time.sleep(.5)
+        ksr.stop()
+    # move elbow
+    if phrase.lower() == "elbow up":
+        ksr.move("elbow","up")
+        time.sleep(.5)
+        ksr.stop()
+    if phrase.lower() == "elbow down":
+        ksr.move("elbow","down")
+        time.sleep(.5)
+        ksr.stop()
+    # move elbow
+    if phrase.lower() == "grip open":
+        ksr.move("grip","open")
+        time.sleep(.2)
+        ksr.stop()
+    if phrase.lower() == "grip close":
+        ksr.move("grip","close")
+        time.sleep(.2)
+        ksr.stop()
+    
+if __name__ == '__main__':
+    
+    # create a robot arm object
+    ksr = ksr10.ksr10.ksr10_class()
+    
+    print "Start listening..."
+    listener = speech.listenforanything(response)
+    
+    while listener.islistening():
+        time.sleep(10)
+        print ".",
+~~~~~~
+  
 
 [[project_admins]]
 [[download_button]]
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Niels Bosboom</dc:creator><pubDate>Tue, 24 Jul 2012 13:55:06 -0000</pubDate><guid>https://sourceforge.net5910a9141a43f877e5bd3b5d3cf4a457d8f666da</guid></item><item><title>WikiPage Home modified by Niels Bosboom</title><link>https://sourceforge.net/p/ksr10usbpython/wiki/Home/</link><description>&lt;pre&gt;--- v1
+++ v2
@@ -1,8 +1,34 @@
-Welcome to your wiki!
+Welcome!
+========
 
-This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].
+Overview
+--------
 
-The wiki uses [Markdown](/p/ksr10usbpython/wiki/markdown_syntax/) syntax.
+This Python module uses [PyUSB](https://sourceforge.net/apps/trac/pyusb/) to control the [KSR10 Robot Arm by Velleman](http://www.velleman.eu/products/view/?id=375310).
+The module gives you the ability to create an object of the robot arm. The object has several methods and control options.
+
+How to use
+----------
+Simply download the package and place the scripts in the directory of your choice. Import the ksr10.py file with
+
+~~~~~~
+import ksr10
+~~~~~~
+then create a new object, like
+
+~~~~~~
+ksr = ksr10.ksr10.ksr10_class()
+~~~~~~
+Then the following methods apply:
+ksr.stop() will stop all movement
+ksr.lights() will turn on or turn off the lights
+ksr.move(part,direction) will move "part" in certain "direction", like ksr.move("shoulder","down") will move the shoulder down. Please note that the ksr10 will not stop moving unless you command it do so with ksr.stop().
+
+Example 1
+---------
+
+Example 2
+---------
 
 [[project_admins]]
 [[download_button]]
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Niels Bosboom</dc:creator><pubDate>Tue, 24 Jul 2012 13:35:57 -0000</pubDate><guid>https://sourceforge.net423b27b7c54a9f6a3a674de049227a16e92a7459</guid></item><item><title>WikiPage Home modified by Niels Bosboom</title><link>https://sourceforge.net/p/ksr10usbpython/wiki/Home/</link><description>Welcome to your wiki!

This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].

The wiki uses [Markdown](/p/ksr10usbpython/wiki/markdown_syntax/) syntax.

[[project_admins]]
[[download_button]]
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Niels Bosboom</dc:creator><pubDate>Tue, 24 Jul 2012 13:10:57 -0000</pubDate><guid>https://sourceforge.net89c7ae60a5e2a713b27d7f19e11880f895973f18</guid></item></channel></rss>