<?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=4&amp;t=2319" />

<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>2008-03-13T18:05:07+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=4&amp;t=2319</id>
<entry>
<author><name><![CDATA[Gerry52]]></name></author>
<updated>2008-03-13T18:05:07+01:00</updated>
<published>2008-03-13T18:05:07+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14758#p14758</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14758#p14758"/>
<title type="html"><![CDATA[Input values on AD(x)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14758#p14758"><![CDATA[
I did see the electrical scheme in the manual assuming it was already integrated on the board. Clear case, it isn't. I used two 48K resitors (both measured 48K5), they do the job. Thanks again! <br /><br />Other inconsistant AD(x) readings I mentioned are caused by low battery voltage. At second tought I remembered that those NiMh packs (as well as NiCad) gain their full capacity after a few charge/discharge cycles. <br /><br />At this moment I play with the tilt sensor input, want RN to react on back/forward tilting when he's moving. Code snippets in some posts are great help.<br /><br />Gerry<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=934">Gerry52</a> — Thu Mar 13, 2008 6:05 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[i-Bot]]></name></author>
<updated>2008-03-07T22:29:11+01:00</updated>
<published>2008-03-07T22:29:11+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14649#p14649</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14649#p14649"/>
<title type="html"><![CDATA[Input values on AD(x)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14649#p14649"><![CDATA[
While you look to the posting of the code.<br /><br />The AD(x) command  reads the voltage on the ADx pins. The value returned is between 0 and 256 over the input range 0 to 5Volts.<br /><br />To measure the battery voltage which is greater than 5 Volts, you need to divide the battery voltage by two with a pair of resistors.<br /><br />The battery voltage is on the connectors down the side of the board which feed the servos. Battrey voltage is on the middle pin. You need a pair of resistors in series between the battery voltage and ground ( the pin towards the edge of the board. The two resistors should be of equal value ( between 22K to 47K ohms each)<br /><br />The point between the two resistors is at half the battery voltage and is fed to the AD6 connector (pin nearest center of the board). The middle pin of the AD connectors is not battery, it is regulated 5 Volts.<br /><br />Now the value read by AD(6) will be the 256 * (battery voltage/ (5Volts * 2(voltage divider)), which is what you want.<br /><br />Note when the battery voltage drops below about 5.5 volts, the reference in the processor starts to drop, since this is also driven by the battery, so values are no longer valid.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=159">i-Bot</a> — Fri Mar 07, 2008 10:29 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Gerry52]]></name></author>
<updated>2008-03-07T21:15:44+01:00</updated>
<published>2008-03-07T21:15:44+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14647#p14647</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14647#p14647"/>
<title type="html"><![CDATA[Input values on AD(x)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14647#p14647"><![CDATA[
Once again...<br /><br />Trying to get warnings on several voltage levels with this code. “robot_voltage” is called from MAIN by “GOSUB robot_voltage”<br /><br />robot_voltage:' [10 x Value / 256 = Voltage]<br />DIM v AS BYTE<br />DIM n AS BYTE<br /><br />A = AD(6)<br />IF A &gt; 148 AND A &lt;150&gt; 146 AND A &lt;= 148 THEN n = 2<br />IF A &lt;146&gt; 15, 148 --&gt; 13, 146 --&gt; 10. With this setting the led won’t blink at all. I tried other values as well, when I compare “A” with &lt;25&gt;   0 AND Rn &lt;10&gt; 10 AND Rn &lt;= 20 THEN MUSIC “B”<br /><br />RETURN<br /><br />Sometimes RN won’t respond at all by this setting. Changing 10 to 20 and 20 to 30 will help sometimes, but not in all cases. I’ve experienced that 40 and 50 sometimes also do the job. I know the sensor readings can shift a bit when the battery is exhausting, but I also noticed this behavior when the battery is fully charged. So there seemed to be no relation between the inconsistent reading and the battery voltage.<br /><br />From the tilt sensor I get the same inconsistent readings. <br /><br />For me it looks like there no pattern in this behavior. Maybe it has to do with interference by other signals but often it’s a knowledge issue. Can someone help with this?<br /><br />Gerry<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=934">Gerry52</a> — Fri Mar 07, 2008 9:15 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Gerry52]]></name></author>
<updated>2008-03-07T21:10:40+01:00</updated>
<published>2008-03-07T21:10:40+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14646#p14646</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14646#p14646"/>
<title type="html"><![CDATA[Input values on AD(x)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14646#p14646"><![CDATA[
The message seemed to be ok evrey time, the code is messed up everytime. In the &quot;post a reply&quot; box the code seemed to be ok, in the preview it's messed up. <br /><br />HELP!!!<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=934">Gerry52</a> — Fri Mar 07, 2008 9:10 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Gerry52]]></name></author>
<updated>2008-03-07T20:57:52+01:00</updated>
<published>2008-03-07T20:57:52+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14645#p14645</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14645#p14645"/>
<title type="html"><![CDATA[Input values on AD(x)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14645#p14645"><![CDATA[
Sorry, Guess I'm not be able to post my code the right way...<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=934">Gerry52</a> — Fri Mar 07, 2008 8:57 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Gerry52]]></name></author>
<updated>2008-03-07T20:54:38+01:00</updated>
<published>2008-03-07T20:54:38+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14644#p14644</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14644#p14644"/>
<title type="html"><![CDATA[Input values on AD(x)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14644#p14644"><![CDATA[
Trying to get warnings on several voltage levels with this code. “robot_voltage” is called from MAIN by “GOSUB robot_voltage”<br /><br />robot_voltage:' [10 x Value / 256 = Voltage]<br />DIM v AS BYTE<br />DIM n AS BYTE<br /><br />A = AD(6)<br />IF A &gt; 148 AND A &lt;150&gt; 146 AND A &lt;= 148 THEN n = 2<br />IF A &lt;146&gt; 15, 148 --&gt; 13, 146 --&gt; 10. With this setting the led won’t blink at all. I tried other values as well, when I compare “A” with &lt;25&gt;   0 AND Rn &lt;10&gt; 10 AND Rn &lt;= 20 THEN MUSIC “B”<br /><br />RETURN<br /><br />Sometimes RN won’t respond at all by this setting. Changing 10 to 20 and 20 to 30 will help sometimes, but not in all cases. I’ve experienced that 40 and 50 sometimes also do the job. I know the sensor readings can shift a bit when the battery is exhausting, but I also noticed this behavior when the battery is fully charged. So there seemed to be no relation between the inconsistent reading and the battery voltage.<br /><br />From the tilt sensor I get the same inconsistent readings. <br /><br />For me it looks like there no pattern in this behavior. Maybe it has to do with interference by other signals but often it’s a knowledge issue. Can someone help with this?<br /><br />Gerry<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=934">Gerry52</a> — Fri Mar 07, 2008 8:54 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Gerry52]]></name></author>
<updated>2008-03-07T20:50:47+01:00</updated>
<published>2008-03-07T20:50:47+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14643#p14643</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14643#p14643"/>
<title type="html"><![CDATA[Input values on AD(x)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14643#p14643"><![CDATA[
Sorry again,<br /><br />Guess I first have to find how to post a question you can read...<br /><br />Gerry<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=934">Gerry52</a> — Fri Mar 07, 2008 8:50 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Gerry52]]></name></author>
<updated>2008-03-07T20:48:17+01:00</updated>
<published>2008-03-07T20:48:17+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14642#p14642</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14642#p14642"/>
<title type="html"><![CDATA[Input values on AD(x)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14642#p14642"><![CDATA[
Trying to get warnings on several voltage levels with this code. “robot_voltage” is called from MAIN by “GOSUB robot_voltage”<br /><br />robot_voltage:' [10 x Value / 256 = Voltage]<br />DIM v AS BYTE<br />DIM n AS BYTE<br /><br />A = AD(6)<br />IF A &gt; 148 AND A &lt;150&gt; 146 AND A &lt;= 148 THEN n = 2<br />IF A &lt;146&gt; 15, 148 --&gt; 13, 146 --&gt; 10. With this setting the led won’t blink at all. I tried other values as well, when I compare “A” with &lt;25&gt;   0 AND Rn &lt;10&gt; 10 AND Rn &lt;= 20 THEN MUSIC “B”<br /><br />RETURN<br /><br />Sometimes RN won’t respond at all by this setting. Changing 10 to 20 and 20 to 30 will help sometimes, but not in all cases. I’ve experienced that 40 and 50 sometimes also do the job. I know the sensor readings can shift a bit when the battery is exhausting, but I also noticed this behavior when the battery is fully charged. So there seemed to be no relation between the inconsistent reading and the battery voltage.<br /><br />From the tilt sensor I get the same inconsistent readings. <br /><br />For me it looks like there no pattern in this behavior. Maybe it has to do with interference by other signals but often it’s a knowledge issue. Can someone help with this?<br />Gerry<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=934">Gerry52</a> — Fri Mar 07, 2008 8:48 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Gerry52]]></name></author>
<updated>2008-03-07T20:41:24+01:00</updated>
<published>2008-03-07T20:41:24+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14641#p14641</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14641#p14641"/>
<title type="html"><![CDATA[Input values on AD(x)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14641#p14641"><![CDATA[
Sorry,<br /><br />Copied the code from robobasic and pasted it in robosavvy but it all seemed to be messed up. Will try it again.<br /><br />On AD(6) are no wires connected, guess thats my battery voltage problem, should I connect the battery voltage to the AD(6) pins?<br /><br />Gerry<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=934">Gerry52</a> — Fri Mar 07, 2008 8:41 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[i-Bot]]></name></author>
<updated>2008-03-07T20:34:38+01:00</updated>
<published>2008-03-07T20:34:38+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14640#p14640</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14640#p14640"/>
<title type="html"><![CDATA[Input values on AD(x)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14640#p14640"><![CDATA[
It would be easier to help if you posted the actual code you have a problem with.<br /><br />Also what are the components you have wired to input AD6 ?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=159">i-Bot</a> — Fri Mar 07, 2008 8:34 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Gerry52]]></name></author>
<updated>2008-03-07T20:17:21+01:00</updated>
<published>2008-03-07T20:17:21+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14638#p14638</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14638#p14638"/>
<title type="html"><![CDATA[Input values on AD(x)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2319&amp;p=14638#p14638"><![CDATA[
Hi,<br /><br />Trying to get warnings on several voltage levels with this code. “robot_voltage” is called from MAIN by “GOSUB robot_voltage”<br /><br />robot_voltage:' [10 x Value / 256 = Voltage]<br />DIM v AS BYTE<br />DIM n AS BYTE<br /><br />A = AD(6)<br />IF A &gt; 148 AND A &lt;150&gt; 146 AND A &lt;148&gt; 144 AND A &lt;146&gt; 15, 148 --&gt; 13, 146 --&gt; 10. With this setting the led won’t blink at all. I tried other values as well, when I compare “A” with &lt;25&gt;   0 AND Rn &lt;10&gt; 10 AND Rn &lt;= 20 THEN MUSIC “B”<br /><br />RETURN<br /><br />Sometimes RN won’t respond at all by this setting. Changing 10 to 20 and 20 to 30 will help sometimes, but not in all cases. I’ve experienced that 40 and 50 sometimes also do the job. I know the sensor readings can shift a bit when the battery is exhausting or temperature, but I also noticed this behavior when the battery is fully charged. So there seemed to be no relation between the inconsistent readings and the battery voltage.<br /><br />From the tilt sensor I get the same inconsistent readings. <br /><br />For me it looks like there no pattern in this behavior. Maybe it has to do with interference by other signals but often it’s a knowledge issue. Need some help with this...<br /><br />Gerry<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=934">Gerry52</a> — Fri Mar 07, 2008 8:17 pm</p><hr />
]]></content>
</entry>
</feed>