Shop OBEX P1 Docs P2 Docs Learn Events
Newbie Question (mountain bike data collection) — Parallax Forums

Newbie Question (mountain bike data collection)

ArchiverArchiver Posts: 46,084
edited 2003-04-04 15:54 in General Discussion
Hello

I'm a real beginner at basic stamps, well I'm not even a beginner yet.

Im a pro mountain biker & I want to measure the bumpiness (vertical
accereration/displacement) of my bike as I ride (with the view of optimising
tyre and suspension settings to get a smoother (=faster) ride).

I have a sensor (home made arrangement of foam springs, magnet and hall effect
sensor,
www.timvincent.co.nz/sensor.jpg if anyone knows where I might find something
better that is also cheap I am interested). I'm doing some testing using a
device that allows me to capture analog voltages through the parallel port of my
laptop.

Riding with my laptop strapped to my back isn't a long term option. So I'm
looking for an alternative, commercial dataloggers i've found are either too
big, too expensive or too slow (sample rate).

I am interested to know if a basic stamp can do the job. From what I have read I
can measure the analog voltage output of my sensor and save the data on the
EEPROM of the stamp.

Can anyone tell me what sort of sampling rate I could achieve, how much data I
could store (can I add more memory) and is there likely to be a program already
written that I could modify for this purpose.

Also what kind of setup would work best. In the couple of days that I've been
reading about basic stamps I've only been confused by the wide range of info,
boards, chips brands etc available.

Any advice much appreciated.

Tim Vincent

www.timvincent.co.nz


[noparse][[/noparse]Non-text portions of this message have been removed]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-04-04 04:45
    The Basic Stamp does not have a built-in analog to digital converter,
    but it is possible to add one as a separate chip. Well, it is not
    fair to say that the Stamp does not have an built-in ADC, because for
    some signals the PULSIN or RCtime or COUNT commands can serve that
    purpose. Those are probably not suitable for your clever Hall
    effect/magnet sensor, though. Look through the archive here and you
    will find references to the Analog Devices accelerometer, and at
    Parallax you will find their new Memsic accelerometer. Those will
    have quite a high frequency response.

    As to sample rate, with the Stamp you might get up on the order of
    100 samples per second, but not too much faster than that. The Stamp
    runs interpreted PBASIC, which is relatively slow. That rate might
    be enough for your purpose, if the sensor is damped and the really
    high frequencies don't matter. In any event, you will not be able to
    store data at that rate in the Stamp's own memory. There is not
    enough RAM for many samples, and the eeprom is slow (several
    milliseconds to burn a byte.). You could pre-reduce the data and
    occasionally store average values, minimum, maximum, etc. You could
    conceivably store larger amounts of data in an external memory chip,
    and then offload that for post-processing. The Stamp does not have
    enough memory and horsepower to do things like DFTs in situ.


    -- regards,
    Tracy Allen.
    electronically monitored ecosystems
    mailto:tracy@e...
    http://www.emesystems.com





    >Hello
    >
    >I'm a real beginner at basic stamps, well I'm not even a beginner yet.
    >
    >Im a pro mountain biker & I want to measure the bumpiness (vertical
    >accereration/displacement) of my bike as I ride (with the view of
    >optimising tyre and suspension settings to get a smoother (=faster)
    >ride).
    >
    >I have a sensor (home made arrangement of foam springs, magnet and
    >hall effect sensor,
    >www.timvincent.co.nz/sensor.jpg if anyone knows where I might find
    >something better that is also cheap I am interested). I'm doing some
    >testing using a device that allows me to capture analog voltages
    >through the parallel port of my laptop.
    >
    >Riding with my laptop strapped to my back isn't a long term option.
    >So I'm looking for an alternative, commercial dataloggers i've found
    >are either too big, too expensive or too slow (sample rate).
    >
    >I am interested to know if a basic stamp can do the job. From what I
    >have read I can measure the analog voltage output of my sensor and
    >save the data on the EEPROM of the stamp.
    >
    >Can anyone tell me what sort of sampling rate I could achieve, how
    >much data I could store (can I add more memory) and is there likely
    >to be a program already written that I could modify for this purpose.
    >
    >Also what kind of setup would work best. In the couple of days that
    >I've been reading about basic stamps I've only been confused by the
    >wide range of info, boards, chips brands etc available.
    >
    >Any advice much appreciated.
    >
    >Tim Vincent
    >
    >www.timvincent.co.nz
    >
    >
    >[noparse][[/noparse]Non-text portions of this message have been removed]
    >
    >
    >To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    >from the same email address that you subscribed. Text in the
    >Subject and Body of the message will be ignored.
    >
    >
    >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-04 15:54
    Correct. I've found the ADC0831 (8-bit resolution, 0..5V input)
    very easy to interface and use. It's an 8-pin DIP -- and in
    fact Parallax has an app-mod on their site for it to get started.


    --- In basicstamps@yahoogroups.com, Tracy Allen <tracy@e...> wrote:
    > The Basic Stamp does not have a built-in analog to digital
    converter,
    > but it is possible to add one as a separate chip. Well, it is not
    > fair to say that the Stamp does not have an built-in ADC, because
    for
    > some signals the PULSIN or RCtime or COUNT commands can serve that
    > purpose. Those are probably not suitable for your clever Hall
    > effect/magnet sensor, though. Look through the archive here and
    you
    > will find references to the Analog Devices accelerometer, and at
    > Parallax you will find their new Memsic accelerometer. Those will
    > have quite a high frequency response.
    >
    > As to sample rate, with the Stamp you might get up on the order of
    > 100 samples per second, but not too much faster than that. The
    Stamp
    > runs interpreted PBASIC, which is relatively slow. That rate might
    > be enough for your purpose, if the sensor is damped and the really
    > high frequencies don't matter. In any event, you will not be able
    to
    > store data at that rate in the Stamp's own memory. There is not
    > enough RAM for many samples, and the eeprom is slow (several
    > milliseconds to burn a byte.). You could pre-reduce the data and
    > occasionally store average values, minimum, maximum, etc. You could
    > conceivably store larger amounts of data in an external memory
    chip,
    > and then offload that for post-processing. The Stamp does not have
    > enough memory and horsepower to do things like DFTs in situ.
    >
    >
    > -- regards,
    > Tracy Allen.
    > electronically monitored ecosystems
    > mailto:tracy@e...
    > http://www.emesystems.com
    >
    >
    >
    >
    >
    > >Hello
    > >
    > >I'm a real beginner at basic stamps, well I'm not even a beginner
    yet.
    > >
    > >Im a pro mountain biker & I want to measure the bumpiness
    (vertical
    > >accereration/displacement) of my bike as I ride (with the view of
    > >optimising tyre and suspension settings to get a smoother
    (=faster)
    > >ride).
    > >
    > >I have a sensor (home made arrangement of foam springs, magnet and
    > >hall effect sensor,
    > >www.timvincent.co.nz/sensor.jpg if anyone knows where I might
    find
    > >something better that is also cheap I am interested). I'm doing
    some
    > >testing using a device that allows me to capture analog voltages
    > >through the parallel port of my laptop.
    > >
    > >Riding with my laptop strapped to my back isn't a long term
    option.
    > >So I'm looking for an alternative, commercial dataloggers i've
    found
    > >are either too big, too expensive or too slow (sample rate).
    > >
    > >I am interested to know if a basic stamp can do the job. From what
    I
    > >have read I can measure the analog voltage output of my sensor and
    > >save the data on the EEPROM of the stamp.
    > >
    > >Can anyone tell me what sort of sampling rate I could achieve, how
    > >much data I could store (can I add more memory) and is there
    likely
    > >to be a program already written that I could modify for this
    purpose.
    > >
    > >Also what kind of setup would work best. In the couple of days
    that
    > >I've been reading about basic stamps I've only been confused by
    the
    > >wide range of info, boards, chips brands etc available.
    > >
    > >Any advice much appreciated.
    > >
    > >Tim Vincent
    > >
    > >www.timvincent.co.nz
    > >
    > >
    > >[noparse][[/noparse]Non-text portions of this message have been removed]
    > >
    > >
    > >To UNSUBSCRIBE, just send mail to:
    > > basicstamps-unsubscribe@yahoogroups.com
    > >from the same email address that you subscribed. Text in the
    > >Subject and Body of the message will be ignored.
    > >
    > >
    > >Your use of Yahoo! Groups is subject to
    http://docs.yahoo.com/info/terms/
Sign In or Register to comment.