Home

Week Sixteen : Machine Design



Assignment


In this week, we had to

Actuate and Automate your machine
s
Document the group project and your individual contribution

Arduino Mega

The Arduino MEGA ADK is a microcontroller board based on the ATmega2560. It has a USB host interface to connect with computers.It has 54 digital input/output pins (of which 15 can be used as PWM outputs), 16 analog inputs, 4 UARTs (hardware serial ports), a 16 MHz crystal oscillator, a USB connection, a power jack, an ICSP header, and a reset button

Ramps14

Ramps is short for reprap Arduino mega pololu shield, it is mainly designed for the purpose of using pololu stepper driven board (similar to 4988 driven board). Ramps can only work when connected to its mother board Mega 2560 and 4988/DRV8825


Sketch

I have suggested a small part in programming where the stepper motor take the head forward and backward

Code for running Stepper forward (x axis - which head moves)

  

    void forward(int number) {
              digitalWrite(X_DIR_PIN    , HIGH);  // Forward movement of motor
              for (int i = 0; i <= number; i++)
              {
                digitalWrite(X_STEP_PIN    , HIGH);
                _delay_us(500);
                digitalWrite(X_STEP_PIN    , LOW);
                _delay_us(500);
              }
            }
  

Code for running Stepper backward (x axis - which head moves)

  
void forward(int number) {
          digitalWrite(X_DIR_PIN    , LOW); // Backward movement of motor
          for (int i = 0; i <= number; i++)
          {
            digitalWrite(X_STEP_PIN    , HIGH);
            _delay_us(500);
            digitalWrite(X_STEP_PIN    , LOW);
            _delay_us(500);
          }
        }
      
    


I and Akila figured out that the solenoid could be connected to the fan port D9 of RAMPS1.4 shield, which can be switched on and off with the Gcodes M106 and M107 respectively.

Me and Vishnu worked on placing the board and motors and routing the wires so that they don’t affect the moving parts of the machine. The printer head and the paper feed mechanism could now move smoothly, and the machine was well-integrated

How it look like







For more Details Visit the below link

ClickHere