<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Brick Labs &#187; nxt brick</title>
	<atom:link href="http://brick-labs.com/tag/nxt-brick/feed/" rel="self" type="application/rss+xml" />
	<link>http://brick-labs.com</link>
	<description>The Source for LEGO Robotics and Educational Materials</description>
	<lastBuildDate>Thu, 10 Nov 2011 11:19:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>What Programming Language do I use?</title>
		<link>http://brick-labs.com/reviews/17/what-programming-language-do-i-use/</link>
		<comments>http://brick-labs.com/reviews/17/what-programming-language-do-i-use/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 12:44:51 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[nxt brick]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://brick-labs.com/?p=17</guid>
		<description><![CDATA[There are several available languages for programming the LEGO NXT MINDSTORMS brick. You can use C, Java, Lua, Assembly or one of the Graphical languages. Steve Hassenplug has put together a pretty good list of the available languages, and some comparisons between them. You can find the list here: NXT Programming Software]]></description>
			<content:encoded><![CDATA[<p>There are several available languages for programming the LEGO NXT MINDSTORMS brick.  You can use C, Java, Lua, Assembly or one of the Graphical languages.</p>
<p>Steve Hassenplug has put together a pretty good list of the available languages, and some comparisons between them.</p>
<p>You can find the list here: <a href="http://www.teamhassenplug.org/NXT/NXTSoftware.html">NXT Programming Software</a></p>
]]></content:encoded>
			<wfw:commentRss>http://brick-labs.com/reviews/17/what-programming-language-do-i-use/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RobotC &#8211; Mini Tutorial #1 &#8211; Displaying Battery Power</title>
		<link>http://brick-labs.com/tutorials/226/robotc-mini-tutorial-1-displaying-battery-power/</link>
		<comments>http://brick-labs.com/tutorials/226/robotc-mini-tutorial-1-displaying-battery-power/#comments</comments>
		<pubDate>Wed, 05 May 2010 02:25:43 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[nxt brick]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[RobotC]]></category>

		<guid isPermaLink="false">http://brick-labs.com/tutorials/226/robotc-mini-tutorial-1-displaying-battery-power/</guid>
		<description><![CDATA[Today, while trying to debug the Example 1 from the Experimenters kit, I thought I might be having battery issues.&#160; So I wanted to see what the battery level was. Being new to RobotC, I figured this might be a fun little mini-project (and I do mean mini) to tackle. So, first thing I did, [...]]]></description>
			<content:encoded><![CDATA[<p>Today, while trying to debug the <a href="http://brick-labs.com/tutorials/225/experimenters-kit-robotc-example-1/">Example 1 from the Experimenters kit</a>, I thought I might be having battery issues.&#160; So I wanted to see what the battery level was.</p>
<p>Being new to RobotC, I figured this might be a fun little mini-project (and I do mean mini) to tackle.</p>
<p>So, first thing I did, was start checking the functions and such in RobotC.&#160; I found a neat value you can read.</p>
<p>nImmediateBatteryLevel </p>
<p>It returns an integer of the battery level.&#160; If your battery level was 7.499, then this value returns 7499.</p>
<p>So I copied a line of code to display this value on the NXT, like this below:</p>
<p> nxtDisplayTextLine(1, &quot;%d&quot;, nImmediateBatteryLevel); </p>
<p>Perfect!&#160; But wasn’t quite satisfied.&#160; I wanted to display this on the NXT with the decimal.&#160; And a bit of text so I knew what the value was.</p>
<p>Well, with a bit of math, you can divide a integer by a factor of 10 to get a decimal.&#160; Since I wanted 3 decimal places, I divided by 1000.&#160; In order to do the division, you need to convert (or cast) the integer to a float.&#160; So that&#8217;s where the (float) code comes in. I also found you can include plain text in the <strong>nxtDisplayTextLine()</strong> function, and it will display that.</p>
<p>So here is what I came up with.</p>
<p>nxtDisplayTextLine(1, &quot;Battery: %.3f&quot;, (float)nImmediateBatteryLevel / 1000);</p>
<p>That code puts the word &quot;Battery: 7.499&quot; on Line 1 of the NXT screen.&#160; The 7.499 is the actual battery value.&#160; The %.3f means I want a value with 3 decimal places, of type Float.</p>
<p>For those of you with a C background, this is common knowledge.&#160; For those with a Basic background, type conversions are usually automatically done for you.&#160; In RobotC, you have to be explicit about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://brick-labs.com/tutorials/226/robotc-mini-tutorial-1-displaying-battery-power/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Will the NXT run the .NET Micro Framework?</title>
		<link>http://brick-labs.com/general/16/will-the-nxt-run-the-net-micro-framework/</link>
		<comments>http://brick-labs.com/general/16/will-the-nxt-run-the-net-micro-framework/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 23:44:08 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[micro framework]]></category>
		<category><![CDATA[nxt brick]]></category>

		<guid isPermaLink="false">http://brick-labs.com/general/16/will-the-nxt-run-the-net-micro-framework/</guid>
		<description><![CDATA[So far, I haven&#8217;t found anything to show that the .NET Micro Framework will work on the NXT brick. The processor on the NXT brick will support the Micro Framework, but it looks like there isn&#8217;t enough memory. If anyone has proof of this being done (or of it failing), please contact me. I did [...]]]></description>
			<content:encoded><![CDATA[<p>So far, I haven&#8217;t found anything to show that the .NET Micro Framework will work on the NXT brick. The processor on the NXT brick will support the Micro Framework, but it looks like there isn&#8217;t enough memory.  If anyone has proof of this being done (or of it failing), please contact me.</p>
<p>I did find this post by Guy Ziv (from <a href="http://nxtasy.org">nxtasy.org</a>):</p>
<p>he says (<a href="http://news.lugnet.com/robotics/nxt/?n=484">and I quote from Lugnet</a>):</p>
<blockquote><p>The .NET Micro Framework documentations<br />
<a href="http://msdn2.microsoft.com/en-us/embedded/bb278106.aspx">http://msdn2.microsoft.com/en-us/embedded/bb278106.aspx</a><br />
says it requires at least 256K RAM and 512K Flash.</p>
<p>The NXT processor has 64K RAM and 256K Flash&#8230;.</p></blockquote>
<p>So, it looks like my fears are true.  I was really looking forward to using .NET to program on the NXT.  I&#8217;ll have to see what sort of controller I can find, and make some interface cables to use the NXT motors and sensors.</p>
]]></content:encoded>
			<wfw:commentRss>http://brick-labs.com/general/16/will-the-nxt-run-the-net-micro-framework/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

