Hack Notes CVA 090718

From Noisebridge
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Code calibrated

if the motor function is like this:

    case 1:
      shiftOut(serial_in, SRCK, LSBFIRST, B10000000);
      break;
    case 2:
      shiftOut(serial_in, SRCK, LSBFIRST, B01000000);
	  break;
    case 3:
      shiftOut(serial_in, SRCK, LSBFIRST, B00100000);
      break;
    case 4:
      shiftOut(serial_in, SRCK, LSBFIRST, B00010000);
	  break;
    case 5:
      shiftOut(serial_in, SRCK, LSBFIRST, B00001000);
      break;
    case 6:
      shiftOut(serial_in, SRCK, LSBFIRST, B00000100);
      break;
    case 7:
      shiftOut(serial_in, SRCK, LSBFIRST, B00000010);
      break;
    case 8:
      shiftOut(serial_in, SRCK, LSBFIRST, B00000001);

then the motors actually turn on in an order more like 2,1,4,3,6,5,8,7. So, here is how it should look:

    case 1:
      shiftOut(serial_in, SRCK, LSBFIRST, B01000000);
      break;
    case 2:
      shiftOut(serial_in, SRCK, LSBFIRST, B10000000);
	  break;
    case 3:
      shiftOut(serial_in, SRCK, LSBFIRST, B00010000);
      break;
    case 4:
      shiftOut(serial_in, SRCK, LSBFIRST, B00100000);
	  break;
    case 5:
      shiftOut(serial_in, SRCK, LSBFIRST, B00000100);
      break;
    case 6:
      shiftOut(serial_in, SRCK, LSBFIRST, B00001000);
      break;
    case 7:
      shiftOut(serial_in, SRCK, LSBFIRST, B00000001);
      break;
    case 8:
      shiftOut(serial_in, SRCK, LSBFIRST, B00000010);
      break;

Goofy, but changing code is easier than designing PCBs so it'll have to do!

Motors not quite calibrated for my big ankle

Is the veltex insert in my test Northpaw stock length? I hope it's arbitrarily shorter than all the ones we already cut; when stuffed inside the armature and lined with pager motors, it's a good half inch at least _too short_ and even with the last two motors at the very very edges, the gap between motor 1 and motor 8 is just way too big! Ack!

Some messing around with the belt

  • First off, my attempt to rewire the LED board tester is totally FUBAR. Gah.
  • Next, much time was wasted playing with the code before realizing the belt's motor array wiring is also totally FUBAR.
    • The two power rails seem to be connected. (I must have thought I did a basic electrical test after first building the array, when clearly I never did until tonight...).
    • This is most likely happening on the half of the array were one power rail is being cut and soldered to while the other rail is underneath it. Either the trimming of the insulation, or the soldering, or both, is creating enough of a connection to mess things up.
    • It's not a perfect connection, as motors on one side run stronger than the other.
    • Extensive multimeter funtime and tedious wire surgery will be needed.
      • This failure bodes poorly for our current motor array assembly procedure in general.