Shop OBEX P1 Docs P2 Docs Learn Events
Basic Stamp 2 and Hard Drive — Parallax Forums

Basic Stamp 2 and Hard Drive

EMPTY_CEMPTY_C Posts: 29
edited 2008-08-19 04:03 in BASIC Stamp
Hey all,

I was wondering if there was anyone who has used a hard drive as a data logger?· I remember a long time ago i asked about using a flash drive and now that is possible but now i wonder if a hard drive can be used.

MtC

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-08-19 02:35
    Why would you want to do that? It would take a lot of I/O pins and a lot of the very limited variables in the Stamp to keep track of things. It's much much easier to use EEPROMs, particularly when you can get 128KByte EEPROMS and connect 4 of them to the same I2C bus to make 1/2MB. For larger logs, there are several dataloggers that can be bought for as little as $35 (Parallax's Memory Stick Datalogger) and handle GBs of information.
  • SRLMSRLM Posts: 5,045
    edited 2008-08-19 03:54
    Question about EEPROM: I've avoided the use of EEPROM for datalogging because of the need to have another program to retrieve the data. Is there a module that can allow the EEPROM to interface with a computer?
  • Mike GreenMike Green Posts: 23,101
    edited 2008-08-19 04:03
    Use the same Stamp. Either download a retrieval program to the Stamp that communicates over the serial port used for programming or include both functions in the same program (datalogging and reporting) with the function selected with a switch connected to a spare I/O pin and checked during the program's initialization (after power on or a reset).

    If you use a BS2pe instead of a BS2, you also have a total of 32K of EEPROM in the Stamp itself with half of it set aside for datalogging and the other half usable for either programming or data. If your datalogging needs are small, that would be the simplest solution.
Sign In or Register to comment.