<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for modelrail.otenko</title>
	<atom:link href="http://modelrail.otenko.com/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://modelrail.otenko.com</link>
	<description>trains....</description>
	<lastBuildDate>Tue, 01 May 2012 01:21:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>Comment on OpenTTD on Dreamcast by stevenh</title>
		<link>http://modelrail.otenko.com/dreamcast-programming/comment-page-1#comment-465</link>
		<dc:creator>stevenh</dc:creator>
		<pubDate>Tue, 01 May 2012 01:21:07 +0000</pubDate>
		<guid isPermaLink="false">http://modelrail.otenko.com/?page_id=179#comment-465</guid>
		<description>Thanks for the offer, but I&#039;ll pass... There&#039;s enough information in this post and on the linked tt-forums.net thread if you&#039;re keen.

Good luck!</description>
		<content:encoded><![CDATA[<p>Thanks for the offer, but I&#8217;ll pass&#8230; There&#8217;s enough information in this post and on the linked tt-forums.net thread if you&#8217;re keen.</p>
<p>Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on OpenTTD on Dreamcast by VasiliyRS</title>
		<link>http://modelrail.otenko.com/dreamcast-programming/comment-page-1#comment-462</link>
		<dc:creator>VasiliyRS</dc:creator>
		<pubDate>Thu, 26 Apr 2012 19:26:31 +0000</pubDate>
		<guid isPermaLink="false">http://modelrail.otenko.com/?page_id=179#comment-462</guid>
		<description>Hello, what about updated to latest version port ?</description>
		<content:encoded><![CDATA[<p>Hello, what about updated to latest version port ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Arduino + Controller Area Network (CAN) by Alex</title>
		<link>http://modelrail.otenko.com/arduino/arduino-controller-area-network-can/comment-page-1#comment-461</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 26 Apr 2012 07:59:46 +0000</pubDate>
		<guid isPermaLink="false">http://modelrail.otenko.com/?p=2625#comment-461</guid>
		<description>Hi Steven.
Yes it&#039;s the LCD on the RX on the lines between the MCP2515 and MCP2551 that&#039;s flashing.
I am using your code to listen and not added anything atm untill I an reading the can.
Yes using Arduino UNO. Started a canbus topic on the Arduino forums. In Networking protocols and devices. Topic canbus a82c250.
Thanks for sorting will give it another session tonight.

Regards Alex</description>
		<content:encoded><![CDATA[<p>Hi Steven.<br />
Yes it&#8217;s the LCD on the RX on the lines between the MCP2515 and MCP2551 that&#8217;s flashing.<br />
I am using your code to listen and not added anything atm untill I an reading the can.<br />
Yes using Arduino UNO. Started a canbus topic on the Arduino forums. In Networking protocols and devices. Topic canbus a82c250.<br />
Thanks for sorting will give it another session tonight.</p>
<p>Regards Alex</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Arduino + Controller Area Network (CAN) by stevenh</title>
		<link>http://modelrail.otenko.com/arduino/arduino-controller-area-network-can/comment-page-1#comment-459</link>
		<dc:creator>stevenh</dc:creator>
		<pubDate>Wed, 25 Apr 2012 23:32:54 +0000</pubDate>
		<guid isPermaLink="false">http://modelrail.otenko.com/?p=2625#comment-459</guid>
		<description>Alex,

Just to confirm, the Rx LED is on either the RX0BF or RX1BF pin? If it&#039;s on the RX/TX lines between the MCP2515 and 2551 then that means the data is coming off the bus, but the controller isn&#039;t reading it correctly.

By &quot;how quickly&quot; you&#039;re trying to read the packets: if the loop in your code is too slow then there may be other packets transmitting across the network that your code is unable to read as your buffers are full. But if your buffer LEDs aren&#039;t coming on, then it would mean that your MCP2515 isn&#039;t actually receiving any messages off the CAN.

By &quot;clearing values&quot;: the frame buffer array that you are reading the data in to should be zero&#039;d after the read to confirm that you are actually then reading in a new set of data.

Are you setting any masks or filters?
What does your init code look like? Your read/loop code? Are you using an Arduino?

Steven.</description>
		<content:encoded><![CDATA[<p>Alex,</p>
<p>Just to confirm, the Rx LED is on either the RX0BF or RX1BF pin? If it&#8217;s on the RX/TX lines between the MCP2515 and 2551 then that means the data is coming off the bus, but the controller isn&#8217;t reading it correctly.</p>
<p>By &#8220;how quickly&#8221; you&#8217;re trying to read the packets: if the loop in your code is too slow then there may be other packets transmitting across the network that your code is unable to read as your buffers are full. But if your buffer LEDs aren&#8217;t coming on, then it would mean that your MCP2515 isn&#8217;t actually receiving any messages off the CAN.</p>
<p>By &#8220;clearing values&#8221;: the frame buffer array that you are reading the data in to should be zero&#8217;d after the read to confirm that you are actually then reading in a new set of data.</p>
<p>Are you setting any masks or filters?<br />
What does your init code look like? Your read/loop code? Are you using an Arduino?</p>
<p>Steven.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Arduino + Controller Area Network (CAN) by Alex</title>
		<link>http://modelrail.otenko.com/arduino/arduino-controller-area-network-can/comment-page-1#comment-458</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Wed, 25 Apr 2012 16:11:51 +0000</pubDate>
		<guid isPermaLink="false">http://modelrail.otenko.com/?p=2625#comment-458</guid>
		<description>Hi
Having problem posting but here goes again.
Yes I am its a ROV with 2 nodes (topside and bottomside)
I have changed bits in the code for my bus speed which is 138.24
for this speed I am using a 11.0592 MHz crystal this zero error.
I have also changed the bit timing registers to CNF1 0x01    CNF2 0x0BA    CNF3 0x07
Have tried all the modes. but the listen mode is main usage.
The question &quot;How quickly are you trying to read the packets &quot; Not sure what you mean by this ??
The question &quot;are you clearing the values read afterwards?&quot; is this not done in the codeing ??
And yes I have LED on all.Only the Rx flashes
Regards Alex</description>
		<content:encoded><![CDATA[<p>Hi<br />
Having problem posting but here goes again.<br />
Yes I am its a ROV with 2 nodes (topside and bottomside)<br />
I have changed bits in the code for my bus speed which is 138.24<br />
for this speed I am using a 11.0592 MHz crystal this zero error.<br />
I have also changed the bit timing registers to CNF1 0&#215;01    CNF2 0x0BA    CNF3 0&#215;07<br />
Have tried all the modes. but the listen mode is main usage.<br />
The question &#8220;How quickly are you trying to read the packets &#8221; Not sure what you mean by this ??<br />
The question &#8220;are you clearing the values read afterwards?&#8221; is this not done in the codeing ??<br />
And yes I have LED on all.Only the Rx flashes<br />
Regards Alex</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Arduino + Controller Area Network (CAN) by stevenh</title>
		<link>http://modelrail.otenko.com/arduino/arduino-controller-area-network-can/comment-page-1#comment-454</link>
		<dc:creator>stevenh</dc:creator>
		<pubDate>Wed, 25 Apr 2012 00:02:14 +0000</pubDate>
		<guid isPermaLink="false">http://modelrail.otenko.com/?p=2625#comment-454</guid>
		<description>Alex,

Are you reading another CAN network? Or do you have your own CAN setup? Ensure you have the correct timing for the network you are listening to.
What mode do you have your controller in? What speed? How quickly are you trying to read the packets and are you clearing the values read afterwards? Do you have LEDs on the TX/RX on the CAN side of the network? (Put LEDs on the RB0 and RB1 as per above)

Steven.</description>
		<content:encoded><![CDATA[<p>Alex,</p>
<p>Are you reading another CAN network? Or do you have your own CAN setup? Ensure you have the correct timing for the network you are listening to.<br />
What mode do you have your controller in? What speed? How quickly are you trying to read the packets and are you clearing the values read afterwards? Do you have LEDs on the TX/RX on the CAN side of the network? (Put LEDs on the RB0 and RB1 as per above)</p>
<p>Steven.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Arduino + Controller Area Network (CAN) by Alex</title>
		<link>http://modelrail.otenko.com/arduino/arduino-controller-area-network-can/comment-page-1#comment-453</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 24 Apr 2012 14:21:29 +0000</pubDate>
		<guid isPermaLink="false">http://modelrail.otenko.com/?p=2625#comment-453</guid>
		<description>Hi
I cannot get mine to read the data.
It is reading the can but the data is not changing. Source is constantly changing.
Any suggestions.
Antony</description>
		<content:encoded><![CDATA[<p>Hi<br />
I cannot get mine to read the data.<br />
It is reading the can but the data is not changing. Source is constantly changing.<br />
Any suggestions.<br />
Antony</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Multiplexing &#8216;Photodetectors&#8217; to detect train occupancy. by stevenh</title>
		<link>http://modelrail.otenko.com/arduino/multiplexing-photodetectors-to-detect-train-occupancy/comment-page-1#comment-439</link>
		<dc:creator>stevenh</dc:creator>
		<pubDate>Mon, 09 Apr 2012 05:20:53 +0000</pubDate>
		<guid isPermaLink="false">http://modelrail.otenko.com/?p=769#comment-439</guid>
		<description>If you just want to use the Arduino as a throttle then look here:
http://modelrail.otenko.com/arduino/controlling-your-trains-with-an-arduino</description>
		<content:encoded><![CDATA[<p>If you just want to use the Arduino as a throttle then look here:<br />
<a href="http://modelrail.otenko.com/arduino/controlling-your-trains-with-an-arduino" >http://modelrail.otenko.com/arduino/controlling-your-trains-with-an-arduino</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Multiplexing &#8216;Photodetectors&#8217; to detect train occupancy. by Barry</title>
		<link>http://modelrail.otenko.com/arduino/multiplexing-photodetectors-to-detect-train-occupancy/comment-page-1#comment-438</link>
		<dc:creator>Barry</dc:creator>
		<pubDate>Mon, 09 Apr 2012 03:34:20 +0000</pubDate>
		<guid isPermaLink="false">http://modelrail.otenko.com/?p=769#comment-438</guid>
		<description>Hi good stuff, have you thought about doing speed control of the trains , i have an old ardunio that I used to use for photography, but i can&#039;t programme :-(

Barry</description>
		<content:encoded><![CDATA[<p>Hi good stuff, have you thought about doing speed control of the trains , i have an old ardunio that I used to use for photography, but i can&#8217;t programme <img src='http://modelrail.otenko.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>Barry</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Arduino + Controller Area Network (CAN) by stevenh</title>
		<link>http://modelrail.otenko.com/arduino/arduino-controller-area-network-can/comment-page-1#comment-429</link>
		<dc:creator>stevenh</dc:creator>
		<pubDate>Sun, 25 Mar 2012 23:48:34 +0000</pubDate>
		<guid isPermaLink="false">http://modelrail.otenko.com/?p=2625#comment-429</guid>
		<description>Randy,

Have you got LEDs on the buffer pins and on the TX/RX lines between the MCP2515 and MCP2551 to see what activity is happening?
Are you just tapping into the target CAN bus at a random location to see the data? Do you need to check where the terminators are on the line?
Have you got the TX/RX wires around the right way for the bus you are attaching to?
As long as your node is in Listen mode, then all should work... I&#039;ve not actually attempted to plug onto a network, but I do have three nodes and have confirmed that the third can be in Listen mode and that it will watch packets flying around.

Since you&#039;ve confirmed packet functionality in loopback mode, I&#039;d imagine that your wiring to the MCP2515 is correct.

I can only guess that your baud rate for the CAN bus you&#039;re connecting to could be wrong? I know that I had mismatched nodes previously and they don&#039;t communicate at all. Note that if your crystal on your MCP2515 doesn&#039;t match the crystals used on the network you are connecting to then you will need to do some maths :) The baud rate you pass during initialisation is calculated off the base crystal and must be a 100% match to the rest of the network. Can you confirm the speed of the target network?

I&#039;ll re-download the code from above and confirm that changes I have made &#039;offline&#039; and not compiled are, in fact, correct.</description>
		<content:encoded><![CDATA[<p>Randy,</p>
<p>Have you got LEDs on the buffer pins and on the TX/RX lines between the MCP2515 and MCP2551 to see what activity is happening?<br />
Are you just tapping into the target CAN bus at a random location to see the data? Do you need to check where the terminators are on the line?<br />
Have you got the TX/RX wires around the right way for the bus you are attaching to?<br />
As long as your node is in Listen mode, then all should work&#8230; I&#8217;ve not actually attempted to plug onto a network, but I do have three nodes and have confirmed that the third can be in Listen mode and that it will watch packets flying around.</p>
<p>Since you&#8217;ve confirmed packet functionality in loopback mode, I&#8217;d imagine that your wiring to the MCP2515 is correct.</p>
<p>I can only guess that your baud rate for the CAN bus you&#8217;re connecting to could be wrong? I know that I had mismatched nodes previously and they don&#8217;t communicate at all. Note that if your crystal on your MCP2515 doesn&#8217;t match the crystals used on the network you are connecting to then you will need to do some maths <img src='http://modelrail.otenko.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  The baud rate you pass during initialisation is calculated off the base crystal and must be a 100% match to the rest of the network. Can you confirm the speed of the target network?</p>
<p>I&#8217;ll re-download the code from above and confirm that changes I have made &#8216;offline&#8217; and not compiled are, in fact, correct.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Arduino + Thermal Printers (Sparkfun, IBM 4160-TF6) by Pete</title>
		<link>http://modelrail.otenko.com/arduino/arduino-thermal-printers-sparkfun-ibm-4160-tf6/comment-page-1#comment-426</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Fri, 23 Mar 2012 05:55:49 +0000</pubDate>
		<guid isPermaLink="false">http://modelrail.otenko.com/?p=2597#comment-426</guid>
		<description>Hey Steven,

Thanks for your help!  I will take a look.</description>
		<content:encoded><![CDATA[<p>Hey Steven,</p>
<p>Thanks for your help!  I will take a look.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Arduino + Controller Area Network (CAN) by RandyH</title>
		<link>http://modelrail.otenko.com/arduino/arduino-controller-area-network-can/comment-page-1#comment-425</link>
		<dc:creator>RandyH</dc:creator>
		<pubDate>Fri, 23 Mar 2012 02:09:45 +0000</pubDate>
		<guid isPermaLink="false">http://modelrail.otenko.com/?p=2625#comment-425</guid>
		<description>Hi, 
Awesome post really helped explain some areas that were hazy. I&#039;ve spent about a week trying to interface with a working can bus and also with a single can device that is just sending out data. I&#039;m unable to get the arduino with the MCP2515 to store anything to its buffer. When I check CAN.readstatus() it always returns a zero, I&#039;ve also resetFiltersAndMasks() . Running everything in loopback works great. So I&#039;m not sure where the issue is. I hooked up the can bus to an oscilloscope and the node I&#039;m trying to read spikes at 2V where I can see the arduino outputting around 3V (by removing one from the bus). Also I tried adjusting the baudrate to see if that might be an issue, which didn&#039;t seem to work.

I really appreciate any help and ideas on why the buffers arn&#039;t storing data.

Thanks,
Randy</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Awesome post really helped explain some areas that were hazy. I&#8217;ve spent about a week trying to interface with a working can bus and also with a single can device that is just sending out data. I&#8217;m unable to get the arduino with the MCP2515 to store anything to its buffer. When I check CAN.readstatus() it always returns a zero, I&#8217;ve also resetFiltersAndMasks() . Running everything in loopback works great. So I&#8217;m not sure where the issue is. I hooked up the can bus to an oscilloscope and the node I&#8217;m trying to read spikes at 2V where I can see the arduino outputting around 3V (by removing one from the bus). Also I tried adjusting the baudrate to see if that might be an issue, which didn&#8217;t seem to work.</p>
<p>I really appreciate any help and ideas on why the buffers arn&#8217;t storing data.</p>
<p>Thanks,<br />
Randy</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Arduino + Thermal Printers (Sparkfun, IBM 4160-TF6) by stevenh</title>
		<link>http://modelrail.otenko.com/arduino/arduino-thermal-printers-sparkfun-ibm-4160-tf6/comment-page-1#comment-422</link>
		<dc:creator>stevenh</dc:creator>
		<pubDate>Thu, 22 Mar 2012 11:17:17 +0000</pubDate>
		<guid isPermaLink="false">http://modelrail.otenko.com/?p=2597#comment-422</guid>
		<description>Pete,

I never did find a legit power supply for these printers. 24v was good enough though. If you can find two old PC power supplies or purchase a kit from jaycar then you should be fine. Jaycar also offers the &#039;wall wart&#039; power supplies which should work. Just be careful of the &#039;unregulated&#039; ones!

Steven.</description>
		<content:encoded><![CDATA[<p>Pete,</p>
<p>I never did find a legit power supply for these printers. 24v was good enough though. If you can find two old PC power supplies or purchase a kit from jaycar then you should be fine. Jaycar also offers the &#8216;wall wart&#8217; power supplies which should work. Just be careful of the &#8216;unregulated&#8217; ones!</p>
<p>Steven.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Arduino + Thermal Printers (Sparkfun, IBM 4160-TF6) by Pete</title>
		<link>http://modelrail.otenko.com/arduino/arduino-thermal-printers-sparkfun-ibm-4160-tf6/comment-page-1#comment-421</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Thu, 22 Mar 2012 10:43:26 +0000</pubDate>
		<guid isPermaLink="false">http://modelrail.otenko.com/?p=2597#comment-421</guid>
		<description>Hey, I am looking at getting one of these off ebay, but these also don&#039;t come with power adaptors.  Did you ever manage to get one cause I have nothing I can jury rig that can supply that power.</description>
		<content:encoded><![CDATA[<p>Hey, I am looking at getting one of these off ebay, but these also don&#8217;t come with power adaptors.  Did you ever manage to get one cause I have nothing I can jury rig that can supply that power.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Arduino + Controller Area Network (CAN) by stevenh</title>
		<link>http://modelrail.otenko.com/arduino/arduino-controller-area-network-can/comment-page-1#comment-418</link>
		<dc:creator>stevenh</dc:creator>
		<pubDate>Wed, 21 Mar 2012 23:10:33 +0000</pubDate>
		<guid isPermaLink="false">http://modelrail.otenko.com/?p=2625#comment-418</guid>
		<description>Sounds like you&#039;ve not downloaded the code at the bottom of my post? Instead you&#039;ve used the code directly from Canduino where the &quot;WProgram.h&quot; reference is? I definitely do not have that reference in the &#039;library&#039; that I have provided.

As for &quot;Interrupts&quot;... there is a configurable interrupt pin on the MCP2515, but this is simply brought to any digital out pin on the Arduino and brought high. As long as the Arduino keeps that pin high then the MCP2515 will not actually stall waiting for the interrupt to be cleared. I have defined that in the header for the library, yes, but it doesn&#039;t need to hook to an actual Arduino interrupt.

Anyway, looks like you updated the Canduino library again and also got it to work :)</description>
		<content:encoded><![CDATA[<p>Sounds like you&#8217;ve not downloaded the code at the bottom of my post? Instead you&#8217;ve used the code directly from Canduino where the &#8220;WProgram.h&#8221; reference is? I definitely do not have that reference in the &#8216;library&#8217; that I have provided.</p>
<p>As for &#8220;Interrupts&#8221;&#8230; there is a configurable interrupt pin on the MCP2515, but this is simply brought to any digital out pin on the Arduino and brought high. As long as the Arduino keeps that pin high then the MCP2515 will not actually stall waiting for the interrupt to be cleared. I have defined that in the header for the library, yes, but it doesn&#8217;t need to hook to an actual Arduino interrupt.</p>
<p>Anyway, looks like you updated the Canduino library again and also got it to work <img src='http://modelrail.otenko.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Arduino + Controller Area Network (CAN) by James</title>
		<link>http://modelrail.otenko.com/arduino/arduino-controller-area-network-can/comment-page-1#comment-417</link>
		<dc:creator>James</dc:creator>
		<pubDate>Wed, 21 Mar 2012 21:55:14 +0000</pubDate>
		<guid isPermaLink="false">http://modelrail.otenko.com/?p=2625#comment-417</guid>
		<description>Sorry i meant WProgram.h (it was quite late when i commented :P) And yeah for the nano according to the documentation SPI is only allowed on pins 10-13 and interrupts on pins 2 &amp; 3. Maybe i was mistaken but i thought you had used interrupts in your original code, i thought the header file defined them...</description>
		<content:encoded><![CDATA[<p>Sorry i meant WProgram.h (it was quite late when i commented <img src='http://modelrail.otenko.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ) And yeah for the nano according to the documentation SPI is only allowed on pins 10-13 and interrupts on pins 2 &amp; 3. Maybe i was mistaken but i thought you had used interrupts in your original code, i thought the header file defined them&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Arduino + Controller Area Network (CAN) by stevenh</title>
		<link>http://modelrail.otenko.com/arduino/arduino-controller-area-network-can/comment-page-1#comment-416</link>
		<dc:creator>stevenh</dc:creator>
		<pubDate>Wed, 21 Mar 2012 09:52:45 +0000</pubDate>
		<guid isPermaLink="false">http://modelrail.otenko.com/?p=2625#comment-416</guid>
		<description>James,

Glad you got this working... was heading home to compile my code when you sent this second comment. Interrupts on pins 2 &amp; 3 hey? That&#039;s got nothing to do with SPI? I haven&#039;t actually used interrupts in my code but I imagine any of the libraries could require them.

I also can&#039;t see where Window.h is included? I have definitely used my code here with Arduino 1.0

Steven.</description>
		<content:encoded><![CDATA[<p>James,</p>
<p>Glad you got this working&#8230; was heading home to compile my code when you sent this second comment. Interrupts on pins 2 &#038; 3 hey? That&#8217;s got nothing to do with SPI? I haven&#8217;t actually used interrupts in my code but I imagine any of the libraries could require them.</p>
<p>I also can&#8217;t see where Window.h is included? I have definitely used my code here with Arduino 1.0</p>
<p>Steven.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Arduino + Controller Area Network (CAN) by James</title>
		<link>http://modelrail.otenko.com/arduino/arduino-controller-area-network-can/comment-page-1#comment-415</link>
		<dc:creator>James</dc:creator>
		<pubDate>Wed, 21 Mar 2012 05:07:20 +0000</pubDate>
		<guid isPermaLink="false">http://modelrail.otenko.com/?p=2625#comment-415</guid>
		<description>Just to let you know it is working now without any problems. It seems the Arduino Nano only allows interrupts on pins 2 &amp; 3. Also in order for the code to work with the latest Arduino compiler the include Window.h needs to be changed to include Arduino.h. In addition i got rid of the ifdef for different Arduino boards as i&#039;m using two the same, and hardcoded one as TX and one as RX. 

Thanks for the article it really helped me with my project :D</description>
		<content:encoded><![CDATA[<p>Just to let you know it is working now without any problems. It seems the Arduino Nano only allows interrupts on pins 2 &amp; 3. Also in order for the code to work with the latest Arduino compiler the include Window.h needs to be changed to include Arduino.h. In addition i got rid of the ifdef for different Arduino boards as i&#8217;m using two the same, and hardcoded one as TX and one as RX. </p>
<p>Thanks for the article it really helped me with my project <img src='http://modelrail.otenko.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Arduino + Controller Area Network (CAN) by James</title>
		<link>http://modelrail.otenko.com/arduino/arduino-controller-area-network-can/comment-page-1#comment-414</link>
		<dc:creator>James</dc:creator>
		<pubDate>Tue, 20 Mar 2012 16:43:25 +0000</pubDate>
		<guid isPermaLink="false">http://modelrail.otenko.com/?p=2625#comment-414</guid>
		<description>Hi, I tried your loopback code and i managed to get the RX: 0 / 0 / 0 / etc output with my circuit. Now the only difference in my circuit compared to yours is that I am using 8MHz oscillators to control the MCP2515 clock.

Now I have compiled your code for the guessing game and i just changed it so that one node is set as RX and the other TX. I get an output from the RX saying Guess has been set at: 8 and the TX is outputting the numbers it is guessing. However when it guesses 8 it doesn&#039;t output I think I got it?: as it should and then switch positions with the RX node. Instead it keeps guessing as though it got it wrong. I would really appreciate it if you could help me as I am doing my project for university on the CAN bus and i need it working by thursday...

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi, I tried your loopback code and i managed to get the RX: 0 / 0 / 0 / etc output with my circuit. Now the only difference in my circuit compared to yours is that I am using 8MHz oscillators to control the MCP2515 clock.</p>
<p>Now I have compiled your code for the guessing game and i just changed it so that one node is set as RX and the other TX. I get an output from the RX saying Guess has been set at: 8 and the TX is outputting the numbers it is guessing. However when it guesses 8 it doesn&#8217;t output I think I got it?: as it should and then switch positions with the RX node. Instead it keeps guessing as though it got it wrong. I would really appreciate it if you could help me as I am doing my project for university on the CAN bus and i need it working by thursday&#8230;</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Arduino + Controller Area Network (CAN) by stevenh</title>
		<link>http://modelrail.otenko.com/arduino/arduino-controller-area-network-can/comment-page-1#comment-408</link>
		<dc:creator>stevenh</dc:creator>
		<pubDate>Tue, 06 Mar 2012 03:42:20 +0000</pubDate>
		<guid isPermaLink="false">http://modelrail.otenko.com/?p=2625#comment-408</guid>
		<description>Thanks for the heads up... I&#039;d realised the mistake and fixed it within a few minutes :)
The email that ended up in your inbox would&#039;ve had the original error, as does your original comment!

I don&#039;t even know if the __AVR_ATmega128__ is a valid target? Can&#039;t find a &#039;legit&#039; Arduino with this MCU.

Anyway, I&#039;m currently in the process of expanding the code to support extended IDs and proper sending (finding a free buffer) and error handling.

Will update this post over the next few days.</description>
		<content:encoded><![CDATA[<p>Thanks for the heads up&#8230; I&#8217;d realised the mistake and fixed it within a few minutes <img src='http://modelrail.otenko.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
The email that ended up in your inbox would&#8217;ve had the original error, as does your original comment!</p>
<p>I don&#8217;t even know if the __AVR_ATmega128__ is a valid target? Can&#8217;t find a &#8216;legit&#8217; Arduino with this MCU.</p>
<p>Anyway, I&#8217;m currently in the process of expanding the code to support extended IDs and proper sending (finding a free buffer) and error handling.</p>
<p>Will update this post over the next few days.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

