Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
fabricademy2017:students:cheung:week_7_-_open_source_hardware_-_from_fibres_to_fabric [2018/03/03 23:15]
wei-ying.cheung [Future plan]
fabricademy2017:students:cheung:week_7_-_open_source_hardware_-_from_fibres_to_fabric [2018/04/25 22:06]
wei-ying.cheung
Line 27: Line 27:
 We sewed the bottom of the cable tie to the servo motor and used the hole at the top of the cable tie to thread the yarn through. We needed to stabilise the '​needle',​ so we added a piece of wood along the centre of the machine and a pathway for it to go through - for this we used a piece of a straw. We sewed the bottom of the cable tie to the servo motor and used the hole at the top of the cable tie to thread the yarn through. We needed to stabilise the '​needle',​ so we added a piece of wood along the centre of the machine and a pathway for it to go through - for this we used a piece of a straw.
  
-We connected the electronics and used the Arduino sketch given by Adriana for a servo motorand added 2 buttons ​one button to turn the blades, and the other button to turn the blades back.+We connected the servo motor to the Arduino ​and added 2 buttons ​(one button to turn the blades, and the other button to turn the blades back) as in the schematic below: 
 + 
 +{{:​fabricademy2017:​students:​cheung:​open_hardware:​schematic_-_1_servo_to_arduino.jpg?​nolink&​600x324|schematic_-_1_servo_to_arduino.jpg}} 
 + 
 +We used the Arduino sketch given by Adriana to actuate a servo motor.
  
 {{:​fabricademy2017:​students:​cheung:​open_hardware:​first_test_-_description.jpg?​nolink&​600x454|first_test_-_description.jpg}} {{:​fabricademy2017:​students:​cheung:​open_hardware:​first_test_-_description.jpg?​nolink&​600x454|first_test_-_description.jpg}}
Line 50: Line 54:
  
 {{:​fabricademy2017:​students:​cheung:​open_hardware:​our_version_2_1.jpg?​nolink&​600x450|our_version_2_1.jpg}} {{:​fabricademy2017:​students:​cheung:​open_hardware:​our_version_2_1.jpg?​nolink&​600x450|our_version_2_1.jpg}}
 +
 +We connected the 8 servo motors to the Arduino in the same way as before (ground to ground, VCC to 5 volts) and connected each motor to a digital pin (pins used were: 5,​6,​7,​8,​9,​10,​11,​12).
  
 In the Arduino sketch, we added the pin numbers for all the servo motors. Our final code looked like this: In the Arduino sketch, we added the pin numbers for all the servo motors. Our final code looked like this:
Line 69: Line 75:
 void setup() { void setup() {
  
-for (int i = 0; i < num_servos; i++) {\\+for (int i = 0; i < num_servos; i ) {\\
 allServos[i].attach(pin_numbers[i]);​\\ allServos[i].attach(pin_numbers[i]);​\\
 } }
Line 84: Line 90:
  
 if(buttonState ==HIGH && position < 150){\\ if(buttonState ==HIGH && position < 150){\\
-for (int i = 0; i < num_servos; i++) {\\ +for (int i = 0; i < num_servos; i ) {\\ 
-allServos[i].write(position++);\\+allServos[i].write(position );\\
 } }
  
Line 91: Line 97:
 }\\ }\\
 if(buttonState2 == HIGH && position > 3){\\ if(buttonState2 == HIGH && position > 3){\\
-for (int i = 0; i < num_servos; i++) {\\+for (int i = 0; i < num_servos; i ) {\\
 allServos[i].write(position–);​\\ allServos[i].write(position–);​\\
 }\\ }\\
Line 106: Line 112:
  
 As well as taking part in planning discussions,​ my specific contribution to the project was cutting the wooden pieces to go across the loom, drilling the holes for the needles and helping to sew some needles to the motors. As well as taking part in planning discussions,​ my specific contribution to the project was cutting the wooden pieces to go across the loom, drilling the holes for the needles and helping to sew some needles to the motors.
- 
-==== Future plan ==== 
- 
-In order to digitalise our prototype, Liane designed the wooden structure in Illustrator so that it can be laser cut to size. She also designed needles that could perhaps be laser cut too, although we would need to research this a bit more regarding which material would be best. We would also need to test if the length and joints work well. 
- 
-{{:​fabricademy2017:​students:​cheung:​open_hardware:​weavingmachine_scheme-01.jpg?​nolink&​600x450|Web}}