<?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/10003" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2018-06-18T13:57:32+02:00</updated>

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

		<entry>
		<author><name><![CDATA[venum]]></name></author>
		<updated>2018-06-18T13:57:32+02:00</updated>

		<published>2018-06-18T13:57:32+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=10003&amp;p=34330#p34330</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=10003&amp;p=34330#p34330"/>
		<title type="html"><![CDATA[Re: VUSB + Ardunio Problem]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=10003&amp;p=34330#p34330"><![CDATA[
Hi everyone,<br />I have the exact same problem as the OP. <br />I made 2 usb IR receivers to control my Gnu/Linux computer with a standard IR remote.<br /><br />The first one I made uses an attiny85 uC and I even wrote an instructable: <br /><!-- m --><a class="postlink" href="http://www.instructables.com/id/ATtiny85-IR-USB-Receiver/">http://www.instructables.com/id/ATtiny8 ... -Receiver/</a><!-- m --><br /><br />The second one I made uses an atmega328p uC since I needed extra gpio to control an IR led that I installed to turn of/on the TV.<br /><br />Both used to work pretty well for months, but then I started having random disconnections from both remotes (it could be after upgrading the operating system, but I am not sure about that).<br />Now it happens that the devices work well for a random amount of time, then they become not responsive and I need to pull out the device and plug it in again.<br /><br />lsusb before and after the device becomes not responsive shows up no difference at all.<br />dmesg or direct inspection of /var/log/syslog do not evidence an state change at all.<br /><br />So I'm having the same issues as the OP have. <br />My configuration has decoupling filter caps for the usb power lines (10uF and 0.1uF), 2 zener diodes (3.6V .05W) and the 68R resistors.<br />This is the schematics that I used for the attiny85 version:<br /><!-- m --><a class="postlink" href="https://cdn.instructables.com/FIK/5Z54/IYV9IWTR/FIK5Z54IYV9IWTR.LARGE.jpg?auto=webp&amp;width=792">https://cdn.instructables.com/FIK/5Z54/ ... &amp;width=792</a><!-- m --><br />The atmega328p is pretty much the same.<br /><br />This is the code for the attiny85 version:<br /><!-- m --><a class="postlink" href="https://github.com/venumz/ATtiny85-USB-IR-receiver/blob/master/attiny85_IR_keyboard_no_serial.ino">https://github.com/venumz/ATtiny85-USB- ... serial.ino</a><!-- m --><br /><br />This is the code for the atmega328p:<br /><!-- m --><a class="postlink" href="https://github.com/venumz/atmega-328p-IR-receiver/blob/master/atmega328-IR_keyboard.ino">https://github.com/venumz/atmega-328p-I ... yboard.ino</a><!-- m --><br /><br />It is like those devices fall in some kind of suspended mode, but I do not know how to get them up and running.<br /><br />I really hope that someone could give me a hand with this issue, this is a very interesting project in which I have invested a big amount of time and I see lots of uses for it.<br /><br />Thanks in advance.<br /><br />PS:  FuzzyWombatSoup, did you find any solution since you posted this thread? I'd appreciate so much your help.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=23709">venum</a> — Mon Jun 18, 2018 1:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FuzzyWombatSoup]]></name></author>
		<updated>2015-08-29T02:18:57+02:00</updated>

		<published>2015-08-29T02:18:57+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=10003&amp;p=30180#p30180</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=10003&amp;p=30180#p30180"/>
		<title type="html"><![CDATA[VUSB + Ardunio Problem]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=10003&amp;p=30180#p30180"><![CDATA[
Here's the useful part of my code:<br /><div class="codebox"><p>Code: </p><pre><code>#include &quot;usbdrv.h&quot;<br /><br />void setup() {<br />    TIMSK0 &amp;= !(1&lt;TOIE0);<br />    cli();<br />    usbDeviceDisconnect();  /* enforce re-enumeration, do this while interrupts are disabled! */    <br />    usbDeviceConnect();<br />    usbInit();<br />    sei();<br />}<br /><br />void loop() {<br />    usbPoll();<br />   <br />}<br />    <br />}</code></pre></div><br /><br />I'm able to send data back and forth fine for a few minutes, but after the device sits idle, it seems to become unresponsive to the OS(linux) and requires me to reset the Ardunio or unplug the USB cable. The device never shows a USB disconnect in dmesg when it's this unresponsive state and still shows up in lsusb. Also, when I lsusb -v the usb device in this bad state, i get an error when trying to read the vendor/product strings. These strings show correctly when it's responding.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=21542">FuzzyWombatSoup</a> — Sat Aug 29, 2015 2:18 am</p><hr />
]]></content>
	</entry>
	</feed>
