<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Arduino-Python 4-Axis Servo Control</title>
	<atom:link href="http://principialabs.com/arduino-python-4-axis-servo-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://principialabs.com/arduino-python-4-axis-servo-control/</link>
	<description>design, build, test, iterate.</description>
	<lastBuildDate>Mon, 19 Sep 2011 18:50:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Rob</title>
		<link>http://principialabs.com/arduino-python-4-axis-servo-control/#comment-529</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Mon, 19 Sep 2011 18:50:49 +0000</pubDate>
		<guid isPermaLink="false">http://principialabs.com/?p=69#comment-529</guid>
		<description>&lt;p&gt;Howdy !&lt;/p&gt;

&lt;p&gt;I am new to all this, but I am eager to learn, and have learned alot of your tut !
However, I would like to use several motors (RC kind with PWM adjustment), and a few servos, plus buttons on the joystick for on/off functions...
I believe that this is just plug and play, but I want to make sure before I fry my PCBs...  ;)
Is it just to change &quot;servo&quot; to &quot;motor&quot; etc... in the program?
And, I want to use ethernet from the laptop to the Arduino Ethernetcard (that is mounted on the Mega card...)
How will this be with COM ports?
Do I need a router between the laptop and Arduino side? (to get correct IP etc...?)&lt;/p&gt;

&lt;p&gt;I really hope that you have time and interest to help me with this :)&lt;/p&gt;

&lt;p&gt;Rob&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Howdy !</p>

<p>I am new to all this, but I am eager to learn, and have learned alot of your tut !
However, I would like to use several motors (RC kind with PWM adjustment), and a few servos, plus buttons on the joystick for on/off functions&#8230;
I believe that this is just plug and play, but I want to make sure before I fry my PCBs&#8230;  ;)
Is it just to change &#8220;servo&#8221; to &#8220;motor&#8221; etc&#8230; in the program?
And, I want to use ethernet from the laptop to the Arduino Ethernetcard (that is mounted on the Mega card&#8230;)
How will this be with COM ports?
Do I need a router between the laptop and Arduino side? (to get correct IP etc&#8230;?)</p>

<p>I really hope that you have time and interest to help me with this :)</p>

<p>Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://principialabs.com/arduino-python-4-axis-servo-control/#comment-528</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Mon, 19 Sep 2011 13:53:28 +0000</pubDate>
		<guid isPermaLink="false">http://principialabs.com/?p=69#comment-528</guid>
		<description>&lt;p&gt;@Rasmus: Thanks for stopping by.  You might want to check out &lt;a href=&quot;http://www.arduino.cc/en/Reference/Firmata&quot; rel=&quot;nofollow&quot;&gt;Firmata&lt;/a&gt;, an Arduino-based communications protocol with tons of functionality already built in, so you don&#039;t have to waste time writing your own (like I did! haha).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Rasmus: Thanks for stopping by.  You might want to check out <a href="http://www.arduino.cc/en/Reference/Firmata" rel="nofollow">Firmata</a>, an Arduino-based communications protocol with tons of functionality already built in, so you don&#8217;t have to waste time writing your own (like I did! haha).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rasmus Ansin</title>
		<link>http://principialabs.com/arduino-python-4-axis-servo-control/#comment-527</link>
		<dc:creator>Rasmus Ansin</dc:creator>
		<pubDate>Sun, 18 Sep 2011 22:55:22 +0000</pubDate>
		<guid isPermaLink="false">http://principialabs.com/?p=69#comment-527</guid>
		<description>&lt;p&gt;Thank you, this was exactly what I was looking for: controlling the arduino directly from the computer.&lt;/p&gt;

&lt;p&gt;Though I&#039;d like to know how to recieve data from the Arduino as well, can anyone throw me in the right direction for this? I want to use Python and preferably the &#039;serial&#039; module. I know Python quite well but I know little to nothing about serial communication, but it seems simple enough to use in this example.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thank you, this was exactly what I was looking for: controlling the arduino directly from the computer.</p>

<p>Though I&#8217;d like to know how to recieve data from the Arduino as well, can anyone throw me in the right direction for this? I want to use Python and preferably the &#8216;serial&#8217; module. I know Python quite well but I know little to nothing about serial communication, but it seems simple enough to use in this example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ritesh patel</title>
		<link>http://principialabs.com/arduino-python-4-axis-servo-control/#comment-524</link>
		<dc:creator>ritesh patel</dc:creator>
		<pubDate>Fri, 26 Aug 2011 13:38:06 +0000</pubDate>
		<guid isPermaLink="false">http://principialabs.com/?p=69#comment-524</guid>
		<description>&lt;p&gt;tanks for this the thing which i search from last one year to complete my project.thanks a lot for this&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>tanks for this the thing which i search from last one year to complete my project.thanks a lot for this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Souren</title>
		<link>http://principialabs.com/arduino-python-4-axis-servo-control/#comment-523</link>
		<dc:creator>Souren</dc:creator>
		<pubDate>Sun, 21 Aug 2011 17:54:09 +0000</pubDate>
		<guid isPermaLink="false">http://principialabs.com/?p=69#comment-523</guid>
		<description>&lt;p&gt;Hey Brian,
You saved my nerves buddy! I was getting mad in my robotic project. I&#039;m from Iran and it is crazy to say I&#039;m the only one who uses Arduino for most projects, everyone here mostly offers to spend time designing PCB boards with AVR micro pro, don&#039;t give rat ass! Just wanna to say: THANK YOU SO MUCH!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hey Brian,
You saved my nerves buddy! I was getting mad in my robotic project. I&#8217;m from Iran and it is crazy to say I&#8217;m the only one who uses Arduino for most projects, everyone here mostly offers to spend time designing PCB boards with AVR micro pro, don&#8217;t give rat ass! Just wanna to say: THANK YOU SO MUCH!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramsey Gill</title>
		<link>http://principialabs.com/arduino-python-4-axis-servo-control/#comment-520</link>
		<dc:creator>Ramsey Gill</dc:creator>
		<pubDate>Sat, 13 Aug 2011 20:01:45 +0000</pubDate>
		<guid isPermaLink="false">http://principialabs.com/?p=69#comment-520</guid>
		<description>&lt;p&gt;I was thinking exactly the same thing (2 Arduino&#039;s) when I started to think about all the serial data I would be cramming down the Arduino&#039;s throat. Currently i am using a java based DLink IP camera, I am sure there would be a way to tap into that java and embed the video into a program interface some way. Your kitplane looks awesome!!!, I have always wanted to build an experimental air craft, i always see ultra lights near our farm.  . I just started working at a company called Frasca International http://www.frasca.com/. They manufacture flight simulators.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I was thinking exactly the same thing (2 Arduino&#8217;s) when I started to think about all the serial data I would be cramming down the Arduino&#8217;s throat. Currently i am using a java based DLink IP camera, I am sure there would be a way to tap into that java and embed the video into a program interface some way. Your kitplane looks awesome!!!, I have always wanted to build an experimental air craft, i always see ultra lights near our farm.  . I just started working at a company called Frasca International <a href="http://www.frasca.com/" rel="nofollow">http://www.frasca.com/</a>. They manufacture flight simulators.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://principialabs.com/arduino-python-4-axis-servo-control/#comment-519</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Wed, 10 Aug 2011 17:14:29 +0000</pubDate>
		<guid isPermaLink="false">http://principialabs.com/?p=69#comment-519</guid>
		<description>&lt;p&gt;Hey @Ramsey: Oh man that VB GUI looks cool.  That is exactly the type of thing I want to do with Processing (or Python)!!  I especially like the idea of displaying telemetry data (and even video) on a PC, while controlling the bot with a joystick.&lt;/p&gt;

&lt;p&gt;I&#039;ve been wondering lately if a rover/bot concept such as yours would almost need TWO microcontrollers: one for command and control, and another for collecting and transmitting sensor data, to simplify the coding and keep the memory and processor on the control Arduino free to receive commands.  The PC would also have two (or more) USB-Xbee inputs, and the GUI would just tie everything together.&lt;/p&gt;

&lt;p&gt;Unfortunately I&#039;m bogged down with work and school, along with the myriad tasks of my primary project these days - &lt;a href=&quot;http://aeropunk.com/&quot; rel=&quot;nofollow&quot;&gt;the kitplane&lt;/a&gt; - so I haven&#039;t really been focusing much on the Arduino/Processing stuff lately.  If you have a go at it though, keep me posted!!&lt;/p&gt;

&lt;p&gt;BWs&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hey @Ramsey: Oh man that VB GUI looks cool.  That is exactly the type of thing I want to do with Processing (or Python)!!  I especially like the idea of displaying telemetry data (and even video) on a PC, while controlling the bot with a joystick.</p>

<p>I&#8217;ve been wondering lately if a rover/bot concept such as yours would almost need TWO microcontrollers: one for command and control, and another for collecting and transmitting sensor data, to simplify the coding and keep the memory and processor on the control Arduino free to receive commands.  The PC would also have two (or more) USB-Xbee inputs, and the GUI would just tie everything together.</p>

<p>Unfortunately I&#8217;m bogged down with work and school, along with the myriad tasks of my primary project these days &#8211; <a href="http://aeropunk.com/" rel="nofollow">the kitplane</a> &#8211; so I haven&#8217;t really been focusing much on the Arduino/Processing stuff lately.  If you have a go at it though, keep me posted!!</p>

<p>BWs</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramsey Gill</title>
		<link>http://principialabs.com/arduino-python-4-axis-servo-control/#comment-518</link>
		<dc:creator>Ramsey Gill</dc:creator>
		<pubDate>Wed, 10 Aug 2011 02:41:15 +0000</pubDate>
		<guid isPermaLink="false">http://principialabs.com/?p=69#comment-518</guid>
		<description>&lt;p&gt;Brian, i know you have been covering this in Processing a bit...but is it possible to integrate firmata and this code to allows python joystick control and VB app control of pins? this app looks promising i would like to use it or replicate a similar app in processing. I would like to get GPS info displayed, analog pin info and digital control and status from the Arduino while also using a joystick for control...Possible?&lt;/p&gt;

&lt;p&gt;Thanks, i know you are busy&lt;/p&gt;

&lt;p&gt;link to VB firmata app http://www.acraigie.com/programming/firmatavb/default.html&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Brian, i know you have been covering this in Processing a bit&#8230;but is it possible to integrate firmata and this code to allows python joystick control and VB app control of pins? this app looks promising i would like to use it or replicate a similar app in processing. I would like to get GPS info displayed, analog pin info and digital control and status from the Arduino while also using a joystick for control&#8230;Possible?</p>

<p>Thanks, i know you are busy</p>

<p>link to VB firmata app <a href="http://www.acraigie.com/programming/firmatavb/default.html" rel="nofollow">http://www.acraigie.com/programming/firmatavb/default.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Álvaro Justen aka Turicas</title>
		<link>http://principialabs.com/arduino-python-4-axis-servo-control/#comment-517</link>
		<dc:creator>Álvaro Justen aka Turicas</dc:creator>
		<pubDate>Mon, 08 Aug 2011 00:26:08 +0000</pubDate>
		<guid isPermaLink="false">http://principialabs.com/?p=69#comment-517</guid>
		<description>&lt;p&gt;Hello Brian,
nice work!
I created a project in Python to control Arduino using Twitter. It&#039;ll be cool to integrate with your project (my code needs more refactoring, but for now it is very simple and works fine). For more information, visit:
https://github.com/turicas/tweetlamp&lt;/p&gt;

&lt;p&gt;Cheers.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hello Brian,
nice work!
I created a project in Python to control Arduino using Twitter. It&#8217;ll be cool to integrate with your project (my code needs more refactoring, but for now it is very simple and works fine). For more information, visit:
<a href="https://github.com/turicas/tweetlamp" rel="nofollow">https://github.com/turicas/tweetlamp</a></p>

<p>Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gilbert</title>
		<link>http://principialabs.com/arduino-python-4-axis-servo-control/#comment-514</link>
		<dc:creator>Gilbert</dc:creator>
		<pubDate>Mon, 18 Jul 2011 10:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://principialabs.com/?p=69#comment-514</guid>
		<description>&lt;p&gt;ok now that all is working I am trying to write a python variant that will take command line inputs, the script works but the servos aren&#039;t moving?!:&lt;/p&gt;

&lt;p&gt;!/usr/bin/env python&lt;/p&gt;

&lt;p&gt;#&lt;/p&gt;

&lt;p&gt;Module:   servo.py&lt;/p&gt;

&lt;p&gt;Created:  2 April 2008&lt;/p&gt;

&lt;p&gt;Author:   Brian D. Wendt&lt;/p&gt;

&lt;p&gt;http://principialabs.com/&lt;/p&gt;

&lt;p&gt;Version:  0.3&lt;/p&gt;

&lt;p&gt;License:  GPLv3&lt;/p&gt;

&lt;p&gt;http://www.fsf.org/licensing/&lt;/p&gt;

&lt;p&gt;&#039;&#039;&#039;
Provides a serial connection abstraction layer
for use with Arduino &quot;MultipleSerialServoControl&quot; sketch.
&#039;&#039;&#039;&lt;/p&gt;

&lt;p&gt;#&lt;/p&gt;

&lt;p&gt;import serial
import sys&lt;/p&gt;

&lt;p&gt;Assign Arduino&#039;s serial port address&lt;/p&gt;

&lt;p&gt;Windows example&lt;/p&gt;

&lt;p&gt;usbport = &#039;COM3&#039;&lt;/p&gt;

&lt;p&gt;Linux example&lt;/p&gt;

&lt;p&gt;usbport = &#039;/dev/ttyUSB0&#039;&lt;/p&gt;

&lt;p&gt;MacOSX example&lt;/p&gt;

&lt;p&gt;usbport = &#039;/dev/tty.usbserial-FTALLOK2&#039;&lt;/p&gt;

&lt;p&gt;try:
                servo = int(sys.argv[1])
                angle = int(sys.argv[2])
except IndexError:
                print (&#039;a servo and angle are required&#039;)
        sys.exit(2)&lt;/p&gt;

&lt;p&gt;Set up serial baud rate&lt;/p&gt;

&lt;p&gt;usbport = &#039;/dev/ttyACM0&#039;
ser = serial.Serial(usbport, 9600, timeout=1)
def move(servo, angle):
    &#039;&#039;&#039;Moves the specified servo to the supplied angle.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Arguments:
    servo
      the servo number to command, an integer from 1-4
    angle
      the desired servo angle, an integer from 0 to 180

(e.g.) &gt;&gt;&gt; servo.move(2, 90)
       ... # &quot;move servo #2 to 90 degrees&quot;&#039;&#039;&#039;

if (0 &lt;= angle &lt;= 180):
    ser.write(chr(255))
    ser.write(chr(servo))
    ser.write(chr(angle))
else:
    print &quot;Servo angle must be an integer between 0 and 180. You typed:&quot;
print servo
print angle
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;move(servo, angle)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>ok now that all is working I am trying to write a python variant that will take command line inputs, the script works but the servos aren&#8217;t moving?!:</p>

<p>!/usr/bin/env python</p>

<p>#</p>

<p>Module:   servo.py</p>

<p>Created:  2 April 2008</p>

<p>Author:   Brian D. Wendt</p>

<p><a href="http://principialabs.com/" rel="nofollow">http://principialabs.com/</a></p>

<p>Version:  0.3</p>

<p>License:  GPLv3</p>

<p><a href="http://www.fsf.org/licensing/" rel="nofollow">http://www.fsf.org/licensing/</a></p>

<p>&#8221;&#8217;
Provides a serial connection abstraction layer
for use with Arduino &#8220;MultipleSerialServoControl&#8221; sketch.
&#8221;&#8217;</p>

<p>#</p>

<p>import serial
import sys</p>

<p>Assign Arduino&#8217;s serial port address</p>

<p>Windows example</p>

<p>usbport = &#8216;COM3&#8242;</p>

<p>Linux example</p>

<p>usbport = &#8216;/dev/ttyUSB0&#8242;</p>

<p>MacOSX example</p>

<p>usbport = &#8216;/dev/tty.usbserial-FTALLOK2&#8242;</p>

<p>try:
                servo = int(sys.argv[1])
                angle = int(sys.argv[2])
except IndexError:
                print (&#8216;a servo and angle are required&#8217;)
        sys.exit(2)</p>

<p>Set up serial baud rate</p>

<p>usbport = &#8216;/dev/ttyACM0&#8242;
ser = serial.Serial(usbport, 9600, timeout=1)
def move(servo, angle):
    &#8221;&#8217;Moves the specified servo to the supplied angle.</p>

<pre><code>Arguments:
    servo
      the servo number to command, an integer from 1-4
    angle
      the desired servo angle, an integer from 0 to 180

(e.g.) &gt;&gt;&gt; servo.move(2, 90)
       ... # "move servo #2 to 90 degrees"'''

if (0 &lt;= angle &lt;= 180):
    ser.write(chr(255))
    ser.write(chr(servo))
    ser.write(chr(angle))
else:
    print "Servo angle must be an integer between 0 and 180. You typed:"
print servo
print angle
</code></pre>

<p>move(servo, angle)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

