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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2010-07-08T02:36:27+02:00</updated>

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

		<entry>
		<author><name><![CDATA[rdagger]]></name></author>
		<updated>2010-07-08T02:36:27+02:00</updated>

		<published>2010-07-08T02:36:27+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15105#p15105</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15105#p15105"/>
		<title type="html"><![CDATA[Re: 3 Bit Slider]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15105#p15105"><![CDATA[
I think it is just a windows HID driver issue.  They probably don't expect analog axis to use less than 8 bit resolution.  I'm running it at 5 bit now (logical 0-30) and it is close enough for my application.  Thanks.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=974">rdagger</a> — Thu Jul 08, 2010 2:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[frank26080115]]></name></author>
		<updated>2010-07-07T18:30:36+02:00</updated>

		<published>2010-07-07T18:30:36+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15098#p15098</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15098#p15098"/>
		<title type="html"><![CDATA[Re: 3 Bit Slider]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15098#p15098"><![CDATA[
You are right I think, button 1 should be the usage minimum.<br /><br />Now I have no idea what's wrong at all.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2426">frank26080115</a> — Wed Jul 07, 2010 6:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rdagger]]></name></author>
		<updated>2010-07-06T01:43:24+02:00</updated>

		<published>2010-07-06T01:43:24+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15049#p15049</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15049#p15049"/>
		<title type="html"><![CDATA[Re: 3 Bit Slider]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15049#p15049"><![CDATA[
<blockquote><div><cite>frank26080115 wrote:</cite>Shouldn't the usage minimum for the button be &quot;No Buttons Pressed&quot;?</div></blockquote><br />It's not on the HID Descriptor Tool joystick example.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=974">rdagger</a> — Tue Jul 06, 2010 1:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[frank26080115]]></name></author>
		<updated>2010-07-05T22:29:54+02:00</updated>

		<published>2010-07-05T22:29:54+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15048#p15048</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15048#p15048"/>
		<title type="html"><![CDATA[Re: 3 Bit Slider]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15048#p15048"><![CDATA[
Shouldn't the usage minimum for the button be &quot;No Buttons Pressed&quot;?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2426">frank26080115</a> — Mon Jul 05, 2010 10:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rdagger]]></name></author>
		<updated>2010-07-05T19:44:23+02:00</updated>

		<published>2010-07-05T19:44:23+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15047#p15047</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15047#p15047"/>
		<title type="html"><![CDATA[Re: 3 Bit Slider]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15047#p15047"><![CDATA[
I've tried many reports since my first post.  Here is my latest version (I switched from slider to throttle).<br /><div class="codebox"><p>Code: </p><pre><code>0x05 , 0x01    ' USAGE_PAGE (Generic Desktop)<br />0x09 , 0x05    ' USAGE (Gamepad)<br />0xA1 , 0x01    ' COLLECTION (Application)<br />0x05 , 0x02    '   USAGE_PAGE (Simulation Controls)<br />0x09 , 0xBB    '   USAGE (Throttle)<br />0x15 , 0x00    '     LOGICAL_MINIMUM (0)<br />0x25 , 0x07    '     LOGICAL_MAXIMUM (7)<br />0x35 , 0x00    '     PHYSICAL_MINIMUM (0)<br />0x45 , 0x07    '     PHYSICAL_MAXIMUM (7)<br />0x95 , 0x01    '     REPORT_COUNT (1)<br />0x75 , 0x03    '     REPORT_SIZE (3)<br />0x81 , 0x02    '     INPUT (Data,Var,Abs)<br />0x05 , 0x09    '   USAGE_PAGE (Button)<br />0x19 , 0x01    '   USAGE_MINIMUM (Button 1)<br />0x29 , 0x0D    '   USAGE_MAXIMUM (Button 13)<br />0x15 , 0x00    '   LOGICAL_MINIMUM (0)<br />0x25 , 0x01    '   LOGICAL_MAXIMUM (1)<br />0x95 , 0x0D    '   REPORT_COUNT (13)<br />0x75 , 0x01    '   REPORT_SIZE (1)<br />0x81 , 0x02    '   INPUT (Data,Var,Abs)<br />0xC0            ' END_COLLECTION</code></pre></div><br />I've found that increasing the logical range makes the results more linear.  Here's a chart showing 3,4 and 5 bit resolutions:<br /><img src="http://rototron.info/images/USB_Reso.png" class="postimage" alt="Image" /><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=974">rdagger</a> — Mon Jul 05, 2010 7:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[frank26080115]]></name></author>
		<updated>2010-07-05T18:24:20+02:00</updated>

		<published>2010-07-05T18:24:20+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15046#p15046</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15046#p15046"/>
		<title type="html"><![CDATA[Re: 3 Bit Slider]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15046#p15046"><![CDATA[
What does the entire report descriptor look like?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2426">frank26080115</a> — Mon Jul 05, 2010 6:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rdagger]]></name></author>
		<updated>2010-07-04T08:47:04+02:00</updated>

		<published>2010-07-04T08:47:04+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15019#p15019</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15019#p15019"/>
		<title type="html"><![CDATA[Re: 3 Bit Slider]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15019#p15019"><![CDATA[
It is a rotary switch with 8 positions and a 3 bit BCD output.<br />I'm using a freeware Joystick utility to test it (It shows a range of 0 to 65536 for all controls).  I also tested it with the Windows Game Controller utility.  I hope to use it for CNC.<br />The increments don't matter as long as they are uniform.  I tried switching the logical range to -127 to 127 but I'm still getting non-linear results.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=974">rdagger</a> — Sun Jul 04, 2010 8:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[frank26080115]]></name></author>
		<updated>2010-07-04T07:20:33+02:00</updated>

		<published>2010-07-04T07:20:33+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15018#p15018</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15018#p15018"/>
		<title type="html"><![CDATA[Re: 3 Bit Slider]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15018#p15018"><![CDATA[
I''m confused. What does this slider do? What software works with it? What are you using to get the readings?<br />Also, why increments of 8191? You seem to want 3 bit resolution, so 8 total positions, which sounds right, so you'd want increments of 1, right?<br /><br />Also try to make sure everything is a whole byte, even if you need only 3 bits, add 5 more useless padding bits to make it 8, or your can try making the 3 bits more significant and have range between 0 and 255 but in increments of 32<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2426">frank26080115</a> — Sun Jul 04, 2010 7:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rdagger]]></name></author>
		<updated>2010-07-04T02:29:09+02:00</updated>

		<published>2010-07-04T02:29:09+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15017#p15017</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15017#p15017"/>
		<title type="html"><![CDATA[3 Bit Slider]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4541&amp;p=15017#p15017"><![CDATA[
I'm trying to interface a slider with 8 positions.  Everything works great except the slider does not report in linear increments.  Windows reads the 8 positions as 0,8191,16383,24575,32767,32768,49151,65535.  The first 5 positions are OK at 8191 intervals.  Then 5 &amp; 6 are 1 apart and positions 6,7,8 are at 16384 intervals.  I've tried slider, wheel and dial and they all return the same results.<br />Here is my descriptor code:<br /><div class="codebox"><p>Code: </p><pre><code>0x09 , 0x36   //     USAGE (Slider)<br />0x15 , 0x00   //     LOGICAL_MINIMUM (0)<br />0x25 , 0x07   //     LOGICAL_MAXIMUM (7)<br />0x35 , 0x00   //     PHYSICAL_MINIMUM (0)<br />0x45 , 0x07   //     PHYSICAL_MAXIMUM (7)<br />0x95 , 0x01   //     REPORT_COUNT (1)<br />0x75 , 0x03   //     REPORT_SIZE (3)<br />0x81 , 0x02   //     INPUT (Data,Var,Abs)</code></pre></div><br /><br />How can I get the device to report the 8 detents at equal 8191 intervals?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=974">rdagger</a> — Sun Jul 04, 2010 2:29 am</p><hr />
]]></content>
	</entry>
	</feed>
