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

<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-09-05T08:02:31+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=294</id>
<entry>
<author><name><![CDATA[pepperm]]></name></author>
<updated>2006-09-05T08:02:31+01:00</updated>
<published>2006-09-05T08:02:31+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3530#p3530</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3530#p3530"/>
<title type="html"><![CDATA[Should I make the jump???]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3530#p3530"><![CDATA[
Also, re a new processor board. What about the AVR Butterfly. Mega 169, LCD, tones of I/O, very cheap at around £20<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=220">pepperm</a> — Tue Sep 05, 2006 8:02 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[pepperm]]></name></author>
<updated>2006-09-04T06:29:21+01:00</updated>
<published>2006-09-04T06:29:21+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3506#p3506</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3506#p3506"/>
<title type="html"><![CDATA[Should I make the jump???]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3506#p3506"><![CDATA[
The serial comms circuitry is the same as that used on the AX-12 (if my tracing is accurate) which in turn is functionally the same as the one used on the CM-5. The CM-5 &amp; AX-12s don't use a 7404 inverter but drive both enable lines directly from the processor. The 74126 is not an inverter it is a non inverting buffer. I'm not sure why they have done it this way, maybe because they use the other 2 buffer gates on the CM-5 to buffer and select the RS232 or Zigbee connections or so that the data is not inverted when it hits the processors.<br /><br />The code in the example C code should explain the the use of the RS485 port and its enable lines, because although the code is for the CM-5 it would be very similar for the AX-12 and indeed AX-S1.<br /><br />So to send data you need to set PD7 high. You could also set PD6 low but it wouldn't matter if it was high.<br /><br />To receive data PD7 must be set low and PD6 high. Data comes in on Rxd and goes out on Txd. Exactly the same as on the AX-12 (unless my tracing went wrong again some where)<br /><br />We could use an invertor in the select line but then we would probably need more chips on the board as we would still need a device that had enable inputs. We could use the inverting version of the 74126 but then the data would be inverted in the Mega8.<br /><br />Do you think you can write code for this circuit?<br /><br />Mark<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=220">pepperm</a> — Mon Sep 04, 2006 6:29 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[KurtE]]></name></author>
<updated>2006-09-04T03:07:41+01:00</updated>
<published>2006-09-04T03:07:41+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3504#p3504</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3504#p3504"/>
<title type="html"><![CDATA[Should I make the jump???]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3504#p3504"><![CDATA[
<blockquote><div><cite>limor wrote:</cite><br />please excuse a software guy's humble ignorance.<br /><br />I dont understand the serial communication wireing. To send a bit to the coms line, the MCU has to put PD0 on 0 and/or PD6 on 1? and similarly when the imcoming signal is high (or low) what happens to PD7 and PD1?<br /><span style="color: green"> <span style="font-style: italic">(Correction: sending data involves PD0 and PD6 / receiving involves PD7 and PD1.. but my question remains)</span> </span><br /> <img src="http://forum.robosavvy.com/images/smilies/icon_redface.gif" alt=":oops:" title="Embarassed" /><br /></div></blockquote><br /><br />I believe that he is using two I/O pins PD6 and PD7 combined to form the direction port as shown in the CM-5 internal circuit (HALF DUPLEX UART).  Their diagram uses an 74HC04 inverter to make sure that only TXD or RXD is active, but not both.  In Mark's circuit the controlling software would have to make sure that only one of these two pins is set high at any point.<br /><br />I assume that you will want to use the builtin USART support that is in the ATMEGA8 chip.  So your code may look something like:  (Note this code is sortof based off of the C++ classes that are defined in the Seattle Robotics Society Workshop robot level 2 examples.  These are up at:<br /> <a href="http://www.seattlerobotics.org/WorkshopRobot/level2/index.php" class="postlink">http://www.seattlerobotics.org/WorkshopRobot/level2/index.php</a><br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>OUT   RXEnable &#40;'D', 6&#41;; <br />OUT   TXEnable &#40;'D', 7, false&#41;;<br />COMM   comm      &#40;'D', 0,<br />                  'D', 1&#41;;<br /> <br />...<br />// To output a packet you might try something like<br />RXEnable.Low&#40;&#41;;<br />TXEnable.High&#40;&#41;;<br /><br />// For each byte in the packet you might call something like:<br />comm.TxCh&#40;ch&#41;; // waits for bit_is_clear&#40;UCSRA, UDRE&#41;<br />                         // before setting UDR= ch<br /><br />...<br />// To receive information you might do something like:<br />TxEnable.Low&#40;&#41;:<br />RxEnable.High&#40;&#41;;<br /><br />// Set up a loop to read in a packet with all of the appropriate<br />// error checking...<br />while&#40;!comm.IsCharWaiting&#40;&#41;&#41; ; // checks RXC bit in UCSRA<br />ch = comm.InKey&#40;&#41;;                 // gets byte from UDR register<br /></code></dd></dl><br /><br />Note in the example code above you could replace the polling for input character available or transmit complete with interrupts... <br /><br />Please forgive me if I misunderstood the schematic as I am also a software guy!<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=136">KurtE</a> — Mon Sep 04, 2006 3:07 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[limor]]></name></author>
<updated>2006-09-03T21:43:29+01:00</updated>
<published>2006-09-03T21:43:29+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3503#p3503</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3503#p3503"/>
<title type="html"><![CDATA[Should I make the jump???]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3503#p3503"><![CDATA[
please excuse a software guy's humble ignorance.<br /><br />I dont understand the serial communication wireing. To send a bit to the coms line, the MCU has to put PD0 on 0 and/or PD6 on 1? and similarly when the imcoming signal is high (or low) what happens to PD7 and PD1?<br /><span style="color: green"> <span style="font-style: italic">(Correction: sending data involves PD0 and PD6 / receiving involves PD7 and PD1.. but my question remains)</span> </span><br /> <img src="http://forum.robosavvy.com/images/smilies/icon_redface.gif" alt=":oops:" title="Embarassed" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2">limor</a> — Sun Sep 03, 2006 9:43 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[pepperm]]></name></author>
<updated>2006-09-03T21:20:35+01:00</updated>
<published>2006-09-03T21:20:35+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3502#p3502</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3502#p3502"/>
<title type="html"><![CDATA[Should I make the jump???]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3502#p3502"><![CDATA[
And this is the PCB.<br /><br /><img src="http://robosavvy.com/Builders/pepperm/BioloidIOV1pcb.png" alt="Image" /><br /><br />I'll make one as soon as I am back from my trip.<br /><br />So now we need some code...............<br /><br />Mark<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=220">pepperm</a> — Sun Sep 03, 2006 9:20 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[pepperm]]></name></author>
<updated>2006-09-03T20:03:46+01:00</updated>
<published>2006-09-03T20:03:46+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3500#p3500</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3500#p3500"/>
<title type="html"><![CDATA[Should I make the jump???]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3500#p3500"><![CDATA[
How about this as a starting point?<br /><br /><img src="http://robosavvy.com/Builders/pepperm/BioloidIOV1.png" alt="Image" /><br /><br />I'll work on a PCB for it, I'm using the mega8 PDIP version at the moment because that is all that I have in my draw. I have some free 74HC126's on the way from Texas Instruments, and a local Atmel distributor may send me some SMD samples. I have asked.<br /><br />Once we have some working code we can work on a better board, perhaps with different IO. I think this will work as a good development board though.<br /><br />Mark<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=220">pepperm</a> — Sun Sep 03, 2006 8:03 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[pepperm]]></name></author>
<updated>2006-09-03T18:34:30+01:00</updated>
<published>2006-09-03T18:34:30+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3494#p3494</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3494#p3494"/>
<title type="html"><![CDATA[Should I make the jump???]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3494#p3494"><![CDATA[
Limor<br /><br />From a programmers perspective, which of the Mega8's I/O would you like to bring out on a connector, if you had any 8 pins to choose from?<br /><br />How about all Port C pins (6 pins) and PB1 and 2. PD0, 1, 6 and 7 are used for the serial comms and PD2 for an led (as on the AX12). PB3, 4, 5 and RESET are used for the programming port.<br /><br />Mark<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=220">pepperm</a> — Sun Sep 03, 2006 6:34 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[pepperm]]></name></author>
<updated>2006-09-03T13:09:47+01:00</updated>
<published>2006-09-03T13:09:47+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3492#p3492</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3492#p3492"/>
<title type="html"><![CDATA[Should I make the jump???]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3492#p3492"><![CDATA[
Nope, not familiar with those boards but the AX-12s use the mega8 so it should do the job, it does in the AX-12 and AX-S1s.<br /><br />It has A/Ds and Uarts.<br /><br />Mark<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=220">pepperm</a> — Sun Sep 03, 2006 1:09 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[limor]]></name></author>
<updated>2006-09-03T11:51:30+01:00</updated>
<published>2006-09-03T11:51:30+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3491#p3491</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3491#p3491"/>
<title type="html"><![CDATA[Should I make the jump???]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3491#p3491"><![CDATA[
wow! that's hardcore moonshine PCB making..<br /><br />are you familiar with these <a href="http://www.olimex.com/dev/pricelist.html" class="postlink">Olimax boards</a> that DanAlbert mentioned in the other post?<br /><br />Could one of these serve as our Bioloid sensor board?<br />We need is a processor that has some A/Ds and a decent internal clock that can do UART at 1mbps. probably 16mhz is needed.<br />what about powering the board with the high voltage that is found on the Bioloid bus?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2">limor</a> — Sun Sep 03, 2006 11:51 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[pepperm]]></name></author>
<updated>2006-09-03T11:23:36+01:00</updated>
<published>2006-09-03T11:23:36+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3489#p3489</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3489#p3489"/>
<title type="html"><![CDATA[Should I make the jump???]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3489#p3489"><![CDATA[
Yep, I make single sided PCBs at home, in my bath! You can have a look at some of my work for robot wars (a few years ago now) here:<br /><br /><a href="http://www.askt47.dsl.pipex.com/Robot_WarsStag/electronics.htm" class="postlink">http://www.askt47.dsl.pipex.com/Robot_WarsStag/electronics.htm</a><br /><br />I realise there are PDIP versions of the Mega8 but I can also make SMD versions. I will see what I have in my components draw. I am currently trying to reverse engineer the AX-12+ PCB so that the board designed will be in some way compatible Mega8 port wise. I don't suppose you have any of the code that runs in the AX-12s do you?<br /><br />Of course, we could just use AX-12+ servo boards, if there are spares available.<br /><br />It may take me a week to come up with a first stab because unfortunately, I will be away from home this week.<br /><br />Mark<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=220">pepperm</a> — Sun Sep 03, 2006 11:23 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[limor]]></name></author>
<updated>2006-09-03T09:58:09+01:00</updated>
<published>2006-09-03T09:58:09+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3488#p3488</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3488#p3488"/>
<title type="html"><![CDATA[Should I make the jump???]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3488#p3488"><![CDATA[
Great!<br />Do you make at home the single side board?<br />BTW: Atmega8 also comes in PDIP package which (doesnt need SMD work).<br /><br />I've ordered the Robostix. will start a separate thread about it..<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2">limor</a> — Sun Sep 03, 2006 9:58 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[pepperm]]></name></author>
<updated>2006-09-03T08:29:22+01:00</updated>
<published>2006-09-03T08:29:22+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3487#p3487</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3487#p3487"/>
<title type="html"><![CDATA[Should I make the jump???]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3487#p3487"><![CDATA[
<blockquote><div><cite>limor wrote:</cite><br />If you design the board I will write the code and i'm sure Inaki and others will help aswell once we get started. Do you know of companies that can not only make the PCB in quantities of 2-5, but also procure the parts and do the SMD soldering ?<br /></div></blockquote><br /><br />I'll start comping up with something simple first then. Mega 8 based with some I/O taken to a connector, single sided PCB so I can make it at home, SMD. This way we can develop the comms code and begin to work out how to present parameters to the CM-5.<br /><br />Mark<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=220">pepperm</a> — Sun Sep 03, 2006 8:29 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[limor]]></name></author>
<updated>2006-09-02T15:14:47+01:00</updated>
<published>2006-09-02T15:14:47+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3482#p3482</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3482#p3482"/>
<title type="html"><![CDATA[Should I make the jump???]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3482#p3482"><![CDATA[
I just noticed the Robostix product from Gumstix.<br />It is basically a stand-alone Atmega128 board with lots of pinouts.<br />Can't beat $50.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2">limor</a> — Sat Sep 02, 2006 3:14 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[limor]]></name></author>
<updated>2006-09-02T14:19:12+01:00</updated>
<published>2006-09-02T14:19:12+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3481#p3481</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3481#p3481"/>
<title type="html"><![CDATA[Should I make the jump???]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3481#p3481"><![CDATA[
<blockquote><div><cite>pepperm wrote:</cite><br />I can design hardware but the problem for me is software.<br /></div></blockquote><br />If you design the board I will write the code and i'm sure Inaki and others will help aswell once we get started. Do you know of companies that can not only make the PCB in quantities of 2-5, but also procure the parts and do the SMD soldering ?<br /><br /><blockquote><div><cite>inaki wrote:</cite><br />I think any replacing board should be also compatible with the existing board. It should support BCP at least.<br /></div></blockquote><br />We could have an Atmega128 on this sensor board instead of a smaller Atmel (<a href="http://www.digikey.com/scripts/DkSearch/dksus.dll?Detail?Ref=20620&amp;Row=333956&amp;Site=US" class="postlink">$15</a> in digikey). We'll just have to write a boot-loader that mimics the one on the CM5 (in theory we could copy the protected boot-loader code from the CM5 to the new board's Atmega128 but it means somehow tapping into the chip's SPI legs.. <br /><br />Regarding The advantage of having the Gumstix processing power onboard the robot is that we'll be able to run dynamic closed-loop control algorithms and acheive movement like Qurio, Assimo and Aibo. Running and skateboarding can be acheived. And another important aspect is that running Linux will be welcome by many new programmers.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2">limor</a> — Sat Sep 02, 2006 2:19 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[inaki]]></name></author>
<updated>2006-09-02T12:58:05+01:00</updated>
<published>2006-09-02T12:58:05+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3480#p3480</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3480#p3480"/>
<title type="html"><![CDATA[Should I make the jump???]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=294&amp;p=3480#p3480"><![CDATA[
I think any replacing board should be also compatible with the existing board.  It should support BCP at least. <br /><br />I wanted the source code precisely because I want to know some details about the BCP interpreter in order to improve my tokenizer. <br /><br />Pepperm, I can help you in the side software if you want. <br /><br />I think I would start with a sensor module using the serial interface already used in the Bioloid kit.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=8">inaki</a> — Sat Sep 02, 2006 12:58 pm</p><hr />
]]></content>
</entry>
</feed>