Spik3r This six-legged creature doesn’t just look like a scorpion, it also acts like one. It turns sharply, snaps with it’s crushing claw, and it’s lightning tail is ready to fire at anyone or anything that gets in its way. This is my nxt 2.0 scorpion i made, it is fighting a sphero! I have modified the nxt bonus model spike to make this. I will not post a instructable on it becaus.
This is the code for a Lego Mindstorms NXT 2.0 scorpion.
Behaviour
The code is very simple. I was only interested in the sting mechanismso this is the only behaviour this program implements (it has nolegs).
The UltraSound sensor should be plugged into input 1 and the sting'smotor into output A. At the moment, it assumes that the sting startsin the closed position (I may add a setup step that pulls the sting infirst at some point).
Construction
My scorpion is based on a design found onactive-robots. I'veditched much of the design, in particular the legs. Unfortunately,these instructions require pieces that don't appear to come in thedefault NXT 2.0 kit. My kit only contains two 15-length pieces, whichis less than the sting mechanism requires. I got around this byscaling down the size of the sting by replacing 15-length pieces with13, 13 with 11 and so on.
Usage
You'll need to build a suitable machine out of the Mindstorms kit. Youcan then connect it to your computer using a USB cable.
If you haven't done so already, get set up with the following steps:
Then, with the
nbc
command set up and on your path, run thefollowing from the scorpion
directory.This will compile the program and send it to the connected NXT device.