loading
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).

Step 1: Get a Old CD-ROM Drive

Step 2: How to Set Up the Arduino and Breadboard

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

// 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

}

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

Step 5: Put the Arduino and Breadboard in the CD-ROM Housing

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

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

<p>if I want to increase the speed of agitation do I just adjust the time of delay in the code?</p>
Poor drive :(
Hi, <br> <br>wich H-Bridge are you using? SN754410, L293 or another one? <br> <br>Thanks
Hey there, <br>Ah forgot to include the type, sorry about that. I used the L293NE H-Bridge but you can also use the SN754410. I used this tutorial as a reference when putting it together. Hope thats helpful. Cheers. <br>http://itp.nyu.edu/physcomp/Labs/DCMotorControl
Very Cool!! <br>
Bubbling air through the bath is so much more effective. Doing that not only agitates but oxygenates the fluid too. I made mine with one of those 12 volt tire inflation compressors. I stuck a spray nozzle off a spent spray can on it and it is perfect.

About This Instructable

13,996views

36favorites

License:

More by dannewoo:Stepper Motor Generator How to Etch a PCB CD-ROM Agitator 
Add instructable to: