MLRS Control Panel

From Nottinghack Wiki
Jump to: navigation, search


I have obtained two non-functional decommissioned Lockheed Martin M270 MLRS Fire Control Panels (don't ask!*) and I plan to change their purpose slightly from destroying things (up to 40 miles away!) to dispensing salad ("Rocket Launcher" - geddit?)

MLRS-2015-05-25 18.00.06.jpg

All the components (on the primary unit) that do self-test seem to be working: the lamps, etc. The control PC hard drive is missing (bah!).

New Purpose: Salad Launcher

This is all going to be new-build stuff which I plan to do for the 2015 Crap-o-thon. Projectile work is fun and there are many options but my goals are all about the salad and reusing certain bits of kit I have found. The replaced Raspberry Pi B+ from the Bartop Defender is a good base processor and a fake Chinese Arduino Due for all the I/O is a good re-use too. I have a few flight cases (all skip finds) that will be good for taking the kit to events, and I plan to use at least one of those as the body for the MLRS rocket unit.

Lettuce as a projectile

Lettuce and other salad leaves are entirely unsuitable for use as projectiles. However, weaponising otherwise healthy food is my life's work.

MLRS-2015-05-26 21.33.56.jpg

And to my detractors and would-be critics: you have such short memories! Do you not remember the glorious successes of my War-Raisins and the Tactical Combat Bagel? As a continually failing vegan (failed again today - damn that slightly mouldy cream cheese that my kids left to go off in the fridge) I have all the necessary skills to transmogrify bad into good and then default back to bad.

Deadly Portion Size

MLRS-2015-05-31 15.57.57.jpg

Rocket has low density - as you see in the photo above, a handful portion has a mass of about 10g. Now this is only one of your 5-a-day and we want to promote diversity in the diet so I think it's fine to add a little something to the mix to increase the chances of lethal engagement.

Paul Newman's Balistic Vinaigrette

"A knock-em-dead dressing that’s perfect on any salad. Enjoy!"

http://www.newmansown.com/products/newmans-own-balsamic-vinaigrette-dressing/

Well, the words of the man himself are good enough for me. We shall therefore be adding a tasty battlefield dressing to our projectiles.

Flatbread Targets

The use of Hummus on an enemy is forbidden under The Geneva Conventions: recently ratified and codified into international treaties that classify the use of this tasty and nutritious dip as a form of bio-chemical warfare. Due to this change we find large battlefield stockpiles of Hummus at various flatbread bunkers. Our primary objective is to target these illegal weapon facilities.

The Hardware

One of the main decisions to be made is what parts of the original hardware to retain in the design and what to strip out. Since I currently have two units (one a PC-based console and one a Motorola 6809 terminal) I will probably retain the common hardware and abandon the processors. The I/O board on the PC unit is nice and it does give us a lot of clues about the various bits and pieces but I think I'd like to drive everything from a very simple PCB.

Plasma Display

The displays are the real beauty of these units and something I would not want to abandon. Driving the displays is my main focus at the start of the project; the switches and lamps should be trivial; the keypad might need some investigation!

I spent a couple of evenings working on the second unit and focussing on the plasma screen: it has a built-in VT320 terminal -- or is it more correct to say that it is a VT320 terminal? Anyhow, I failed to get anything up on the screen. I removed the bezel that masked off the top line (which took a bit of dismantling - I should have took photos!) and then the glorious blinking orange block cursor could be seen. The high pitched noise from the screen was really quite apparent but not too unpleasant to my middle-aged, gig-battered ears.

My terminal test setup was just my laptop with a Prolific USB-Serial adapter and a 9-way to 25-way D connector into the "host" port on the screen unit. With a bit of tty help (thank's Hazel!) I tried all the usual baud rates and a few other settings but nothing appeared on the screen. Now I had been told by one of the engineers who worked on the project that the system just talked to the screen over RS232 but not exactly how! I remember from my years working on the various VT terminals on the VAX at Trent Poly that there is a setup mode to most terminals. There is also a keyboard socket on the back of the unit which is a 5 pin DIN. I tried an old AT PC keyboard and didn't expect it to do anything but was still a bit disappointed when nothing happened!

Next leads: -

  • is the voltage too low for a true RS232 input? +/-12v is required but these little USB adapters don't really do everything to spec
    • if so then a more standard device might do the trick
  • when I dismantled the display to remove the bezel I could see the connections on the 25-way D socket
    • take pictures, buzz them out - see what lines are expected, RTS/CTS/CD, etc.
  • find more info about the VT320 driver board in the unit
  • SPX 20 interface: http://www.datasheetarchive.com/dl/Scans-049/DSADA001035.pdf
  • I'm informed by one of the engineers that we are dealing with a simple 9600 8-N-1 over RX, TX, GND


Update --Michael Erskine (talk) 10:55, 4 June 2015 (UTC)

  • Finally have text going to screen! Glorious orange glow!

MLRS-2015-06-03 22.50.44.jpg

The SPX-20 blurb describes a terminal setup mode but I have yet to find it. I doubt it is a standard VT-320 feature as it will have proprietary features. Anyhow, these devices have been powered down for years and may well be using default values.

Tested escape sequences: cursor keys work (minicom ANSI mode) as does the home key so they could be used where required.

  • ESC [ = CSI
  • CSI 2 J = erase screen: very useful
  • CSI A = cursor up
  • CSI B = cursor down
  • CSI 7 m = inverse video
  • CSI 0 m = normal video
  • CSI 4 m = underline on
  • CSI 5 m = blinking on: cool effect!
  • CSI Pn ; Pn H = goto X,Y
  • ESC c = reset terminal: also very useful

Pi and Arduino

  • Clear cut roles
  • Pi selection: I have a number of Pi units to choose from
  • Arduino selection: Due? Mega? bare ATMEGA328P?
  • All I/O (switches, lamps, keypad, buzzer, etc.) through Arduino
    • also Serial abstraction? Build for Pi or build for PC (GPIO UART vs USB)
    • any Pi GPIO at all? Other than UART? Perhaps small power-down circuit

Little Perl script to drive display

 1 #!perl -w
 2 use strict;
 3 use Tk;
 4 
 5 my $dev = "/dev/ttyACM0";
 6 my $fh;
 7 term_open($dev);
 8 term_reset();
 9 term_goto_main();
10 
11 
12 sub term_open {
13     my $dev = shift;
14     open($fh, "+<", $dev) or die "cannot open $dev: $!";
15     select((select($fh), $|=1)[0]);
16 }
17 
18 sub term_reset { print $fh "\ec"; }
19 sub term_goto_top{ term_goto(6,0);}
20 sub term_goto_main{ term_goto(13,0);}
21 # goto row, col
22 sub term_goto { print $fh "\e[".$_[0].";".$_[1]."H"; }
23 
24 
25 my $entrytext = "MLRS";
26 my $en_row = "15";
27 my $en_col = "5";
28 
29 my $mw = new MainWindow();
30 {
31     my $fr = $mw->Frame()->pack();
32     $fr->Entry(-textvariable => \$entrytext )->pack;
33     $fr->Button(-text => "send", -command => sub{ print $fh $entrytext; })->pack;
34     $fr->Button(-text => "reset", -command => sub{ term_reset() })->pack;
35     $fr->Button(-text => "goto top area", -command => sub{ term_goto_top() })->pack;
36     $fr->Button(-text => "goto main area", -command => sub{ term_goto_main() })->pack;
37 }
38 {
39     my $fr = $mw->Frame()->pack();
40     $fr->Label(-text => "Goto row,col")->pack(-side => "left");
41     $fr->Entry(-width => 3, -textvariable => \$en_row)->pack(-side => "left");
42     $fr->Entry(-width => 3, -textvariable => \$en_col)->pack(-side => "left");
43     $fr->Button(-text => "go!", -command => sub{ term_goto($en_row, $en_col)} )->pack(-side => "left");
44 }
45 MainLoop();

Simple Arduino sketch allowing pass through of serial data from PC to terminal

 1 /*
 2 
 3 MLRS sketch for the DUE
 4 Pass data from Serial (prog-port) to Serial1.
 5 
 6 TODO Alternate usage: create a back-channel protocol and encode all data to and from terminal
 7 
 8  */
 9 #define  MODE_PASS_THROUGH 0
10 
11 uint8_t mode = MODE_PASS_THROUGH;
12 
13 void setup() {
14     // initialize both serial ports:
15     Serial.begin(9600);
16     Serial.println("MLRS DUE started");
17     Serial1.begin(9600);
18 }
19 
20 void loop() {
21   if (Serial.available()) {
22       int inByte = Serial.read();
23       if(mode == MODE_PASS_THROUGH) {
24           Serial1.write(inByte);
25       }
26   }
27   #ifdef NOPE
28   if (Serial1.available()) {
29       int inByte = Serial.read();
30       if(mode == MODE_PASS_THROUGH) {
31           // raw data passed back
32           Serial.write(inByte);
33       }
34   }
35   #endif
36 }

You'll note that I've #def'ed out the pass-through of serial data back from the terminal: I've found that the Perl script hangs after a few sends which may be because I'm not reading from the port. I'm not too worried about this right now but I am interested in what the terminal can tell us about its status.

Considering Java on the Pi for the control program as Eclipse is the most productive IDE I have ever used. The JSSC serial library needs a good testing! Alternatives still include Device::SerialPort under Perl and a nice C program!--Michael Erskine (talk) 10:14, 20 June 2015 (UTC)

The Java version pre-installed on Raspbian (Oracle JRE7) seems fine...
MLRS-2015-06-20-java.png

Internal power sources: AC Mains + various DC

Lamps and Switches

Another cool thing about this console is those lovely launching controls.

There are 4 fancy-ass switches with safety covers: -

  • SYS PWR = "System Power": a simple on/off switch with a green indicator labelled "ON"
  • RFU = currently unknown (I shall have to dig out some info) another simple switch with green indicator labelled "ENBL" which must mean "Enabled"
  • ARM = I'm guessing "Armed": this switch can only be in the up position when the sprung cover is open: closing the cover pushes the switch into the down position which I assume is the safe position. There are two indicators here: a red one labelled "ARM" and a green one labelled "SAFE" - easy to guess what they mean!
  • FIRE = "Fire!": this is a cool switch that is sprung for monentary contact - it is so ergonomically lovely to use! And deadly! There are two red indicators labelled "FIRE" and "HANGFIRE". I'll try to find out what their official usage is.

Other thingies

  • HELP
  • MOVE VEHICLE
  • HATCH OPEN
  • SRP RDY
  • CAB SAFE

Handily the switches and lamps on the right hand side (of the PC unit anyway) all go to a pair of headers on the I/O board nicely labelled "LAMPS" and "SWITCHES". The lamps appear to be driven with ULN2803A devices (https://www.ti.com/lit/ds/symlink/uln2803a.pdf) so they might be pretty heft in current drain! Testing required!

RHS Switches Connector CN6 buzzed-out: -

  • Pin 1 = GND for 2, 3, & 4
  • Pin 2 = HELP
  • Pin 3 = MOVE
  • Pin 4 = FIRE
  • Pin 5 = N/C
  • Pin 6 = N/C
  • Pin 7 = GND for 8, 9, & 11
  • Pin 8 = HATCH (up posn)
  • Pin 9 = RFU
  • Pin 11 = ARM

Simple hookup of Pi and Due for first bank of inputs: -

MLRS-2015-06-18-simple-fritz.png

I/O Board misc

  • IC4 = 74HCT08N. Quad 2-input AND gate
  • IC3 = NE555P (I'm guessing for alarm buzzer)
  • IC5 = SN74HC74N

other

  • brightness pots
  • brightness switch - 6 inputs
  • buzzer
  • display relay

Actual Launching

I'd like to go with gas propelled and YouTube is crammed full of various air launching builds. The practicalities for this project are going to need multiple launch capability (the "ML" in MLRS). Electronic control is a must so those relay sprinkler release valves look like the thing: -

Interaction with the FCP

The main "theatre" of the project will be around the launch sequence as controlled by and narrated back through the Fire Control Panel.

Launch sequence: as you might imagine, on the real MLRS there is a very formal and well defined sequence that the operator must go through with all the appropriate safety checks and measures. We want to emulate some of this procedure.

More Info

Actually these are just training consoles used by the British and Dutch armies. They are true representations of the actual firing control panels though and they are just so well built that it would be such a shame for them to end up in the skip (thankfully I am on very good terms with the guys who clear this stuff and I can get some things put aside for me!)