ArticleslgStudy

engineering

BrickOS

BrickOS is a engineering topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand BrickOS rather than just read about it. In short: BrickOS is an open-source operating system created by Markus Noga as firmware to operate as an alternative software environment for the Lego Mindstorms Robotic Invention System. BrickOS is the first open-source software made for Lego Mindstorms robots.

Key takeaways

  • BrickOS belongs to engineering; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect BrickOS to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of BrickOS from memory before moving on to harder problems.

Reference excerpt

BrickOS is an open-source operating system created by Markus Noga as firmware to operate as an alternative software environment for the Lego Mindstorms Robotic Invention System. BrickOS is the first open-source software made for Lego Mindstorms robots. It allows development using the C, C++, and Java programming languages. Programs are cross compiled using the g++ and Jack compilers, with the toolchain targeting the Hitachi H8 architecture used in Mindstorms devices.

Features BrickOS was designed and developed using Linux as a replacement for the previous operating system for Lego Mindstorms, which is also known as LegOS. It is capable of being implemented on the Windows system and most Unices. It allows for a more flexible and higher performances system that is much superior to LegOS. The current version of the system's main features includes:

An application programming interface that supports dynamic loading of programs and modules Preemptive multitasking 6 MHz native mode speed Driver for all RCX systems (sensors, motors, sound, etc.) Access to 32k RAM Full infrared packet networking, providing communications for users with personal computers through USB port Dynamic memory management Programming languages: C, C++, or Java Built-in support for POSIX semaphores Whereas LegOS uses interpreted bytecode, BrickOS programs are compiled to native machine code, and so execute much more quickly. BrickOS is flexible with controlling outputs, for instance, it can alter 255 value of motor speed. Another feature is that brickOS contains a LegOS Network Protocol (LNP) which allows for more than one driver to communicate. This protocol will broadcast message to any RCXs component within the receiving area. By adding layers to the command, the message can filter out the recipient to arrive at the addressed RCX. BrickOS provides a development environment that allows users to freely implement the provided RCX drivers, such as sensors and motors, using C or C++ programming languages. It can be used alongside libre simulators LegoSim and Emmulegos, which provide graphical interfaces to create a virtual machine that eases the users in the debugging process. The success of the system is built upon the community that constructed it. The system library and resources at any moment can be modified and updated freely with new functionalities and solutions from the programming community, separating the system from the limited tools provided by the manufacturer. With the help of the Internet, solutions are made accessible to everyone.

Application

Robotics The implementation of robots has become a crucial asset in this current industrial world. In robotics, libre software (or open-source software) like brickOS is considered a traditional tool for developing robots. The potential robotic application, in general, is vast. For instance, many enterprises have decided to bring robotics into use to replace human labor in factories for manufacturing products and managing storage. The essential of these applications has become a motivation for industries to invest in further research in robotics. The practices of the open-source software in robotic research have inspired the formation of the Robocup competition. An organization called Robocup have created an international playground for the problem-solving, educational initiative, and research in robotics. Participants are allowed to share code and utilize it to solve problems. The competitive environment allows for multiple different engagements toward the problems and effectively produces alternative solutions to a single problem. These solutions can be made public to the community for improving the resource.

Education BrickOS was a collaboration project between LEGO and MIT to create an educational tool for teaching the implementation of sensors and motors on robots. The operating system's development environment has been adopted in courses by several universities like Universidade Federal do Amazonas (UFA) in Brazil to be used as a platform for graduating college students to gain exposure in the early year of their career to programming C and C++ cross-compilation tools. The simplicity of the mechanical devices in the Lego Mindstorm kit allows for obtaining the concept of robots and developing creative and logical thinking. There exists empirical evaluation on the benefits of robotic learning that it enhanced pupil's ability in planning toward the objective and collaborations among peers.

See also List of operating systems

References

External links Official website

Worked examples

Example 1 — a first encounter with BrickOS

Start with the simplest possible case. Write down what BrickOS claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In engineering, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to BrickOS before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about BrickOS ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of BrickOS

In research
BrickOS appears in engineering research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses BrickOS in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
BrickOS is common in secondary-school and first-year university syllabi. It links to neighbouring topics Embedded operating systems, Lego Mindstorms, Robot operating systems, so understanding it makes those chapters shorter.
In everyday life
Look for BrickOS outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “BrickOS” →

How to study BrickOS in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what BrickOS means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain BrickOS out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is BrickOS in simple terms?

BrickOS is an open-source operating system created by Markus Noga as firmware to operate as an alternative software environment for the Lego Mindstorms Robotic Invention System. BrickOS is the first open-source software made for Lego Mindstorms robots.

Why does BrickOS matter?

Because it connects several engineering ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study BrickOS?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on BrickOS.

Tags

  • Embedded operating systems
  • Lego Mindstorms
  • Robot operating systems

Keep exploring