<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tobi's Corner &#187; USB</title>
	<atom:link href="http://tobiscorner.floery.net/tag/usb/feed" rel="self" type="application/rss+xml" />
	<link>http://tobiscorner.floery.net</link>
	<description>... the electronix portal</description>
	<lastBuildDate>Tue, 22 Jun 2010 06:54:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>USB DotMatrix Display</title>
		<link>http://tobiscorner.floery.net/projects/avr/misc-avr/usb-dotmatrix-display/143</link>
		<comments>http://tobiscorner.floery.net/projects/avr/misc-avr/usb-dotmatrix-display/143#comments</comments>
		<pubDate>Mon, 01 Feb 2010 11:27:06 +0000</pubDate>
		<dc:creator>theFloe</dc:creator>
				<category><![CDATA[misc AVR]]></category>
		<category><![CDATA[AVR]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[dotmatrix]]></category>
		<category><![CDATA[LED]]></category>
		<category><![CDATA[libusb]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[pyusb]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[v-usb]]></category>

		<guid isPermaLink="false">http://tobiscorner.floery.net/?p=143</guid>
		<description><![CDATA[Inspired by http://tinkerlog.com/2009/04/05/driving-an-led-with-or-without-a-resistor/ I started to build a USB driven display. I ordered some big green 5x7 dotmatrix display from http://evilmadscience.com/ and had a look at v-usb. What you get when combining those is a via USB controllable dotmatrix display. The PC related programming I did in Python using libusb and the python binding called [...]]]></description>
			<content:encoded><![CDATA[<p>Inspired by <a href="http://tinkerlog.com/2009/04/05/driving-an-led-with-or-without-a-resistor/" target="_blank">http://tinkerlog.com/2009/04/05/driving-an-led-with-or-without-a-resistor/</a> I started to build a USB driven display. I ordered some big green 5x7 dotmatrix display from <a href="http://evilmadscience.com/">http://evilmadscience.com/</a> and had a look at <a href="http://www.obdev.at/products/vusb/index.html">v-usb</a>.</p>
<p>What you get when combining those is a via USB controllable dotmatrix display. The PC related programming I did in Python using libusb and the python binding called pyusb. So the program should be cross platform compatible! Also python allows one to extend the functionality(e.g. checking for new mail, usb notifications of any type&#8230;) very easy.</p>

<a href='http://tobiscorner.floery.net/projects/avr/misc-avr/usb-dotmatrix-display/143/attachment/usbmatrix-2' ><img width="150" height="150" src="http://tobiscorner.floery.net/wp-content//usbmatrix-150x150.png" class="attachment-thumbnail" alt="usbmatrix" title="usbmatrix" /></a>
<a href='http://tobiscorner.floery.net/projects/avr/misc-avr/usb-dotmatrix-display/143/attachment/matrix1' ><img width="150" height="150" src="http://tobiscorner.floery.net/wp-content//matrix1-150x150.png" class="attachment-thumbnail" alt="matrix1" title="matrix1" /></a>
<a href='http://tobiscorner.floery.net/projects/avr/misc-avr/usb-dotmatrix-display/143/attachment/matrix2' ><img width="150" height="150" src="http://tobiscorner.floery.net/wp-content//matrix2-150x150.png" class="attachment-thumbnail" alt="matrix2" title="matrix2" /></a>

<p>Video after the break.</p>
<p><span id="more-143"></span></p>
<p><a href="<span class="youtube">
<object width="425" height="355">
<param name="movie" value="http://www.youtube.com/v/6VcidXvYe6A&amp;rel=0&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0">http://www.youtube.com/watch?v=6VcidXvYe6A" />
<param name="allowFullScreen" value="true" />
<embed wmode="transparent" src="http://www.youtube.com/v/6VcidXvYe6A&amp;rel=0&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0">http://www.youtube.com/watch?v=6VcidXvYe6A" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="355"></embed>
<param name="wmode" value="transparent" />
</object>
</span><p><a href="http://www.youtube.com/watch?v=6VcidXvYe6A">www.youtube.com/watch?v=6VcidXvYe6A</a></p></a></p>
<p>Download:</p>
<ul>
<li> <a href="http://tobiscorner.floery.net/wp-content/usbmatrix.zip">usbmatrix</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://tobiscorner.floery.net/projects/avr/misc-avr/usb-dotmatrix-display/143/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Igor-Plug USB</title>
		<link>http://tobiscorner.floery.net/projects/avr/misc-avr/igor-plug-usb/25</link>
		<comments>http://tobiscorner.floery.net/projects/avr/misc-avr/igor-plug-usb/25#comments</comments>
		<pubDate>Sat, 11 Nov 2006 18:26:16 +0000</pubDate>
		<dc:creator>theFloe</dc:creator>
				<category><![CDATA[misc AVR]]></category>
		<category><![CDATA[AVR]]></category>
		<category><![CDATA[USB]]></category>

		<guid isPermaLink="false">http://www.floery.net/tobiscorner/?p=25</guid>
		<description><![CDATA[IgorPlug is an USB-Software-Slave for AT90S2313, ATMega8 or others build by Ing. Igor Cesko. The Author: Ing. Igor Cesko E-Mail: cesko@internet.skThis email address is being protected from spam bots, you need Javascript enabled to view it WWW: http://www.cesko.host.sk About IgorPlug: I&#8217;ve tried the IgorPlug USB-RS232 Converter on an ATMega8 running with 12MHz for better USB [...]]]></description>
			<content:encoded><![CDATA[<p>IgorPlug is an USB-Software-Slave for AT90S2313, ATMega8 or others build by   Ing. Igor Cesko.</p>
<p>The Author:</p>
<ul>
<li>Ing. Igor Cesko</li>
<li>E-Mail: <a href="mailto:cesko@internet.sk">cesko@internet.sk</a><noscript>This email address is being protected from spam bots, you need Javascript enabled to view it</noscript></li>
<li>WWW:             <a href="http://www.cesko.host.sk/">http://www.cesko.host.sk</a></li>
</ul>
<p>About IgorPlug:</p>
<p>I&#8217;ve tried the IgorPlug USB-RS232 Converter on an ATMega8 running with 12MHz for better USB Timing. As reference I used the information on Igor&#8217;s Homepage and the Application Note from ATMEL.</p>
<p>Features:</p>
<ul>
<li>800 Byte FIFO Buffer</li>
<li>Baudrates from 300 to 115200</li>
<li>Databits: 5,6,7,8; Stopbits: 1,2; Parity: none, even, odd, mark, space</li>
<li>Three 8-bit I/O Ports</li>
<li>Direct Interface to internal EEProm</li>
<li>eventually possibility to use ATmega8 peripherals (not yet implemented)</li>
<li>Possibility to add own function</li>
</ul>
<p>See my IgorPlug:</p>
<div style="text-align: center"><img id="image23" src="http://www.floery.net/tobiscorner/wp-content/igor1.jpg" alt="Igor-Plug USB" /></div>
<div style="text-align: center"><span id="more-25"></span></div>
<div style="text-align: center"><img id="image24" src="http://www.floery.net/tobiscorner/wp-content/igor2.jpg" alt="Igor-Plug USB 2" /></div>
<p>Just connected everything on the fly and IT WAS WORKING! I plugged in the USB Cable to my WinXP Computer and it detected the IgorPlug Device. Next i started to write my own userfunction.</p>
<p><strong>Step1:</strong></p>
<p>I wrote a function that should be able to switch on and off the red LED you can see on the pictures.</p>
<blockquote><p><span style="font-family: courier new,courier,monospace;">DoUserFunction3:<br />
lds temp0,InputBufferBegin+4 ;first parameter Lo into temp0<br />
;lds temp1,InputBufferBegin+5 ;first parameter Hi into temp1<br />
;lds temp2,InputBufferBegin+6 ;second parameter Lo into temp2<br />
;lds temp3,InputBufferBegin+7 ;second parameter Hi into temp3<br />
;lds ACC,InputBufferBegin+8 ;number of requested bytes from USB host (computer) into ACC</span></p>
<p><span style="font-family: courier new,courier,monospace;">;Here add your own code:</span></p>
<p><span style="font-family: courier new,courier,monospace;">out	PORTC,temp0</span></p>
<p><span style="font-family: courier new,courier,monospace;">mov ZL,temp0 ;will be sending value of RAM &#8211; from address stored in temp0 (first parameter Lo of function)<br />
mov ZH,temp1 ;will be sending value of RAM &#8211; from address stored in temp1 (first parameter Hi of function)<br />
inc RAMread ;RAMread=1 &#8211; reading from RAM<br />
ldi temp0,255 ;send max number of bytes &#8211; 255 bytes are maximum<br />
rjmp ComposeEndXXXDescriptor ;a prepare data</span></p></blockquote>
<p>Add the Userfunction above line 1218:</p>
<blockquote><p>;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; END: This is template how to write own function &#8212;&#8212;&#8212;&#8212;&#8212;-</p></blockquote>
<p>To tell IgorPlug to call the function go to line: 1159 where it looks like:</p>
<blockquote><p><span style="font-family: courier new,courier,monospace;">NoDoUserFunction0:<br />
cpi temp1,USER_FNC_NUMBER+1 ;<br />
brne NoDoUserFunction1<br />
rjmp DoUserFunction1 ;execute of user function1<br />
NoDoUserFunction1:<br />
cpi temp1,USER_FNC_NUMBER+2 ;<br />
brne NoDoUserFunction2<br />
rjmp DoUserFunction2 ;execute of user function1<br />
NoDoUserFunction2:</span></p>
<p><span style="font-family: courier new,courier,monospace;">rjmp ZeroDATA1Answer ;if that it was something unknown, then prepare zero answer</span></p></blockquote>
<p>And change it to:</p>
<blockquote><p><span style="font-family: courier new,courier,monospace;">NoDoUserFunction0:<br />
cpi temp1,USER_FNC_NUMBER+1 ;<br />
brne NoDoUserFunction1<br />
rjmp DoUserFunction1 ;execute of user function1<br />
NoDoUserFunction1:<br />
cpi temp1,USER_FNC_NUMBER+2 ;<br />
brne NoDoUserFunction2<br />
rjmp DoUserFunction2 ;execute of user function1<br />
NoDoUserFunction2:<br />
cpi temp1,USER_FNC_NUMBER+3 ;<br />
brne NoDoUserFunction3<br />
rjmp DoUserFunction3 ;execute of user function1<br />
NoDoUserFunction3:</span></p>
<p><span style="font-family: courier new,courier,monospace;">rjmp ZeroDATA1Answer ;if that it was something unknown, then prepare zero answer</span></p></blockquote>
<p><strong>Step2:</strong></p>
<p>To get access to the Userfunction i had to manipulate the IgorPlug DLL. Because of my poor Delphi knowledge i &#8220;copy and paste&#8221; an other function and changed the function adress.</p>
<p><strong>Step3:</strong></p>
<p>Igor provides the declaration of his DLL for VB. To get them working with VB.NET i had to modify them and to add my UserFunction.</p>
<p><strong>Step4:</strong></p>
<p>Now i was able to use IgorPlug + my own Function from VB.NET! GREAT</p>
]]></content:encoded>
			<wfw:commentRss>http://tobiscorner.floery.net/projects/avr/misc-avr/igor-plug-usb/25/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
