
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.robotika.sk/robowiki/index.php?action=history&amp;feed=atom&amp;title=Simple_servomotor_control_over_USB</id>
		<title>Simple servomotor control over USB - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.robotika.sk/robowiki/index.php?action=history&amp;feed=atom&amp;title=Simple_servomotor_control_over_USB"/>
		<link rel="alternate" type="text/html" href="https://wiki.robotika.sk/robowiki/index.php?title=Simple_servomotor_control_over_USB&amp;action=history"/>
		<updated>2026-05-15T11:04:27Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.robotika.sk/robowiki/index.php?title=Simple_servomotor_control_over_USB&amp;diff=4446&amp;oldid=prev</id>
		<title>Palo: New page: ''Author: Pavel, ppetrovic Image:zavinac.gif acm.org''  Slovenská verzia  In some applications it may come useful to control one or two s...</title>
		<link rel="alternate" type="text/html" href="https://wiki.robotika.sk/robowiki/index.php?title=Simple_servomotor_control_over_USB&amp;diff=4446&amp;oldid=prev"/>
				<updated>2009-07-14T18:21:14Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &amp;#039;&amp;#039;Author: Pavel, ppetrovic &lt;a href=&quot;/robowiki/index.php?title=File:Zavinac.gif&quot; title=&quot;File:Zavinac.gif&quot;&gt;Image:zavinac.gif&lt;/a&gt; acm.org&amp;#039;&amp;#039;  &lt;a href=&quot;/robowiki/index.php?title=Jednoduch%C3%A9_riadenie_servomotorov_cez_USB&quot; title=&quot;Jednoduché riadenie servomotorov cez USB&quot;&gt;Slovenská verzia&lt;/a&gt;  In some applications it may come useful to control one or two s...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;''Author: Pavel, ppetrovic [[Image:zavinac.gif]] acm.org''&lt;br /&gt;
&lt;br /&gt;
[[Jednoduché riadenie servomotorov cez USB|Slovenská verzia]]&lt;br /&gt;
&lt;br /&gt;
In some applications it may come useful to control one or two small servomotors with low&lt;br /&gt;
power consumption directly from PC. Examples may include pan-tilt camera control,&lt;br /&gt;
feeding your pet fish, regulation of sunlight of your favourite pet plant, etc.&lt;br /&gt;
Such device can be easily built, you only need soldering equipment and a little bit of patience.&lt;br /&gt;
We are talking here about the classical servomotors that are controlled using a digital PWM signal&lt;br /&gt;
at TTL level. We will need the following parts:&lt;br /&gt;
&lt;br /&gt;
* PCB&lt;br /&gt;
* USB cabel&lt;br /&gt;
* USB connector to be soldered into PCB&lt;br /&gt;
* CPU Atmel ATtiny2313 in PDIP (and 20-pin socket)&lt;br /&gt;
* 12MHz oscillator (Q1)&lt;br /&gt;
* Resistors:&lt;br /&gt;
** 150R (R5)&lt;br /&gt;
** 1M  (R1)&lt;br /&gt;
** 1k5 (R2)&lt;br /&gt;
** 2x 68R (R3,R4)&lt;br /&gt;
* Capacitors:&lt;br /&gt;
** electrolyt 4u7 (C1)&lt;br /&gt;
** 100n (C2)&lt;br /&gt;
** 2x 18p (C3, C4)&lt;br /&gt;
* LED (D3) &lt;br /&gt;
* 2x diode i.e. 1N4007 (D1,D2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Schematics:&lt;br /&gt;
&lt;br /&gt;
[[Image:usbservo.gif]]&lt;br /&gt;
&lt;br /&gt;
The placement of the parts is left up to your creativity ;)&lt;br /&gt;
&lt;br /&gt;
[[Image:usbservofinal.jpg]]&lt;br /&gt;
&lt;br /&gt;
Servomotors are connected to the two three-pin terminals. In our case, we use directly the&lt;br /&gt;
power from the USB port, but obviously, you can use the power from an optional battery pack&lt;br /&gt;
that you add to your setup, if your motors are not really low-power.&lt;br /&gt;
&lt;br /&gt;
The whole project is based on V-USB from Objective Development.&lt;br /&gt;
We derived it from the PowerSwitch project that we modified for our needs.&lt;br /&gt;
&lt;br /&gt;
Software consists of three parts:&lt;br /&gt;
* Firmware - program for ATtiny2313, it manages the USB bus and processes the motor requests &lt;br /&gt;
* Driver - program for PC that needs to be installed the first time you plug the device to your PC&lt;br /&gt;
* Control program - allows to send the commands to the device from PC over USB (and determine its state)&lt;br /&gt;
&lt;br /&gt;
The control program is a simple console application (written in Cygwin). Use the parameters to specify the action.&lt;br /&gt;
Run the program without arguments to get the usage help message. You do not need to install Cygwin, unless you&lt;br /&gt;
want to modify it or use the manual keyboard control mode (that is based on ncurses and requires Cygwin terminal functionality).&lt;br /&gt;
We also have a GUI application writtein in Imagine Logo language, that allows one to control the motors using mouse.&lt;br /&gt;
The bottom part of the window contains memory buttons for storing 5 specific locations.&lt;br /&gt;
&lt;br /&gt;
[[Image:usbservoimagine.png]]&lt;br /&gt;
&lt;br /&gt;
All parts of the software including short readme.txt file and schematic are available for download here:&lt;br /&gt;
&lt;br /&gt;
[[Media:usbservo.zip|usbservo.zip]] (996 KB)&lt;br /&gt;
&lt;br /&gt;
__notoc__&lt;/div&gt;</summary>
		<author><name>Palo</name></author>	</entry>

	</feed>