Link to this comparison view

Both sides previous revision Previous revision
fabricademy2017:students:cheung:week_7_-_open_source_hardware_-_from_fibres_to_fabric [2018/04/25 21:57]
wei-ying.cheung
fabricademy2017:students:cheung:week_7_-_open_source_hardware_-_from_fibres_to_fabric [2018/04/25 22:06]
wei-ying.cheung
Line 29: Line 29:
 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: 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}}+{{:​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. We used the Arduino sketch given by Adriana to actuate a servo motor.
Line 54: 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: