BrickEngineer: LEGO Design

LEGO Engineering for LEGO NXT and Robot Enthusiasts

KnuthLab LEGO Exploration Rover Featured on Japan’s NHK World Network


KnuthLab Exploration Rover Featured on NHK WorldNet

KnuthLab Exploration Rover Featured on NHK WorldNet

The Knuth Cyberphysics Laboratory focuses on studying the fundamental physics governing the processes of information-driven systems.

At present we are focused on two research projects. The first, which is funded by a NASA SBIR grant, aims to develop Bayesian vision-based navigation systems for future NASA missions. The second, which has been funded by NASA in the past, is focused on developing intelligent instrumentation in the forms of science platforms that can autonomously decide on and perform their own experiments. Both projects, which are focused mainly machine learning software, rely on robotic platforms that we construct out of LEGOs. LEGO bricks are prefabricated plastic parts that can be assembled and disassembled in a matter of hours. We have found them to be quite versatile and capable, as well as being inexpensive.

On Wednesday Sept. 12, 2012, the Knuth Cyberphysics Lab at the University at Albany was visited by a television crew from NHK
World Network (Japan Broadcasting Corp.). They were working on a piece focused on the Mars Curiosity rover and were interested how NASA missions fostered creativity in robotics. In our lab, they were specifically interested in the fact that we used LEGO robots to test software for funded NASA projects. The program aired in Japan on Sept 15, 2012.

Here is a link to the show’s website.
http://www.nhk.or.jp/worldnet/archives/year/detail20120915_202.html

Here is the photo caption from the website:
NASAは自由な発想で宇宙開発に挑むために、
あるユニークな方法を取り入れている。その方法とは、おもちゃにもなっているブロック。次世代の探査機を研究しているチームでは、ブロックを使いながら設計予想図のイメージを共有し、問題点を洗い出している。何度も手軽に作り直すことができ、自由な発想を形にしやすいのがブロックの強みだ。キュリオシティの開発でもブロックを使って検討作業を行った。研究開発の担当者は「ブロックを使うと、いいアイディアかそうでないかはすぐにわかるので方針転換も早くなる」と話す。

The Bing translation is:
Incorporating a unique way for free thinkers NASA challenge space development. How is block have become toys. Share the anticipated blueprint image team studies the next-generation spacecraft, while using the block and identify the problem. Easily can be recreated many times, easy and free thinking-is an advantage of the block. Using the block curiosity Inc. developed and went on. Research and development professionals “using blocks, a good idea? so readily detect if it isn’t policy change even faster” and speak.

The Knuth Cyberphysics Lab website can be found at:
http://cyberphysics.rit.albany.edu/
and
http://knuthlab.rit.albany.edu/

Learn more by checking out this related post”
http://www.brickengineer.com/pages/2012/01/06/knuthlab-lego-exploration-rover/

Mars Curiosity Rover Made Entirely of LEGOs

In celebration of the landing of the Mars Science Laboratory, Curiosity, on Mars, Doug Moran and Will Gorman of BattleBricks.com built a LEGO MINDSTORMS model of the Mars Curiosity Rover. The model was part of the Build the Future in Space event at NASA’s Kennedy Space Center. The LEGO Curiosity Rover relies on 7 NXT Bricks running leJOS NXT. It employs 13 NXT Motors, two Power Function Motors, and 1000+ LEGO Bricks.

An article on the event can be found at inhabitat.com. There is also an article by the creators themselves at BattleBricks.com

LEGO Mars Curiosity Rover

LEGO Mars Curiosity Rover by Doug Moran and Will Gorman of BattleBricks

Here is a video of the rover in action!

Check out LEGOSpace.com to learn more about the long-awaited NASA-LEGO partnership. And be sure to check out what the real Curiosity Rover is experiencing on Mars!

Build Your Own LEGO Mars Science Laboratory Rover (MOC-0271)

Stephen Pakbaz, a mechanical engineer at NASA’s Jet Propulsion Laboratory (JPL) who actually worked on the Mars Science Laboratory (MSL), also known as NASA’s Curiosity Rover has built a small LEGO model for others to build and enjoy!

Mars Science Laboratory Curiosity Rover LEGO Model

Mars Science Laboratory Curiosity Rover LEGO Model

This model features an offset differential suspension system that works so well on Mars, and this video on Flickr shows that it works well during play as well!

This model comes with free pdf instructions (download here) and a LEGO Digital Designer Model (download here).

More information can be found at LEGOCuusoo.com and Rebrickable.com

One can also build the descent stage and sky crane pictured below!

LEGO Mars Curiosity Rover Descent Stage and Sky Crane

LEGO Mars Curiosity Rover Descent Stage and Sky Crane

A Catalog of Omni-directional or Holonomic Wheels for LEGO Robots

I have been researching the possibilities for omni-directional or holonomic wheels for LEGO robots. An omni-directional or holonomic wheel is one that can roll not just backwards and forwards, but sideways as well.

New Rotocaster Omni-Directional Wheel

New Rotocaster Omni-Directional Wheel

While these are often used on robots with three wheels where all three rotate at different rates allowing the robot to go in any direction,

Three-Wheeled Omni-Wheel Prototype by Xander Soldaat at Bot Bench

Three-Wheeled Omni-Wheel Prototype by Xander Soldaat at Bot Bench (click on image to see more)


I am interested in using these on a rover that can employ differential steering smoothly without skidding.

There are several different options that one can consider. LEGO purists may consider making their own omni-directional wheel designs out of only official LEGO parts. Another option is to purchase manufactured omni-directional wheels. These come in two classes: those that are designed to be LEGO compatible, and those that are not LEGO compatible. In the latter case, one would have to construct some kind of coupling mechanism to enable the wheel to connect to LEGO parts.

Here are some of the options that I have found.

Omni-Directional Wheels Constructed from LEGO Parts

Omni-Directional LEGO Wheels by Xander at Bot Bench
These wheels use the LEGO pulley to get a six-fold symmetry. Each “wheel” uses 12 LEGO wheels. For archiving purposes, here are three pictures. Please visit Xander at Bot Bench for larger images and more details.

Omni-Directional LEGO Wheels by Xander Soldaat at Bot Bench

Omni-Directional LEGO Wheels by Xander Soldaat at Bot Bench

Omni-Directional LEGO Wheels by Xander Soldaat at Bot Bench

Details of Omni-Directional LEGO Wheels by Xander Soldaat at Bot Bench

Omni-Directional LEGO Wheels by Xander Soldaat at Bot Bench

Details of Omni-Directional LEGO Wheels by Xander Soldaat at Bot Bench

This amazing tank by Peer Kreuger also sports omni-directional wheels made from LEGO parts

LEGO Tank with LEGO Omni-Directional Wheels

LEGO Tank with LEGO Omni-Directional Wheels

The Omni Bot v2 by jason701802 also sports omni-directional wheels

Omni Bot v2 by jason701802

Omni Bot v2 by jason701802

LEGO-compatible Manufactured Omni-Directional Wheels

This LEGO-compatible wheel is made by the School of Robotics

School of Robotics Omni-Directional Wheels

School of Robotics Omni-Directional Wheels

Rotacaster makes a LEGO-compatible omni-directional wheel:

Rotacaster Robot Wheel (LEGO-compatible)

Rotacaster Robot Wheel (LEGO-compatible)

Rotacaster is also coming out with a new design

New Rotocaster Omni-Directional Wheel

New Rotocaster Omni-Directional Wheel

Rotacaster also produces several non-LEGO compatible designs.

Tetrix also makes LEGO-compatible Omni-Directional Wheels

Tetrix Omni-Directional Wheels

Tetrix Omni-Directional Wheels

General Manufactured Omni-Directional Wheels

Mecanum Omni-Wheel Designed by Bengt Ilon in 1973 at the Mecanum AB Company

Mecanum Wheel

Mecanum Wheel

Mecanum Omni-Directional Wheel

Mecanum Omni-Directional Wheel

Vex Omni-Directional Wheel

Vex Omni-Directional Wheel

Vex Omni-Directional Wheel

Damon WH-01 Omni Directional Wheel (hexagon hole)
(Outer Diameter:60mm, Inner Diameter:11mm, Material: Nylon)

Damon WH-01 Omni-Directional Wheel

Damon WH-01 Omni-Directional Wheel

Kornylak Omni-Directional Wheel

Kornylak Omni-Directional Wheel

Kornylak Omni-Directional Wheel

Kornylak Transwheel

Kornylak Transwheel

Kornylak Transwheel

Kornylak Omni-Directional Wheel

Kornylak Omni-Directional Wheel

Kornylak Omni-Directional Wheel

The Blossoming Lotus: LEGO Kinetic Art

I call this creation The Blossoming Lotus.  It was originally posted on Online Cortex, but I have decided to repost it here because its just plain fun. Basically it is a large 2D version of a Hoberman sphere. Why did I not make a large Hoberman sphere? First, the parts to make the circle cost almost $80 US. Second, I have other more pressing projects I am working on.

The Blossoming Lotus Kinetic Art

The Blossoming Lotus Kinetic Art

It is about 4 feet in diameter when completely extended and is pretty impressive. Its relatively easy to make. My design consists of constructing each petal with two interlocking pieces: a single-claw arm and a double-claw arm. The parts needed to make the two arms are illustrated below.

Parts for a Single Lotus Petal

Parts for a Single Lotus Petal

To make the entire circle of petals, one needs 20 copies of each petal. The job then is to put them all together. I will post detailed instructions on a website in the near future. For now, here is a closeup of the blossom when completed.

Close Up of the Lotus Blossom

Close Up of the Lotus Blossom

And of course, the project wouldn’t be complete without that animation above made with MLCAD, L3PAO, and POV Ray. The animation was straightforward—once you get the geometry right (which is not straightforward). I will post a lesson on the geometry and the animation of this creation in the future as well. For now, enjoy.

Little Rover with Instructions and Code

 

I have finally compiled building instructions for my Little Rover, which can be seen above in a 3D Rendering courtesy of POVRay.  An earlier version of this rover can be seen in this YouTube video:

Little Rover Prototype Video

Rover Design

The complete detailed building instructions can be found here in this 94-page pdf file.
Warning: it is about 9MB in size.  The design is not entirely compatible with the standard NXT Mindstorms Kit.  This design relies on two touch sensors, several 1×9 bent liftarms, and as far as I can tell from Peeron, the NXT Kit has only two.  This may require a little redesign.  Other compatibility issues and their solutions can be found in the Parts List in the instructions.

Remember to download the software DriveSmart here as well.
Installation instructions can be found in the zip file.

DriveSmart Code

The main file is called DriveSmart.rbt.  Drive Smart runs four threads:

Drive Thread
The Drive Thread (lowest one of the four) drives until a warning flag is set by one of the other
threads. It then waits until it gets an all clear message via the Wait Until Free block, and then
it starts driving again.

Bumper Threads
There are two threads that monitor the bumpers.
The reaction is only activated if nothing else is currently commanding the robot.  In this case the
bumper has been pressed and the robot will veer away from the hazard.

Ultrasound Thread
This thread monitors the ultrasound rangefinder.
The reaction is only activated if nothing else is currently commanding the robot.  When the robot
comes too close to a hazard, the robot is commanded to stop.  It then looks both ways and then turns
in the direction with more room.  If the robot is within 10 cm of a hazard on both sides, it then
backs up.

The robot can roam about a wide variety of rooms and not get stuck.
He does not detect stairs though!  So be careful.

Download: instructions and code.

Enjoy!
Kevin Knuth

LEGO NXT Motor Wiring

After posting Hacking the LEGO Mindstorms NXT Standard Motor, I received several requests for more information regarding the wiring of the motor.

The NXT cable has six wires. Below I list a table with the wires and their colors:

Color Name
White Motor 1
Black Motor 2
Red GND
Green 4.3 Volts
Yellow Tach01
Blue Tach02

The WHITE and BLACK wires (Motor 1 and Motor 2) deliver power to the motor.
If standard batteries are used, the potential difference will be 9 volts, otherwise the NiMH rechargeable batteries provide 7.2 volts. If the white wire is positive and black is negative, the motor will turn one way. If you reverse the polarity, the motor will turn the other way.

The RED wire is connected to the ground (GND). Note that in the sensors, RED and BLACK are connected to one another. This is not the case in the motors.

The GREEN wire is connected to the +4.3 NXT power supply.

The YELLOW and BLUE wires are connected to the quadrature encoder, also called an incremental rotary encoder.

Basic Rotary Encoder

Square waves from quadrature encoder

As shown in the figure from Wikipedia above, (http://en.wikipedia.org/wiki/Quadrature_encoder) the wires return square wave pulses that are 90 degrees out of phase. If the rising pulse on TACH00 leads the rising pulse of TACH01 by 90 degrees, then the motor is going forward. If it instead lags by 90 degrees, the motor is rotating backwards. One complete square wave cycle corresponds to 2 degrees of rotation. In the diagram above, if TACH00 refers to A and TACH01 refers to B, we can see that the motor is going backwards as TACH00 is lagging TACH 01.

By measuring the frequency of the square wave oscillation, one can compute the rotational velocity. Since one cycle corresponds to 2 degrees of rotation, one cycle per second (1 Hz) corresponds to 2 degrees/sec. If you record a frequency of X Hz, then the rotation rate is 2X cycles/sec.

Note also that by tracking both square waves, you can identify quarter cycles, which gives you a resolution of 1/4 of 2 degrees, which is 0.5 degrees.

The motor speed is controlled by pulse-width modulation (pwm), which works by driving the motor with a variable duty cycle square wave. This effectively turns the motor on and off, fast. The longer it is on, the more torque it will generate and the faster it will go.

These details and more can be found in the excellent book: Extreme: NXT with a sneak peak here.

Additional details can be found in the excellent book Extreme NXT: Extending the LEGO MINDSTORMS NXT to the Next Level (Technology in Action) by Michael Gasperi, Philippe E. Hurbain, and Isabelle L. Hurbain.

Philo uploaded a comment, and reminded me that “Note that there are some internal photos of the NXT motor here: http://philohome.com/nxtmotor/nxtmotor.htm and schematics here: http://www.brickshelf.com/cgi-bin/gallery.cgi?i=1846577

Happy Hacking!

Content Protected Using Blog Protector By: PcDrome.