PBP and a hard dirve?


Closed Thread
Results 1 to 22 of 22
  1. #1

    Default PBP and a hard dirve?

    I have NO clue about this whole subject -- fact is, other than knowing they store data, I'm not well versed on hard drives either.

    Can someone point me in the right direction for a tutorial (if there is one) on how you can possibly interface a pic to read a hard drive?

    For starters, how about certain popular file types like text or mp3 etc?

    Let's say I just want to read a drive that already has be written to on a pc and just read it -- I'm sure that will be easier than the "write to" process.

    THANKS.

  2. #2
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default Re: PBP and a hard dirve?

    A PIC cannot handle data fast enough to read from a hard disk. At the very least, you would need a FPGA with a buffer to grab one sector at a time, then you could process that at PIC speed.

    You can, however, read and write to an SD card.
    Charles Linquist

  3. #3
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    637


    Did you find this post helpful? Yes | No

    Default Re: PBP and a hard dirve?

    Michael,

    Like Charles mentioned you can use SD cards to read and write data. Using SDFS3 you can use cards of up to 2 GB, and using SDFSHC32d you can use cards bigger than 2 GB. Check the next post for reference.

    http://www.picbasic.co.uk/forum/show...highlight=sdfs

    Robert
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,588


    Did you find this post helpful? Yes | No

    Default Re: PBP and a hard dirve?

    What about older IDE drives?

    How "slow" a harddrive could we access using PICs?

    Robert

  5. #5
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default Re: PBP and a hard dirve?

    Quote Originally Posted by Demon View Post
    What about older IDE drives?

    How "slow" a harddrive could we access using PICs?

    Robert
    IDE HD Sure
    See IDE Hard Disk experiments.
    Includes Hex file for PIC16F1870 and schematic.
    I haven't tried but it looks doable.

    Norm

  6. #6
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default Re: PBP and a hard dirve?

    Quote Originally Posted by Normnet View Post
    IDE HD Sure
    See IDE Hard Disk experiments.
    Includes Hex file for PIC16F1870 and schematic.
    I haven't tried but it looks doable.

    Norm
    Should be a PIC16F870

    On the to do list.

    Norm

  7. #7
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,588


    Did you find this post helpful? Yes | No

    Default Re: PBP and a hard dirve?

    Thanks for the link Norm.

    He uses a 4014
    8-bit static shift register:
    http://www.nxp.com/documents/data_sheet/HEF4014B.pdf

    Do we have to do the same? Is there any reason why we couldn't just use 8 pins on a PIC?

    I glanced at Tilmann's page and he doesn't make any reference to that chip. He does say this though:

    The data bus carries the 16-bit data words to and from the
    host. However, when accessing the control and status
    registers of the IDE drives, only data bits 0 through 7 are
    used (8-bit transfer). The data bus lines are tri-state
    lines that may be connected directly to the host's data bus.
    However, to meet the host bus specs and to avoid noise
    problems caused by the interface cable, a bus driver IC
    should be used to decouple the IDE bus and the host bus.
    Robert

  8. #8
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default Re: PBP and a hard dirve?

    Quote Originally Posted by Demon View Post
    Thanks for the link Norm.

    He uses a 4014
    8-bit static shift register:
    http://www.nxp.com/documents/data_sheet/HEF4014B.pdf

    Do we have to do the same? Is there any reason why we couldn't just use 8 pins on a PIC?

    Robert
    The code supplied is HEX only so you will initially have to go with the existing setup as in the schematic.
    The hardware and PIC/PC software shown is for learning however perhaps later a PIC with more pins could replace the 4014 but test as you go.

    Norm

  9. #9
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,588


    Did you find this post helpful? Yes | No

    Default Re: PBP and a hard dirve?

    I wasn't really planning on using his code. I was mostly interested in the commands, schematic and procedure to interface with an IDE drive.

    Robert

  10. #10
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default Re: PBP and a hard dirve?

    Quote Originally Posted by Demon View Post
    I wasn't really planning on using his code. I was mostly interested in the commands, schematic and procedure to interface with an IDE drive.

    Robert
    Demon

    Old post but did you have any luck with the IDE hard drive interface?
    I am giving it a try again.


    Norm

  11. #11
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,588


    Did you find this post helpful? Yes | No

    Default Re: PBP and a hard dirve?

    Not yet. I'm working on setting up a small inventory system using my phone as scanner. I've reached the point of buying stuff I already have.

    It's also a good way to get all my parts organized.

    Robert

  12. #12
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default Re: PBP and a hard dirve?

    You two HAVE to be joking! Wouldn't it be much easier to read a SD card instead? There is even code available.
    Charles Linquist

  13. #13
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default Re: PBP and a hard dirve?

    Quote Originally Posted by Charles Linquis View Post
    You two HAVE to be joking! Wouldn't it be much easier to read a SD card instead? There is even code available.
    Been there done that.
    Trying something new.

    Norm

  14. #14
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,796


    Did you find this post helpful? Yes | No

    Default Re: PBP and a hard dirve?

    Quote Originally Posted by Normnet View Post
    ...Trying something new...
    eeehmm, quite old I'd say...

    Are those HD still on the market?

    Ioannis

  15. #15
    Join Date
    Dec 2012
    Location
    Tennessee
    Posts
    262


    Did you find this post helpful? Yes | No

    Default Re: PBP and a hard dirve?

    next thing you know, he'll want to try using an old MFM harddrive and if that don't work perhaps some old 8" floppy disks. hehe
    Chris


    Any man who has accomplished anything in electronics at one time or another has said... " STOP! WAIT! NOOO! Dangit.... Oh Well, Time to start over..."

  16. #16
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default Re: PBP and a hard dirve?

    I can understand the thrill of being successful at doing something new and hard - but don't you want to channel your efforts toward something that will produce a base for future work?
    Charles Linquist

  17. #17
    Join Date
    Apr 2011
    Location
    Welches, Oregon
    Posts
    198


    Did you find this post helpful? Yes | No

    Default Re: PBP and a hard dirve?

    Some of this "previous" technology is so old as to be effective hardware encryption. Should a burglar even think to steal them, who will have an 8" floppy drive to retrieve your bank information? Similarly, how many companies could loose hundreds of thousands of credit card numbers in a single hack if modems were only 300 baud? Hmmm... perhaps I will move my sensitive information onto 8 Track tapes! Anybody still have a ZIP drive for sale cheap?

  18. #18
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,796


    Did you find this post helpful? Yes | No

    Default Re: PBP and a hard dirve?

    Quote Originally Posted by Amoque View Post
    Anybody still have a ZIP drive for sale cheap?
    I do! But not cheap...

    Ioannis

  19. #19
    Join Date
    Apr 2011
    Location
    Welches, Oregon
    Posts
    198


    Did you find this post helpful? Yes | No

    Default Re: PBP and a hard dirve?

    A quick Google informs me both ZIP drives and 8" floppies are still available! "All things old are new again", wow... Next, I suspect I'll hear that nixie tubes are still in use.

  20. #20
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,796


    Did you find this post helpful? Yes | No

    Default Re: PBP and a hard dirve?


  21. #21
    Join Date
    Dec 2012
    Location
    Tennessee
    Posts
    262


    Did you find this post helpful? Yes | No

    Default Re: PBP and a hard dirve?

    its a shame i guess, I just took about 50 tape drives, 14 zip drives, and a few hundred floppy drives of all types to the metal recycle center
    Chris


    Any man who has accomplished anything in electronics at one time or another has said... " STOP! WAIT! NOOO! Dangit.... Oh Well, Time to start over..."

  22. #22
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,588


    Did you find this post helpful? Yes | No

    Default Re: PBP and a hard dirve?

    I keep all the hard, floppies and CD/DVD drives from scrap PCs. And I've had a LOT of PCs; been in this since they came out.

    SD cards are much more efficient and I woulod use them in important project. It's the challenge of getting the beasts to work that is fun for me. One day I'll get to tackle one but I've alreayd got several other ideas I want to finish first.

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts