Tag Archive

LeJOS NXJ

Published on May 10, 2010 By chris

LeJOS is replacement firmware for the Lego Mindstorms RCX and NXT bricks. It’s based on the Java programming language and includes a JVM, or Java Virtual Machine, which allows Lego Mindstorms robots to be programmed in Java. LeJOS is an open source project which means you can participate in its development, or download the source [...]

  • Share/Bookmark

Java’s Sorted Collections and the Comparable and Comparator Interfaces

Published on October 31, 2009 By chris

Java’s SortedSet interface and the classes that implement it (like TreeSet) will store a collection of objects that are sortable. In order to make a class sortable so that we can store it in a sorted collection, we have two choices: the sorted class can implement the Comparable interface we can pass a Comparator to [...]

  • Share/Bookmark

AT91SAM7S256 aka the NXT Brain

Published on August 15, 2009 By chris

The Lego MindStorms NXT Brick is controlled by a pair of Atmel microcontrollers: Atmel 32-bit ARM processor, AT91SAM7S256 Atmel 8-bit AVR processor, ATmega48 The AT91SAM7S256 is part of an Atmel series of low pin-count Flash microcontrollers based on the 32-bit ARM7DMI ARM Thumb RISC processor. It features: a maximum clock speed of 55 MHz (48 [...]

  • Share/Bookmark

Artifact J-2: Java RPN Calculator (Command Prompt)

Published on August 8, 2009 By chris

Description A simple command prompt calculator that uses Reverse Polish Notation. In Reverse Polish Notation the operators follow their operands; for instance, to add three and four, one would write “3 4 +” rather than “3 + 4″. If there are multiple operations, the operator is given immediately after its second operand; so the expression [...]

  • Share/Bookmark

Artifact J-1: Codeword Parity Validator

Published on August 8, 2009 By chris

Description A program that tells the user if a parity-encoded word is valid or not, and if a Hamming codeword is valid or not. A parity-encoded word is a series of binary digits (zero or one) where the left most digit is either a zero or one depending on the type of parity being used [...]

  • Share/Bookmark