Shop OBEX P1 Docs P2 Docs Learn Events
memsic2126 (Accelerometer Rotational Angle Measurement) — Parallax Forums

memsic2126 (Accelerometer Rotational Angle Measurement)

nomadnomad Posts: 276
edited 2007-03-30 11:21 in Propeller 1
RE: memsic2126 (Accelerometer Rotational Angle Measurement)

hi,

for test-propose i have 2 spin-programs for the memsic2125
and have some problems with the applications.
- with memsic_vgaOut1.spin
made from: Memsic_2125_Demo.spin of Jon Williams,

-the problem is: - sometimes the Applications
is running for 2 or 3 seconds (with output),
then stop, no output
- sometimes only 1 output is displayed,
then stop
- and i dont know whats happened???
- have you some suggestions??

- with memsicBS2_vgaOut1.spin
- its my try with the BS2_Function.spin object
and BS2.PuLSIN - function
i dont know whether the program and the BS2.PULSIN are correct?
- the output is -4000-4000

please can somebody help me, for this problems.
excuse my bad english
regards
nomad

attachment: memsic_vgaOut1.spin
memsicBS2_vgaOut1.spin

Comments

  • simonlsimonl Posts: 866
    edited 2007-03-29 17:16
    Not sure (no PChip here at work) but I _think_ it might be that your Toggle method is sitting at the waitcnt? Probably waiting for cnt to roll-over, which I think could take about 50s. Try leaving it running for about 60s or more to see if that's what's happening.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheers,

    Simon

    BTW: I type as I'm thinking, so please don't take any offense at my writing style smile.gif

    www.norfolkhelicopterclub.co.uk
    You'll always have as many take-offs as landings, the trick is to be sure you can take-off again ;-)
  • nomadnomad Posts: 276
    edited 2007-03-30 10:14
    hi simon,
    thanks for the tip.
    i make some experiments
    regards
    nomad
  • nomadnomad Posts: 276
    edited 2007-03-30 11:08
    hi simon,
    now the program is running, with correct values and no stopping.
    solution: NO TOGGLE-Function. with memsic_vgaOut1.spin
    it's fine
    thanks
    regards
    nomad
  • simonlsimonl Posts: 866
    edited 2007-03-30 11:21
    Glad I could help smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheers,

    Simon

    BTW: I type as I'm thinking, so please don't take any offense at my writing style smile.gif

    www.norfolkhelicopterclub.co.uk
    You'll always have as many take-offs as landings, the trick is to be sure you can take-off again ;-)
Sign In or Register to comment.