walle leg servo holder

walle leg servo holder

thingiverse

Human: I used the SG90 servo in my project, but its low torque made me switch to the MG995, which is stronger. So, I redesigned the servo leg holder. /********************************* WALL-E ERHAN ÖZTÜRK *********************************/ #include <Servo.h> Servo myservo1, myservo2, myservo3; void setup() { myservo1.attach(3); // right left head myservo2.attach(4); // Right facing servo. Forward-Backward myservo3.attach(5); // Left facing servo. Forward-Backward Serial.begin(9600); // serial communication speed } void loop() { ///////////// BLUETOOTH COMMUNICATION ////////////////////////////////////////////////////////////// if(Serial.available()>= 2 ) ///////////////////////////////////////////////// { // unsigned int servopos = Serial.read(); // Bluetooth sent data is 2 bytes long. unsigned int servopos1 = Serial.read(); // Received data is read and printed to the serial monitor. unsigned int data = (servopos1 *256) + servopos; // Serial.println(data); ///////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////// SERVO CONTROLLER /////////////////////////////////////////////////////////////////////// if (data >= 1000 && data <1180) //////////////////////////////////////////////// { // int servo1 = data; // If received data is between 1000-1180, the received data servo1 = map(servo1, 1000,1180,1,170); // is mapped to a value between 80-170 and assigned to servo1. myservo1.write(servo1); // delay(10); // } ///////////////////////////////////////////////// if (data >=2000 && data <2180) //////////////////////////////////////////////// { // int servo2 = data; // If received data is between 2000-2180, the received data servo2 = map(servo2,2000,2180,1,180); // is mapped to a value between 30-120 and assigned to servo2. myservo2.write(servo2); // delay(10); // } ///////////////////////////////////////////////// if (data >=3000 && data < 3180) ///////////////////////////////////////////////// { // int servo3 = data; // If received data is between 3000-3180, the received data servo3 = map(servo3, 3000, 3180,1,180); // is mapped to a value between 80-140 and assigned to servo3. myservo3.write(servo3); // delay(10); // } // }

Download Model from thingiverse

With this file you will be able to print walle leg servo holder with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on walle leg servo holder.