<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forums.obdev.at/app.php/feed/topic/3531" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2009-11-21T18:44:49+02:00</updated>

	<author><name><![CDATA[Objective Development Forums]]></name></author>
	<id>https://forums.obdev.at/app.php/feed/topic/3531</id>

		<entry>
		<author><name><![CDATA[maxi]]></name></author>
		<updated>2009-11-21T18:44:49+02:00</updated>

		<published>2009-11-21T18:44:49+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12083#p12083</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12083#p12083"/>
		<title type="html"><![CDATA[Re: problem with LEDControl example]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12083#p12083"><![CDATA[
<blockquote><div><cite>tombaugh wrote:</cite>Any thoughts on getting these names right in Ubuntu?</div></blockquote><br /><br />I suspect that it's more a libusb issue than an OS specific one.  Problem is that it's unconventional for two entirely different devices to have the same PID &amp; VID, I guess the proper answer would be to use a unique VID/PID for each V-USB device but then that might not always be practical.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2570">maxi</a> — Sat Nov 21, 2009 6:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tombaugh]]></name></author>
		<updated>2009-11-21T18:19:56+02:00</updated>

		<published>2009-11-21T18:19:56+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12082#p12082</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12082#p12082"/>
		<title type="html"><![CDATA[Re: problem with LEDControl example]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12082#p12082"><![CDATA[
<blockquote><div><cite>maxi wrote:</cite>Well, it could be that libusb is mistaking the LEDControl for your USBasp programmer.  I have experienced similar situations under Windows when I have had connected multiple V-USB devices, probably because they all share the same VID &amp; PID but I'm not entirely sure.  The problem is resolved under Windows by simply removing the device in 'Device Manager' and opting to delete the driver software.  A scan for hardware changes usually then identifies the device correctly. Not sure of the exact procedure for linux though.</div></blockquote><br /><br />I removed the code which checks the vendor and product names from the host software, and it works fine! Any thoughts on getting these names right in Ubuntu?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=3117">tombaugh</a> — Sat Nov 21, 2009 6:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[maxi]]></name></author>
		<updated>2009-11-21T17:16:46+02:00</updated>

		<published>2009-11-21T17:16:46+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12081#p12081</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12081#p12081"/>
		<title type="html"><![CDATA[Re: problem with LEDControl example]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12081#p12081"><![CDATA[
Well, it could be that libusb is mistaking the LEDControl for your USBasp programmer.  I have experienced similar situations under Windows when I have had connected multiple V-USB devices, probably because they all share the same VID &amp; PID but I'm not entirely sure.  The problem is resolved under Windows by simply removing the device in 'Device Manager' and opting to delete the driver software.  A scan for hardware changes usually then identifies the device correctly. Not sure of the exact procedure for linux though.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2570">maxi</a> — Sat Nov 21, 2009 5:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tombaugh]]></name></author>
		<updated>2009-11-20T21:26:07+02:00</updated>

		<published>2009-11-20T21:26:07+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12078#p12078</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12078#p12078"/>
		<title type="html"><![CDATA[Re: problem with LEDControl example]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12078#p12078"><![CDATA[
<blockquote><div><cite>maxi wrote:</cite>I still can't see where the problem is but here are a few suggestions you may or may not have already tried. <br /><br />1. I don't see the 100n cap anymore, I would recommend you include that as well as the 4u7 (10u should be fine btw)<br /><br />2. Test resistance beetween the 'A' end of the usb cable and the actual uC pins. Also test that D+ &amp; D- are not shorted.<br /><br />3. Try different values for the pull-up on D- (1K - 2K2)<br /><br />4. Try a different xtal if you have one, and/or try it with the calibrated internal RC method.<br /><br />5. Try a different uC if you have one.<br /><br />6. Try a different example project, maybe HID data.<br /><br /><br />I'm sure it'll just be something simple, best of luck!</div></blockquote><br /><br />Ok, I think we may be getting somewhere. I first tried 1, 2 (67.8 and 68.7 Ohm), 3 and 4. I then tried another atmega8 but that one appears to be broken because I couldn't program it. But then I tried another one which I thought was broken, because LEDs connected to PORTC were always very faint no matter which resistor I used. When I connect using that one, dmesg says<br /><br /><div class="codebox"><p>Code: </p><pre><code>&#91;34374.430024&#93; usb 5-2: new low speed USB device using ohci_hcd and address 118<br />&#91;34374.616128&#93; usb 5-2: configuration #1 chosen from 1 choice</code></pre></div><br /><br />lsusb gives me<br /><br /><div class="codebox"><p>Code: </p><pre><code>Bus 005 Device 118: ID 16c0:05dc VOTI USBasp AVR Programmer</code></pre></div><br /><br />although the programmer is not connected anymore. Of course the host software says <br /><br /><div class="codebox"><p>Code: </p><pre><code>Could not find USB device &quot;LEDControl&quot; with vid=0x16c0 pid=0x5dc</code></pre></div><br /><br />but at least it appears to be connected. What should I do next?<br /><br />Thanks a lot for the assistance!<br />Pieter<br /><br />edit: I tried it on my netbook as well, and there the device shows up as &quot;VOTI&quot; in the lsusb list.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=3117">tombaugh</a> — Fri Nov 20, 2009 9:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[maxi]]></name></author>
		<updated>2009-11-20T19:48:12+02:00</updated>

		<published>2009-11-20T19:48:12+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12076#p12076</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12076#p12076"/>
		<title type="html"><![CDATA[Re: problem with LEDControl example]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12076#p12076"><![CDATA[
I still can't see where the problem is but here are a few suggestions you may or may not have already tried. <br /><br />1. I don't see the 100n cap anymore, I would recommend you include that as well as the 4u7 (10u should be fine btw)<br /><br />2. Test resistance beetween the 'A' end of the usb cable and the actual uC pins. Also test that D+ &amp; D- are not shorted.<br /><br />3. Try different values for the pull-up on D- (1K - 2K2)<br /><br />4. Try a different xtal if you have one, and/or try it with the calibrated internal RC method.<br /><br />5. Try a different uC if you have one.<br /><br />6. Try a different example project, maybe HID data.<br /><br /><br />I'm sure it'll just be something simple, best of luck!<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2570">maxi</a> — Fri Nov 20, 2009 7:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tombaugh]]></name></author>
		<updated>2009-11-20T16:50:33+02:00</updated>

		<published>2009-11-20T16:50:33+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12072#p12072</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12072#p12072"/>
		<title type="html"><![CDATA[Re: problem with LEDControl example]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12072#p12072"><![CDATA[
<blockquote><div><cite>Saimon wrote:</cite>As i remember, mega8 use #reset pin  combined with another some port pin. May be use forget to pull-up reset or configure it wrong?<br />Best regards, Saimon!</div></blockquote><br /><br />There's a pull-up resistor on reset, you can see it behind the bunch of wires. I tried to just blink the led on this setup (no usb) and that worked fine...<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=3117">tombaugh</a> — Fri Nov 20, 2009 4:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2009-11-20T16:34:09+02:00</updated>

		<published>2009-11-20T16:34:09+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12071#p12071</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12071#p12071"/>
		<title type="html"><![CDATA[Re: problem with LEDControl example]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12071#p12071"><![CDATA[
As i remember, mega8 use #reset pin  combined with another some port pin. May be use forget to pull-up reset or configure it wrong?<br />Best regards, Saimon!<p>Statistics: Posted by Guest — Fri Nov 20, 2009 4:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tombaugh]]></name></author>
		<updated>2009-11-20T01:45:07+02:00</updated>

		<published>2009-11-20T01:45:07+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12065#p12065</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12065#p12065"/>
		<title type="html"><![CDATA[Re: problem with LEDControl example]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12065#p12065"><![CDATA[
<blockquote><div><cite>Grendel wrote:</cite>Try replacing the 47uF w/ a 4.7uF cap, remove the 2nd elca, and change the lfuses to 0x1f. I also would also suggest to put the diodes/resistors on the data lines as close to the MCU as possible and get rid of the long wires after the USB connector -- your flourescent lamps will wreck havoc w/ the signals..</div></blockquote><br /><br />I now put everything on one breadboard and changed the lfuse. The cap is still 10µF, but tomorrow I should have some 4.7µF caps. For the moment, this new setup doesn't work...<br /><br /><img src="http://www.pieterprovoost.nl/usb/usb5.jpg" class="postimage" alt="Image" /><br /><img src="http://www.pieterprovoost.nl/usb/usb6.jpg" class="postimage" alt="Image" /><br /><br />edit: I also changed the fuses to 0x9F and 0xC9 as detailed in the Makefile, no result.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=3117">tombaugh</a> — Fri Nov 20, 2009 1:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Grendel]]></name></author>
		<updated>2009-11-17T00:55:23+02:00</updated>

		<published>2009-11-17T00:55:23+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12011#p12011</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12011#p12011"/>
		<title type="html"><![CDATA[Re: problem with LEDControl example]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12011#p12011"><![CDATA[
Try replacing the 47uF w/ a 4.7uF cap, remove the 2nd elca, and change the lfuses to 0x1f. I also would also suggest to put the diodes/resistors on the data lines as close to the MCU as possible and get rid of the long wires after the USB connector -- your flourescent lamps will wreck havoc w/ the signals..<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=101">Grendel</a> — Tue Nov 17, 2009 12:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2009-11-16T15:30:05+02:00</updated>

		<published>2009-11-16T15:30:05+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12004#p12004</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12004#p12004"/>
		<title type="html"><![CDATA[Re: problem with LEDControl example]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3531&amp;p=12004#p12004"><![CDATA[
Could the length of the wiring and the fact that I'm using a breadboard be a problem? Too bad there aren't any V-USB kits available...<p>Statistics: Posted by Guest — Mon Nov 16, 2009 3:30 pm</p><hr />
]]></content>
	</entry>
	</feed>
