Discussion forum for the BasicX family of microcontroller chips.
|
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 |
|
|
|
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. |
|
|
|
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. > |