Shop OBEX P1 Docs P2 Docs Learn Events
iload mini sensor Parallax — Parallax Forums

iload mini sensor Parallax

kelvin jameskelvin james Posts: 531
edited 2008-05-23 17:18 in General Discussion
Any idea on how to read the frequency output from them? I am assuming a sx or propeller would be required.

Comments

  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-03-07 11:02
    It would be easy using the timers on the sx or the propeller. I believe that you could do it on a basic stamp because I think that they have some method or measuring the time of input pulses. So, I think that it should work with any of the Parallax productssmile.gif The propeller is really nice though and could display it on a tv or monitor though. Guess which I havesmile.gif

    Edit: I just checked the data sheet and I can't see what frequencies it puts out. Also since it is a 5v device if you use a propeller you will need to include a resistor in the output.

    Post Edited (stevenmess2004) : 3/7/2008 11:10:11 AM GMT
  • BeanBean Posts: 8,129
    edited 2008-03-07 16:32
    Does anyone know what the max weight is ? It looks like they make different models for 10lb, 50lb, 100lb, and 200lb.
    The website says 250KHz to 150KHz.

    http://www.loadstarsensors.com/iloadmini.html

    Bean

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.iElectronicDesigns.com

    ·
  • BeanBean Posts: 8,129
    edited 2008-03-07 18:44
    Here is some example formula values I got from the mfg.
    I assume it is okay to post them here.

    NOTE: The values in the pdf·will vary from unit to unit. They are supplied by the mfg.

    Bean.


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.iElectronicDesigns.com



    Post Edited (Bean (Hitt Consulting)) : 3/7/2008 6:54:46 PM GMT
  • kelvin jameskelvin james Posts: 531
    edited 2008-03-08 07:08
    Hmmm Not a lot of info available. I see Loadstar sell a convertor module, changing the frequency to an analog voltage output. I suppose doing a count on the frequency with a propeller would work. Don't think the stamp could read the freq, but maybe with a dac interface.
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-03-08 07:24
    Can't you measure pulse width with the stamps?
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2008-03-08 08:28
    The BASIC Stamp has a COUNT instruction which would work fine for top-end frequencies ranging from 120KHz (BS2) to 416KHz (BS2p). A simple frequency divider IC can bring higher frequencies within counting range. A frequency-to-voltage converter would only complicate things.

    -Phil
  • BeanBean Posts: 8,129
    edited 2008-03-08 13:26
    I agree with Phil.
    The whole point of the iLoad Mini is that the sensor output a digital signal.
    You could just make a data table and interpolate to get a reading (avoiding most of the math).

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.iElectronicDesigns.com

    ·
  • kelvin jameskelvin james Posts: 531
    edited 2008-03-08 18:44
    Thanks for the info. Looks like the bs2p could do it no problem. Could pulsin be used instead of count? Thinking of processing time.
  • BeanBean Posts: 8,129
    edited 2008-03-12 17:19
    I just received my iLoad sensor and here is some info:

    · LoadStar Model: FS-C-010-200-AX

    · Load Range: 10 pounds

    · Freq with no weight: 213,175 Hz (this frequency goes DOWN as weight is added, website says 150KHz is lower limit)

    · Ref Freq: 226,011 Hz (this frequency is not affected by weight)

    · Current: about 2mA (I don't know why they ask for 50mA ? Startup maybe ?)

    · The CTRL pin seems to be pulled-up internally. Connecting to +5 did nothing.

    · If I did the math right, my sensor would indicate 10 pounds with a Fx frequency of 187075 Hz so that is about 2609 Hz/pound

    · It should be noted that the frequency is too high to be COUNTed on the BS2, BS2e, and BS2pe models.

    · SX/B would require at least a 20MHz clock for the COUNT command, but the RTCC counter or a timer(on the SX48) could be used with a slower clock speed like the internal 4MHz.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.iElectronicDesigns.com



    Post Edited (Bean (Hitt Consulting)) : 3/12/2008 6:18:57 PM GMT
  • BeanBean Posts: 8,129
    edited 2008-03-15 01:52
    Here is about the simplest program in SX/B to read the sensor.
    I know it's not as accurate as using the formula in the datasheet, but it seems to give reasonable results.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.iElectronicDesigns.com
  • Om_GuruOm_Guru Posts: 1
    edited 2008-03-17 20:19
    Here are some answers to questions about iLoad sensors raised in above queries:

    - The capacity of the iLoad Mini-PX sold through Parallax is 10 lbs with overload protection up to 15 lbs (150%) - higher capacity units are available upon request from Loadstar at http://www.loadstarsensors.com

    - The iLoad Mini sensor has 2 frequency outputs. When Control Input = logic ‘1’, the Mini outputs the sensor frequency, Fsensor. When Control Input = logic ‘0’, the Mini ouputs the reference frequency, Fref. The compensated frequency Fcomp = Fsensor - K*Fref, where K is a constant provided by Loadstar. Loadstar also provides the coefficients for the quadratic equation to translate Fcomp to weight. (Weight = Ax^2+Bx+C where x=Fcomp).

    - There is an "object" on the Parallax "Object exchange" site that provides example code to use the iLoad sensor with a Propeller chip/board to obtain calibrated forces/loads http://obex.parallax.com/objects/247/

    - The baseline line frequencies (Fsensor & Fref) are typically around 150KHz (always less than 250 KHz) but can vary from sensor to sensor

    - The frequency drops as the load is applied

    - The change in frequency is proportional to applied loads

    - A quadratic fit gives better accuracy than linear fit

    - The manufacturer provides the constants for each sensor as shipped
  • Farmer ScottFarmer Scott Posts: 30
    edited 2008-05-23 08:47
    Doesn't look as anyone replied to the question about using 'pulsin' rather than 'count'.· Would this be doable in a BS2p application?· Would it be more efficient to measure the pulse width rather than count pulses?

    Thanks,

    Scott
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2008-05-23 17:18
    Scott,

    Do the math. At 200KHz and 50% duty cycle, pulses are only 2.5µsec wide. Since the granularity of PULSIN on a BS2p is 0.8µsec, that would correspond to a result of 3. That's much too coarse to be of any value.

    -Phil
Sign In or Register to comment.