Project showcase
SMD-flipper

SMD-flipper © GPL3+

Two stepper motors and an Arduino to turn around an SMD part.

  • 2,740 views
  • 0 comments
  • 2 respects

Components and supplies

Necessary tools and machines

3drag
3D Printer (generic)
Dremel multitool

About this project

For my manual pick and place machine, it would be handy to have a tool that flips SMD parts that are upside down in the storage box.

The supplier has such a tool but it is not that cheap, so could I make such a tool myself?

Yes...

First, my son has designed the needed parts with Solid Works and prepared them for 3D printing.

After that, I wrote a test program for driving the stepper motors.

I'm using a Arduino Nano Every because of his price and the dimensions.

It is not that fast but it works. Power supply, plexi and switch are recup material.

Here is the result:


Code

SMD-flipperArduino
This is the code on the Arduino Nano Every
/*
SMD-flipper

Device for flipping SMD-part.

created september 2020

By Staf Van Gestel

Based on program found on https://arduino-lessen.nl

the position of the two tools must be correct before starting the device
*/

#include <AccelStepper.h>           // Gebruikt AccelStepper bibliotheek

#define motor1Pin1  4               // IN1 pin op de ULN2003A driver
#define motor1Pin2  5               // IN2 pin op de ULN2003A driver
#define motor1Pin3  6               // IN3 pin op de ULN2003A driver
#define motor1Pin4  7               // IN4 pin op de ULN2003A driver
#define motor2Pin1  8               // IN1 pin op de ULN2003A driver
#define motor2Pin2  9               // IN2 pin op de ULN2003A driver
#define motor2Pin3  10              // IN3 pin op de ULN2003A driver
#define motor2Pin4  11              // IN4 pin op de ULN2003A driver
#define StartSwitch 2               // D2 for switch.
int stepsPerRevolution = 64;        // stappen per omwenteling - steps per rotation
float degreePerRevolution = 5.625;  // graden per omwenteling - degrees per rotation

AccelStepper stepper1(AccelStepper::HALF4WIRE, motor1Pin1, motor1Pin3, motor1Pin2, motor1Pin4);
AccelStepper stepper2(AccelStepper::HALF4WIRE, motor2Pin1, motor2Pin3, motor2Pin2, motor2Pin4);

void setup() {
  pinMode(2,INPUT_PULLUP);           // activation switch
  stepper1.setMaxSpeed(1000.0);      // max motorsnelspeed
  stepper1.setAcceleration(200.0);   // acceleration speed
  stepper1.setSpeed(1000);           // rotation speed
  stepper2.setMaxSpeed(1000.0);      // max motorspeed
  stepper2.setAcceleration(200.0);   // acceleration speed
  stepper2.setSpeed(1000);           // rotation speed
}


void loop(){ 
if (digitalRead(StartSwitch) == false) {
   stepper1.moveTo(degToSteps(-180));
   do {   
   }
   while (stepper1.run()); // turn first tool on top of the other.

   stepper2.moveTo(degToSteps(-180));
   stepper1.moveTo(degToSteps(0));
   do {   
   stepper1.run();
   }
   while (stepper2.run() && stepper1.run());  // here both steppers are moved to next position
   stepper2.moveTo(degToSteps(0));
   do {   
   }
   while (stepper2.run()); // second tool is moved to his initial position, smd-part is turned around.
   }  
}

// calculate the # if degrees to # of steps
// f.e. 45° = 64 / 5,625 = 1024 stappen
 */
float degToSteps(float deg) {
  return (stepsPerRevolution / degreePerRevolution) * deg;
}

Custom parts and enclosures

3D files
These are the files that are created for our 3D-printer
smd-flipper3d_0VVyvfYWaR.zip

Comments

Similar projects you might like

Otto DIY build your own robot in one hour!

Project tutorial by Camilo Parra Palacio

  • 163,976 views
  • 138 comments
  • 421 respects

MK2 Plus Robot Arm Controller

Project tutorial by Samira Peiris

  • 14,709 views
  • 7 comments
  • 35 respects

3D Printed and Expandable Robot for Arduino

Project showcase by Matthew Hallberg

  • 5,441 views
  • 5 comments
  • 26 respects

Lighthouse 3D Print and Arduino

Project showcase by Anton

  • 3,525 views
  • 1 comment
  • 9 respects

Bugboy!!!

Project showcase by lefthandsh8k

  • 1,472 views
  • 0 comments
  • 6 respects

How to Make a Big 3D Printer at Home Using Arduino

Project tutorial by Desi Engineer

  • 89,250 views
  • 26 comments
  • 215 respects
Add projectSign up / Login