Skip to content

The code and the files for making a simple laboratory microcentrifuge with an Arduino, an ESC and with the motor of a Hard Drive Disc.

License

Notifications You must be signed in to change notification settings

OpenLabMadrid/HDD-centrifuge

Repository files navigation

HDD centrifuge

The design of this machine have been made by OpenLab Madrid, getting the initial idea in the hackteria wiki (https://hackteria.org/wiki/Hacked_Hard-disc_Centrifuge) and adding some changes to adapt the machine to our needs.

Electronics

For the detailed descriptions and links to the components that we have buy see the Bill Of Materials (BOM) file in the "Electronics" folder.

Power supply

For the power supply we are using an Aliexpress 12V 3A one. Less than 3A may be insufficient for this centrifuge.

Understanding the electronic components

alt text

Part 1: Esc controller. This is the driver of the HDD Brushless motor. It send a triphasic PWM signal over 3 pins of the motor. The problem is that motors use to have 4 pins. You need to found the 3 pins attached to the 3 inductors of the motor and "discard" the pin associated to the common ground of them. To made this, you will need a polimeter to measure the resistances between the different pins. The pins of the three inductors will have the same resistance between them and the ground. You will need to keep measuring the resistance until you found the pin with which the other 3 have the same resistance. This is the ground, the other 3 must be the inductor pins. Connect them to the ESC controller.

alt text

Part 2: Arduino nano. For mounting all the electronic chips, we have been using perforated PCBs but we are planning to migrate to printed PCB to save the huge time used soldering the wires. The Arduino nano is the main controller. We are using the chinese clone (from Aliexpress, Banggood,...) with the TTL CH340 chip which needs a special driver to program it from the PC. You could find easily on google searching for "CH340 arduino driver".

The pins that we are using are:

  • LCD
    • SDA: pin A4
    • SCL: pin A5
    • GND: Arduino GND
    • VCC: Arduino +5 V
  • Encoder
    • Encoder output A: pin D3
    • Encoder output B: pin D4
    • Encoder button output: pin D2
  • ESC
    • ESC digital control: pin D9
    • Enable ESC: pin D6

Part 3: DC-DC converter. This converter transform the alimentation provided by the power supply (12V) to the voltage that arduino needs (5V). Arduino have a built-in dc-dc converter that can manage 12V but this is the upper limit of the converter, and because the voltage of the power supply could vary a bit, this is the way to protect the Arduino. This converter also have capacitors to stabilize the power supply noise, that will be good for our project.

Part 4: LCD. We are using a 0.96" OLED which provide 128x64 pixel resolution. The advantages are that it´s cheap, it only uses 2 pins apart of the alimentation ones and you can draw graphics, logos and elegant menus on it.

Part 5: Encoder. Is the best way we hava found to introduce the orders in the centrifuge. You can learn a lot of this sistems with a simple search on google like "Arduino Encoders".

The result

alt text

To solder the components between eachothers we are using awg30 wire:

alt text

Making the solid parts (case and rotor)

Step 1: Case

The case files are in the "Laserable and 3D printable" folder. Here, you will find the SolidWorks assembly files of all the parts you will need and the .dxf files to cut in a laser cutter machine. If you don´t have the SolidWorks software don´t worry, we have attached a .jpg capture of all the case mounted in the "Images of the mounted device" folder:

alt text

The material must be 3mm thickness and we have used MDF for the HDD enclosing and transparent acrylic for the cover. The MDF have been stuck with white glue and the acrylic with cloroform or cyanoacrylate (better the first one).

Step 2: Rotor

You can find the .stl file in the "Laserable and 3D printable" folder. We have printed it in PLA, 0.2mm thickness and 20% infill without supports.

It is true that the result of the 3D printer is not perfectly symmetrical and in the case that we are managing more g forces, it will be dangerous to install this rotor in a centrifuge, but with which we are managing, you won´t have problems. A more symmetrical rotor made from acrilic and laser cutting machine, could be found in the Hackteria wiki.

Installing the code

Step 1: Installing the libraries

Download the u8glib library (The folder called ug8lib inside the one called Arduino Code) and install it following the normal process (https://www.arduino.cc/en/Guide/Libraries) or copy it to "\Documents\Arduino\libraries" path.

Step 2: Burn the code in your Arduino

You must select Arduino nano as board, ATMEGA328 as processor, and the port in which the arduino is connected.

If the port is not listed, make sure that you have installed the drivers from the chinese clone of Arduino about which we have been speaken in the previous steps.

alt text

And enjoy it!

Support

Any question could be made sending an email to [email protected], feel free to ask anything.

About

The code and the files for making a simple laboratory microcentrifuge with an Arduino, an ESC and with the motor of a Hard Drive Disc.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published