mcanet/knitic

Not all the needles that should knit are knitting

Closed this issue · 6 comments

Thanks for your new Arduino testing sketcheses and last releases of the Processing & Arduino soft. We did tests on solenoids and sensors and it looks good. But still having problems with pixels. Not all the needles that should knit are knitting.

Can you describe more detail the problem. Do you image is in black and white image? which model you using?

/////////////////////////// test 1
With your Arduino solenoides testing code "test_solenoids.ino"
digitalWrite(amegaPinsArray[i], LOW); // all stitches goes on the D position
digitalWrite(amegaPinsArray[i], LOW); // all stitches goes on the B position
Solenoides looks ok.

/////////////////////////// test 2
With your Arduino encoders testing code all encoders returns good values/direction
test_encoders_normal_arduino.ino
test_encoders.ino

/////////////////////////// test 3
But when I load the OpenKnitting sketch on to the Arduino board with :

  • Serial.begin(57600);
  • byte lf = '@';
  • byte footer = 126;

And I use the simple Processing sketch "test_solenoids_SendHoleLine.pde" with :

  • myPort = new Serial(this, portName, 57600);
  • byte lf = '@';
  • byte footer = 126;

I can't get the same pattern as shown on the Processing sketch
There is only few stitches set to B position

send to machine
received:
11111111111111110000000000000000111111111111111100000000000000001111111111111111000000000000000011111111111111110000000000000000111111111111111100000000000000001111111111111111000000000000000011111111@

It could be the powering of the solenoids (there is 14Volts on the chip).
But the test 1 is ok !?

I fix test send line to correct speed serial to 115200. Let me know to close issue.

Can you also correct "test_solenoids_SendHoleLine.pde" to fit with "openKnitting_handMadepcb_v0_1"

  • byte lf = 0x40; // actualy set to 0x0A
  • byte footer = 126; // actualy set to 7

done. Let me know how goes

yep!
it work! ;-) ça roule