Sign in

username:

password:



Not a member?

Search basicx



Search tips

Subscribe to basicx



basicx by Keywords

Accelerometer | ADC | ADXL | Adxl20 | AVR | BasicStamp | BX-35 | BX28 | BX35 | COM3 | Compiler | Downloader | EEPROM | Electromagnet | GetADC | GP2D1 | GPS | I2C | IDE | Keypad | LCD | LCD+ | MIDI | Motors | Multitasking | Netmedia | Networking | PCB | PID | PlaySound | PWM | Relays | RTC | Servo | ShiftOut | SitePlayer | SPI | Stack | Timer | USB

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | BasicX | adxl202 - improving reading rate

Discussion forum for the BasicX family of microcontroller chips.

adxl202 - improving reading rate - larzyharzy - Sep 6 11:22:00 2004

I am experimenting with an ADXL202.

I have been testing it with the two example programs DisplayAngle and
DisplayAcceleration.

My problem is that I only get 5 - 6 readings a second.

I have tried changing the resistor that controls the duty cycle for the accelerometer.
The lowest value I have tried is 125k ohm, which should set the duty cycly to 1 ms
according to the datasheet for the ADXL202.

Why do I only get so few readings a second? Is it because of the calculations the BX24
has to perform?

/lars



______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )


Re: adxl202 - improving reading rate - Michael Puchol - Sep 6 12:50:00 2004

Hi,

Try using the analog output from the ADXL, and the BX-24's ADC, that way you
can get many more readings per second if that is what you need. I've used it
with no problems.

Best regards,

Mike

----- Original Message -----
From: "larzyharzy" <>
To: <>
Sent: Monday, September 06, 2004 6:22 PM
Subject: [BasicX] adxl202 - improving reading rate > I am experimenting with an ADXL202.
>
> I have been testing it with the two example programs DisplayAngle and
> DisplayAcceleration.
>
> My problem is that I only get 5 - 6 readings a second.
>
> I have tried changing the resistor that controls the duty cycle for the
accelerometer.
> The lowest value I have tried is 125k ohm, which should set the duty cycly
to 1 ms
> according to the datasheet for the ADXL202.





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: adxl202 - improving reading rate - larzyharzy - Sep 9 8:45:00 2004

Thanks Mike,

I tried putting a highpass filter (100kohm and .22uF) on Xfilter and
Yfilter and then taking a getADC from these. This seems to give a
quite good meassure of the acceleration - and it updates very fast.

Is there a way that I can easily change the example code
ShowAcceleration and ShowAngle to work with the analog input?

/lars

--- In , "Michael Puchol" <mpuchol@s...> wrote:
> Hi,
>
> Try using the analog output from the ADXL, and the BX-24's ADC,
that way you
> can get many more readings per second if that is what you need.
I've used it
> with no problems.
>
> Best regards,
>
> Mike
>
> ----- Original Message -----
> From: "larzyharzy" <larzjessen@h...>
> To: <>
> Sent: Monday, September 06, 2004 6:22 PM
> Subject: [BasicX] adxl202 - improving reading rate > > I am experimenting with an ADXL202.
> >
> > I have been testing it with the two example programs
DisplayAngle and
> > DisplayAcceleration.
> >
> > My problem is that I only get 5 - 6 readings a second.
> >
> > I have tried changing the resistor that controls the duty cycle
for the
> accelerometer.
> > The lowest value I have tried is 125k ohm, which should set the
duty cycly
> to 1 ms
> > according to the datasheet for the ADXL202.
>


______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )