<?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="http://forum.robosavvy.com/feed.php?f=17&amp;t=6884" />

<title>RoboSavvy Forum</title>
<subtitle>Robosavvy Forum: The largest online community of Humanoid Robot Builders</subtitle>
<link href="http://forum.robosavvy.com/index.php" />
<updated>2011-05-05T13:00:16+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=17&amp;t=6884</id>
<entry>
<author><name><![CDATA[roboard]]></name></author>
<updated>2011-05-05T13:00:16+01:00</updated>
<published>2011-05-05T13:00:16+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6884&amp;p=31093#p31093</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6884&amp;p=31093#p31093"/>
<title type="html"><![CDATA[Re: adc problem]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6884&amp;p=31093#p31093"><![CDATA[
<blockquote><div><cite>suv23 wrote:</cite><br />this is my sensor program..this program only can read value 1023..after the value have remove from textbox and read again, the same value will appear although the range of sensor to detect was change..<br /><br />...<br /></div></blockquote><br /><br />Hi,<br /><br />please change <br /><br />adc_data = adc_ReadChannel(ADC_USECHANNEL0, ADCMODE_RANGE_2VREF, ADCMODE_UNSIGNEDCODING) <br /><br />to <br /><br />adc_data = adc_ReadChannel(0, ADCMODE_RANGE_2VREF, ADCMODE_UNSIGNEDCODING) <br /><br /><img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":)" title="Smile" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1542">roboard</a> — Thu May 05, 2011 1:00 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[suv23]]></name></author>
<updated>2011-05-05T10:47:21+01:00</updated>
<published>2011-05-05T10:47:21+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6884&amp;p=31091#p31091</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6884&amp;p=31091#p31091"/>
<title type="html"><![CDATA[adc problem]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6884&amp;p=31091#p31091"><![CDATA[
this is my sensor program..this program only can read value 1023..after the value have remove from textbox and read again, the same value will appear although the range of sensor to detect was change..<br /><br />Imports RoBoIO_DotNet.RoBoIO ' import the RoBoIO .Net Warper<br />Public Class Form1<br />    Dim adc_data As Integer<br />    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click<br />        TextBox1.Text = &quot;&quot;<br />    End Sub<br /><br />    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />        If (spi_Init(SPICLK_21400KHZ) = False) Then ' init SPI lib for accessing the A/D converter<br />        End If<br />    End Sub<br /><br />    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />        adc_data = adc_ReadChannel(ADC_USECHANNEL0, ADCMODE_RANGE_2VREF, ADCMODE_UNSIGNEDCODING)<br />        TextBox1.Text = adc_data<br />    End Sub<br />End Class<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2592">suv23</a> — Thu May 05, 2011 10:47 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ets]]></name></author>
<updated>2010-12-30T02:42:28+01:00</updated>
<published>2010-12-30T02:42:28+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6884&amp;p=29551#p29551</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6884&amp;p=29551#p29551"/>
<title type="html"><![CDATA[ADC Problem]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6884&amp;p=29551#p29551"><![CDATA[
<blockquote><div><cite>josh wrote:</cite><br />hi, <br /><br />you find the code that is useful for RB-100.<br /><br />you could add the function roboio_SetRBVer(RB_110) before  the function spi_Initialize().<br /><br />And try it again.<br /></div></blockquote><br /><br />Already did. My code starts with roboio_SetRBVer(RB_110)<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2521">ets</a> — Thu Dec 30, 2010 2:42 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[josh]]></name></author>
<updated>2010-12-30T02:07:55+01:00</updated>
<published>2010-12-30T02:07:55+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6884&amp;p=29550#p29550</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6884&amp;p=29550#p29550"/>
<title type="html"><![CDATA[ADC Problem]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6884&amp;p=29550#p29550"><![CDATA[
hi, <br /><br />you find the code that is useful for RB-100.<br /><br />you could add the function roboio_SetRBVer(RB_110) before  the function spi_Initialize().<br /><br />And try it again.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2058">josh</a> — Thu Dec 30, 2010 2:07 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ets]]></name></author>
<updated>2010-12-29T22:24:03+01:00</updated>
<published>2010-12-29T22:24:03+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6884&amp;p=29542#p29542</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6884&amp;p=29542#p29542"/>
<title type="html"><![CDATA[ADC Problem]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6884&amp;p=29542#p29542"><![CDATA[
Hi !<br /><br />I just bougth the RB-110 and I have a hard time using the ADC. I tried to use the code that was given with the library and also the code I found in that thread : <!-- m --><a class="postlink" href="http://robosavvy.co.uk/forum/viewtopic.php?p=27654">http://robosavvy.co.uk/forum/viewtopic.php?p=27654</a><!-- m --><br /><br />The problem is that no matter what is connected (or not connected) to the pins of the adc, the output is 1023 (when unsigned) and -1 (when signed) (and it is 32767 for the second code). Sometimes, the port #7 output something different like -1.<br /><br />Does anyone know what could be wrong (bios settings, spi settings, etc) ? I read that it could be burned. If so, does anyone has a rapid alternative solution (a chip I could buy and plug and not that hard to use) ? <br /><br />Thanks !<br /><br />Ps: Os: Ubuntu 2.6.34.1-vortex86-sg<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2521">ets</a> — Wed Dec 29, 2010 10:24 pm</p><hr />
]]></content>
</entry>
</feed>