TKJ Electronics has released a LEGO NXT Servo Motor
shield for the Arduino
. This shield can interface with up to two NXT motors as well as the ultrasonic rangefinder. In addition to controlling motor speeds via pulse-width modulation, the shield reads the motor’s encoders so that it knows the position of the motor with a precision of 1 degree.
NXT Motor Shield for Arduino available from TJK Electronics
LEGO Mindstorms, one of the best robotics kits, is about to get even better!
Earlier this month LEGO unveiled the new LEGO Mindstorms EV3 at the Consumer Electronics Show (CES), in Las Vegas. As technology becomes more a part of us, LEGO Mindstorms is evolving to provide us greater connectivity to our creations.
LEGO Mindstorms EV3 Robot Snake
Like its predecessors, LEGO Mindstorms EV3 will four motors and five sensors including a new infrared sensor that will enable the robot to track a remote control. The expanded brick employs an ARM 9 central processor that can access 64 MB of RAM and 16 MB of Flash. This results in more room for stored programs. The brick also comes equipped with an SD-slot that allows one to expand the memory further. With a new secure Bluetooth chip, the LEGO brick can now connect to the Android and iOS operating systems so that one can use a smart phone, an iPhone or an iPad to control the robot! There will also be a USB port that will allow connectivity via WiFi. This increase in connectivity will open up a world of new possibilities.
Hackers will be happy to hear that the operating system is a version of Linux for which LEGO will release detailed documentation as well as an SDK.
LEGO will release the Mindstorms EV3 to the public this summer.
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 by Doug Moran and Will Gorman of BattleBricks
Move over LEGO brick!
Here comes Raspberry Pi, and it is going to change the face of robotics forever!
Raspberry Pi is Linux machine the size of a credit card. Plug in your television and a keyboard and you have a fully-functional computer for $25.
YES!!!
TWENTY-FIVE DOLLARS!!!!
Models:
There are two models, Model A and Model B.
Model A has 256MB RAM, 1 USB port and no Ethernet (network connection).
Model B has 256MB RAM, 2 USB ports and an Ethernet port.
Specs:
It relies on a System on a Chip (SoC). The particular SoC used is Broadcom BCM2835. The Broadcom BNC2835 is a High Definition 1080p Embedded Multimedia Applications Processor. It relies on the ARM1176 (ARM1176JZF-S) Processor which has a floating point processor and runs at 700 MHz. Moreover, the SoC has a Videocore 4 GPU, which is capable of BluRay quality playback, using H.264 at 40MBits/s. The Broadcom BNC2835 has a fast 3D core accessed using the supplied OpenGL ES2.0 and OpenVG libraries. The GPU is capable of 1 Gpixel/s, 1.5 Gtexel/s or 24 GFLOPs of general purpose computing.
Size:
The Raspberry Pi is SMALL!
The card is slightly larger than 85.60 mm x 53.98 mm x 17 mm due to the fact that the SD card and connectors project over the edges. It weighs with a mass of 45g. The Raspberry Pi is low power and runs on 4 AA cells.
Programming:
Fedora, Debian and ArchLinux are supported and other distributions will be supported later. Python is the official educational language.
I cant wait to get my hands on one of these and begin interfacing directly with the LEGO motors and sensors!
The LEGO Exploration Rover is powered by six NXT Standard Motors in a Rocker-Bogie suspension system used in all of the NASA Mars rover designs. The rover is approximately 1.5 ft high with a 1 ft x 1.5 ft base. It is larger than the NASA Sojourner Rover, which was part of the Pathfinder Mission to Mars in 1997, and smaller than the Mars Exploration Rovers Spirit and Opportunity. It can safely carry a payload of 8 pounds.
KnuthLab LEGO Exploration Rover
The LEGO Exploration Rover has two laptop bays built into the box-like frame in which it can carry two Asus Eee Laptops for onboard processing. The wheels are controlled by two LEGO NXT bricks, which can communicate with the laptops via Bluetooth. The rocker-bogie suspension and low speed allows it to handle relatively rugged terrain and steep grades.
The white frame mounted on top of the rover is the Bayesian Vision-Based Navigation System being developed by Autonomous Exploration Inc. for NASA.
Check back, as we will be posting videos of its operation and discussing some of the important design features.
In a previous post, Storing Your LEGO Collection, I discussed various options for storing one’s LEGO collection. Several of these options included tackle boxes since they can hold several utility boxes with adjustable partitions, while providing top bulk storage. I have found them to be quite useful in providing portable storage for small to medium LEGO collections.
Plano has come out with a new line of colorful tackle box designs geared for arts and crafts storage. These are the Creative Options
line of Storage Boxes and Organizers. The color scheme is a avocado green base with a purple lid and gold handles. These storage units are excellent for storing small LEGO collections while providing portability.
This includes three 2-3650 and two 3449 utility boxes and a compartmentalized top access storage on lid and large bulk storage area. Its dimensions are 17-3/4-Inch (Length) x 9-3/4-Inch (Width) by 11-Inch (Height).
This includes four #2-3500’s Prolatch Utility Boxes and Bulk Top Storage. ITs dimensions are 11-Inch (Length) by 7-1/4-Inch (Width) by 10-Inch (Height)
NOTE: WE ARE NOT RESPONSIBLE FOR ANY DAMAGE YOU MAY DO TO YOUR NXT BRICK.
THIS EXERCISE PRESUMES SOME WORKING KNOWLEDGE OF ELECTRONICS.
In this exercise, I will walk you through interfacing a potentiometer (variable resistor) to the NXT brick.
You will need:
– A stripped NXT cable
– A potentiometer with a maximum resistance no more than
– A small piece of wire
– An NXT Brick
This exercise is derived and expanded from a chapter in Extreme NXT by Gasperi, Hurbain and Hurbain.
THEORY
The NXT monitors the potential difference between the black and white wires with an Analog-to-Digital (A/D) converter. The A/D converter converts this potential difference to a RAW value between 0 and 1023 (10 bits accuracy). This RAW value is given by the ratio
(1)
where is the maximum RAW value of 1023, is the voltage used by the NXT A/D Converter, and is the voltage drop between the black and white wires.
The circuit diagram looks like this:
I have a little potentiometer that can turn over a range of about to . Below is a diagram. The resistance between the leftmost and rightmost pins is the maximum resistance of . We will focus on the resistance between the leftmost and center pins, which varies based on the angle through which the potentiometer has been rotated. To keep things safe, we wire the center pin and rightmost pin together. This doesn’t affect the potential difference between the leftmost and center pins.
I will assume that it is a linear potentiometer (a pretty good assumption), which means that the resistance at any given angle is given by
(2)
where is the maximum angle of the potentiometer and is the maximum resistance.
Equation (2) says that if the angle then the resistance of the potentiometer , and if the angle then the resistance of the potentiometer is maximum .
Looking at the circuit diagram for the A/D converter, the potential drop across our potentiometer (represented by resistor ) is given by the typical voltage divider relation
(3)
We can now substitute (2) into (3) so that the voltage between the black and white wires is determined by the angle of the potentiometer rather than its resistance. Then we can substitute the result into (1) to get an equation for the RAW value
(4)
with my particular values, this is
This formula will let us predict the NXT RAW value based on the angle of the potentiometer.
For my potentiometer, I find that a maximum angle of gives me a maximum value of 93. This is less than 7 bits of information, and each RAW value corresponds to . If you want a nice angle detector, you will probably need a potentiometer!
TRY IT
1. Before beginning, you need to cut and strip one of the NXT cables so that you can interface with the wires directly. I have placed a layer of solder on mine, so they can be inserted into a breadboard for easy connecting.
2. Next connect the center and right pins of the potentiometer together with a wire
3. Plug the other end of the NXT cable into the NXT brick.
I wrote a simple NXT-G program to read the sensor and display the RAW value. Notice that the Touch Sensor actually reads the resistance between the wires. So we are just replacing the Touch Sensor with a potentiometer. We will use the raw number output of the Touch Sensor Block, which is represented by the 1010 0101 symbol. We then need to convert it to text so it can be displayed on the NXT LCD panel.
You may download it here, Potentio-01.rbt
or write your own.
When I try my potentiometer, I find that the RAW value goes from 0 to 95, pretty close to my predicted range of 0 to 93. So it works! Not bad considering I guessed that the potentiometer sweeps through and angle of .
Determining the Angle of the Potentiometer
Now, let’s convert this RAW value to an angle.
In Extreme NXT, the authors worry about the fact that the resulting relationship is nonlinear with respect to the RAW value. As far as I can see, this isn’t a problem. We simply solve (4) above for the angle in terms of RAW. We can output the angle if we wish, but here I’ll take it a step further and demonstrate the resulting equation by controlling a motor so that it maintains an angle equal to the angle through which I have rotated the potentiometer.
I will leave out the algebra. Try it yourself. Solve (4) for angle A:
(5)
for my potentiometer, this is simply
which is easy to code in NXT-G.
You can download my code here: Potentio-03.rbt
The motor control is a bit crude, but it works well enough for the demonstration.
Check out the YouTube video to see it in action!