I'm working on trying to control a hard drive with an Arduino Uno, but I'm having trouble with the power supply. From what I know, both the Molex Mate-n-Lok and the new SATA connectors both have 2 grounds, a 5V and a 12V power in. I'm wondering what the purpose of the 12V power supply is. I suspect it's used to drive the motor but I'm not sure.
-
Which hard drive? Are you planning to use it as a mechanical device, or to actually read/write to the disk? – Nick Gammon Aug 28 '16 at 22:35
-
@NickGammon Any ATA Compliant HDD, I plan to use the hdd as an hdd, but currently am having issues with power supply. At the moment, I'm working with an IDE, but may move to a SATA if I don't have enough pins – MicroTransactionsMatterToo Aug 28 '16 at 22:50
-
3The hard drive lists what voltages and currents it needs on the casing. – Ignacio Vazquez-Abrams Aug 28 '16 at 23:09
-
@IgnacioVazquez-Abrams Yes, the standards indicate that there will be a 5V supply needed and a 12v. What I want to know is whether the 12v supply is crucial – MicroTransactionsMatterToo Aug 29 '16 at 00:15
-
Have you looked at the hard drive? On its casing? – Ignacio Vazquez-Abrams Aug 29 '16 at 00:20
-
Yes, it says 12v and 5V. The ATA standard has two inputs for power, one at 5V one at 12V. I'm not asking what the voltages are, I'm asking what the 12v supply is for, and whether I need to power it – MicroTransactionsMatterToo Aug 29 '16 at 00:32
-
1This would depend on the drive. Since you won't state a specific one, it is off topic as too broad. But regardless, it is off topic because this is the Arduino site, not the hard disk drive site. Also, you aren't going to talk SATA with an Arduino. But you can get away with using only 8 of the 16 bits on the IDE bus, if you are willing to waste half the capacity, as the commands are only 8-bit. For anything practical, SD cards will probably serve you better, if not you should probably look at something better than an Arduino. – Chris Stratton Aug 29 '16 at 05:02
-
`but may move to a SATA if I don't have enough pins` That's a laugh for a start... Do you even have the slightest clue about hard-drive interfacing and protocols? – Majenko Aug 29 '16 at 11:20
-
1I would love to see you try and generate a 1.5Gbps LVDS signal from an Arduino... and that's just for the old-fashioned SATA-1. It's 6Gbps these days... – Majenko Aug 29 '16 at 11:22
-
The "sensible" option would be to get a USB Host Shield and a USB to SATA adapter cable. – Majenko Aug 29 '16 at 15:48
-
An SD card is much more practical if you just want to store lots of data. With a $15 (or so) interface board you can connect the card to your Arduino using SPI and have gigabytes of storage space. – Nick Gammon Aug 29 '16 at 20:56
-
@Majenko Not much, but I'm reading the ATA standards at the mo – MicroTransactionsMatterToo Aug 29 '16 at 23:16
-
Also, the point of this is not using the HDD as such, it's the challenge of interfacing with it. If it's difficult, all the better – MicroTransactionsMatterToo Aug 29 '16 at 23:16
2 Answers
Judging by my old copy of "Upgrading and repairing PCs" - which I found a quote for on Google Books - the 12V supply is for the spindle motor, and it says:
Spindle motors, particularly on the larger form-factor drivers, can consume a great deal of 12V power.
- 35,792
- 12
- 63
- 121
-
Thanks, answered the question clearly and succinctly. Without casting aspersions on the idea itself – MicroTransactionsMatterToo Aug 29 '16 at 23:18
3.5" hard drives require 12V and 5V for the motor and logic respectively. SATA ones may also require 3.3V for the logic. Most smaller laptop drives (2.5") only require 5V and 3.3V. Some 2.5" drives also require 12V.
You will not be able to interface a SATA hard drive to an Arduino without some kind of SATA hard drive controller, which you could possibly build using a fast FPGA (in which case why would you bother with an Arduino?). For SATA-I (way out of date now) you need to generate a 1.5Gbps LVDS (Low-Voltage Differential Signal) data stream. For SATA-3.2 that is now 16Gbps. Impossible on an Arduino.
PATA (Parallel ATA) is more realistic, although you need a lot of pins since it is a 16-bit parallel interface. Timing is less critical since it is synchronous with the read / write strobes.
- 103
- 3
- 103,876
- 5
- 75
- 133
-
Yes, I'm currently working with an IDE HDD, which is PATA. – MicroTransactionsMatterToo Aug 29 '16 at 23:14