<?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=216" />

<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>2006-04-10T22:37:23+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=4&amp;t=216</id>
<entry>
<author><name><![CDATA[Anonymous]]></name></author>
<updated>2006-04-10T22:37:23+01:00</updated>
<published>2006-04-10T22:37:23+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=216&amp;p=1100#p1100</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=216&amp;p=1100#p1100"/>
<title type="html"><![CDATA[How to debug or monitor sensor values]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=216&amp;p=1100#p1100"><![CDATA[
I use a bluetooth module (bluesmirf) connected to RX, TX, but you might be able to hook up serial directly (I have not tried it), or use a MAX232 chip to leve-shift.<br /><br />The test code then looks like this (put in the begining of Main):<br /><br />' Read Max Ultrasonic sensor<br />US_Range = AD(2)<br /><br /><br />' DEBUG - test sensor:<br />TxOut = " "<br />ETX 9600, TxOut<br /><br />TxOut = "U"<br />ETX 9600, TxOut<br />TxOut = "S"<br />ETX 9600, TxOut<br />TxOut = "="<br />ETX 9600, TxOut<br /><br />PrintByteVal = US_Range<br />GOSUB PrintByte<br /><br /><br />... Normal processing continues here...<br /><br /><br /><br />===============================================<br />At the bottom of the file, I added this subroutine:<br /><br />===============================================<br />' Print 8 bit byte<br />' PrintByteVal passed in as value to print<br /><br />PrintByte:<br /><br />' Print Low Byte<br />Temp = PrintByteVal &gt;&gt; 4<br />Temp = Temp AND &amp;H0F<br />IF Temp &gt; 9 THEN<br />Temp = Temp + 55<br />ELSE<br />Temp = Temp + 48<br />ENDIF<br />ETX 9600, Temp<br /><br />Temp = PrintByteVal AND &amp;H0F<br />IF Temp &gt; 9 THEN<br />Temp = Temp + 55<br />ELSE<br />Temp = Temp + 48<br />ENDIF<br />ETX 9600, Temp<br /><br />RETURN<p>Statistics: Posted by Guest — Mon Apr 10, 2006 10:37 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Pev]]></name></author>
<updated>2006-04-08T23:48:18+01:00</updated>
<published>2006-04-08T23:48:18+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=216&amp;p=1032#p1032</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=216&amp;p=1032#p1032"/>
<title type="html"><![CDATA[Great Ultrasonic Ranger]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=216&amp;p=1032#p1032"><![CDATA[
<blockquote><div><cite>fungo wrote:</cite><br />This is very interesting! I have a question though. How does one debug the RN-1 software when it comes to such values. In order words can you explain to me how you can monitor what the sensor would be recording in terms of distance? Is there a way to monitor this off the PC?<br /></div></blockquote><br /><br />The LCD port is the way to go - if you have a serial LCD panel that can run at 4800 baud 8-n-1 then you're sorted. If not you can do as I do.<br /><br />Basically connect the LCD port to a TTL to RS232 converter then plug the converter output into a COM port on your PC. Using hyperterm or something similar set the connection to 4800 baud 8-n-1. Then in your code you'll need to call LCDINIT. That open the LCD port for output. You can then use the PRINT commands to print values to hyperterm. If you do PRINT 13,10 you get a carriage return/linefeed. Check out the Format command in the Robobasic manual too for printing number values.<br /><br />Pev<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=88">Pev</a> — Sat Apr 08, 2006 11:48 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Morbeious]]></name></author>
<updated>2006-04-08T23:01:15+01:00</updated>
<published>2006-04-08T23:01:15+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=216&amp;p=1030#p1030</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=216&amp;p=1030#p1030"/>
<title type="html"><![CDATA[Great Ultrasonic Ranger]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=216&amp;p=1030#p1030"><![CDATA[
not sure if you can montior it off the PC, But if you put a LCD on the RN-1 you can output the values to it.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=108">Morbeious</a> — Sat Apr 08, 2006 11:01 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Anonymous]]></name></author>
<updated>2006-04-08T22:08:13+01:00</updated>
<published>2006-04-08T22:08:13+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=216&amp;p=1028#p1028</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=216&amp;p=1028#p1028"/>
<title type="html"><![CDATA[Great Ultrasonic Ranger]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=216&amp;p=1028#p1028"><![CDATA[
This is very interesting! I have a question though. How does one debug the RN-1 software when it comes to such values. In order words can you explain to me how you can monitor what the sensor would be recording in terms of distance? Is there a way to monitor this off the PC?<p>Statistics: Posted by Guest — Sat Apr 08, 2006 10:08 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Morbeious]]></name></author>
<updated>2006-04-08T13:51:31+01:00</updated>
<published>2006-04-08T13:51:31+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=216&amp;p=1015#p1015</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=216&amp;p=1015#p1015"/>
<title type="html"><![CDATA[Great Ultrasonic Ranger]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=216&amp;p=1015#p1015"><![CDATA[
interesting can't wait to see the results/code, that would be mouted outside on the chest?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=108">Morbeious</a> — Sat Apr 08, 2006 1:51 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Anonymous]]></name></author>
<updated>2006-04-08T06:17:05+01:00</updated>
<published>2006-04-08T06:17:05+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=216&amp;p=1009#p1009</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=216&amp;p=1009#p1009"/>
<title type="html"><![CDATA[Great Ultrasonic Ranger]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=216&amp;p=1009#p1009"><![CDATA[
Hi gang,<br /><br />I think I found a great solution to object sensing. (along with various IR sensors, of course)<br /><br />For Ultrasonic Ranging, I have used just about every one that exists.<br />I found a new one that seems to work GREAT for RoboNova!<br /><br />It's called a Maxbotix EZ1, and sells for $25 at Sparkfun.<br /><!-- m --><a class="postlink" href="http://www.sparkfun.com/commerce/product_info.php?products_id=639">http://www.sparkfun.com/commerce/produc ... cts_id=639</a><!-- m --><br /><br />This ranger puts out an analog voltage corresponding to the range to nearest object.  It has a very linear response.  I simply plugged it into an A/D port and it worked!<br /><br /><br />I measured the range from 1" to 4 feet, and found a best fit algorythm that works well, and is very simple!  RangeInches = (value * 2) + 2<br /><br /><br />I plan to mount this on the chest of my RoboNova, there is even extra room where the metal is cut out.... I'll send pictures when done.<br /><br />Dave Shinsel<br />shinseljunk (at sign) verizon.net<p>Statistics: Posted by Guest — Sat Apr 08, 2006 6:17 am</p><hr />
]]></content>
</entry>
</feed>