The Hard Drive that Controlled the Saturn V

Smarter Every Day

Computing in the olden days.

Impressed does not really cover it.

Bob.

We should link that video to everyone who bitches about having to use Serial.print() to debug an Arduino program :slight_smile:

...R

I thought it would be interesting to create a saturnVdebug() function and I post a demo program here. It has many rough edges but other people might like to run with the idea and make it suitable for inclusion in the Arduino IDE.

This is the output

Second stage separation failure                      

123 145 143 157   156 144 40 163   164 141 147 145   40 163 145 160   141 162 1

Program

void setup() {
    Serial.begin(115200);
    saturnVdebug("Second stage separation failure");
}

void loop() {


}

void saturnVdebug(char * messg) {
    Serial.println(messg);
    Serial.println();
    byte mLen = strlen(messg);
    byte charPos = 0;
    byte grp = 0;
    while (charPos < mLen) {
        Serial.print((byte)messg[charPos], OCT);
        Serial.print(' ');
        charPos ++;
        grp ++;
        if (grp >= 4) {
            Serial.print("  ");
            grp = 0;
        }
    }
    Serial.println();
}

...R

Robin2:
We should link that video to everyone who bitches about having to use Serial.print() to debug an Arduino program :slight_smile:

...R

Yeah, two weeks poring over octal listings to validate a reading?

zip-ties on chicken wire