CD-ROM Agitator

by dannewoo in Circuits > Arduino

18788 Views, 46 Favorites, 0 Comments

CD-ROM Agitator

2013-01-30 18.56.30.jpg
These are step by step instructions on how to hack an old CD-ROM drive and turn it into a agitator for PCBs, biohacking projects and anything else you might need to shake continuously. All you need is a CD-ROM drive, breadboard, H-Bridge, a 10Kohm resistors Arduino, plastic container and power source for the Arduino (a toggle switch is optional).

Get a Old CD-ROM Drive

2013-01-30 18.51.58.jpg

How to Set Up the Arduino and Breadboard

dcmotor_bb2.png

The H-Bridge Connected to the Arduino (No Toggle Switch)

2013-01-30 18.50.48.jpg
// Arduino Code:

const int switchPin = 2;    // switch input
const int motor1Pin = 3;    // H-bridge leg 1 (pin 2, 1A)
const int motor2Pin = 4;    // H-bridge leg 2 (pin 7, 2A)
const int enablePin = 9;    // H-bridge enable pin


void setup() {
  // set the switch as an input:
  pinMode(switchPin, INPUT);

  // set all the other pins you're using as outputs:
  pinMode(motor1Pin, OUTPUT);
  pinMode(motor2Pin, OUTPUT);
  pinMode(enablePin, OUTPUT);
//  pinMode(ledPin, OUTPUT);

  // set enablePin high so that motor can turn on:
  digitalWrite(enablePin, HIGH);
}

void loop() {
  // if the switch is high, motor will turn on one direction:

    digitalWrite(motor1Pin, LOW);   // set leg 1 of the H-bridge low
    digitalWrite(motor2Pin, HIGH);  // set leg 2 of the H-bridge high
  delay(500);                  // waits for a second

  // if the switch is low, motor will turn in the other direction:

    digitalWrite(motor1Pin, HIGH);  // set leg 1 of the H-bridge high
    digitalWrite(motor2Pin, LOW);   // set leg 2 of the H-bridge low
  delay(500);                  // waits for a second

}

Take Apart the CD-ROM Drive and Solder 2 Cables to the Motor

2013-01-30 18.52.52.jpg

Put the Arduino and Breadboard in the CD-ROM Housing

2013-01-30 18.53.38.jpg

Screw the CD-ROM Drive Back Onto the Housing That Is Now Flipped Over

2013-01-30 18.56.14.jpg

Glue a Plastic Container to the CD-ROM Tray, Put Your Contents in and Plug It In!

2013-01-30 18.56.30.jpg