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

Discussion Groups | BasicX | Analog reading of adxl202

Discussion forum for the BasicX family of microcontroller chips.

Analog reading of adxl202 - m_l_newell - Sep 3 0:43:00 2002

Hi,

I have gone through archives and most of the use of the adxl202 is
reading the pwm output of the adxl202. Is there some one reading the
analog outputs and would you be willing to share a schematic showing
the electronics between the BX-24 and the AXDL202 and giving a short
summary of them.(ie op-amps, gain, bamdwidth.

Thanks,

Mark





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


RE: Analog reading of adxl202 - Dan Bielecki - Sep 3 12:19:00 2002

BX hookup is shown in the Application Notes in the BasicX folder.
Decoupling schematics are shown in the datasheets of the ADXL's.
They are simple schematics involving caps and resistors.
The BX App Note even shows and explains how to measure the duty cycle and
evaluate the results.

.db. -----Original Message-----
From: m_l_newell [mailto:]
Sent: Monday, September 02, 2002 10:44 PM
To:
Subject: [BasicX] Analog reading of adxl202 Hi,

I have gone through archives and most of the use of the adxl202 is
reading the pwm output of the adxl202. Is there some one reading the
analog outputs and would you be willing to share a schematic showing
the electronics between the BX-24 and the AXDL202 and giving a short
summary of them.(ie op-amps, gain, bamdwidth.

Thanks,

Mark Yahoo! Groups Sponsor
ADVERTISEMENT
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]





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

RE: Analog reading of adxl202 - Mark Newell - Sep 3 23:39:00 2002

Dan,
I want to read the analog output not the PWM output. I
had checked the BX24 folder app notes but it only
address the PWM that I could tell. The BX01 folder had
nothing about the AXDL. I am looking in the BasicX
group files on Yahoo. The ADXL docs specifications
only show setting the filter capacator to set the
analog bandwidth. What I am interested is in some "low
pass filtering", "off setting the reading by some
value", and "amplifing the result" to come close to a
full 0 - 5 volt value. I don't really know how to do
the stuff in quotes. The "low pass filter" is the most
abstract and I belive it is to remove low level
noise(but how much?) the other two are easy to
calculate numerically from the ADXL doc but how does
one set up the hardware? I believe it uses some
resistors, capacitors and op-amp's, but I don't know
how to determine the correct parts and values.

Thanks,

Mark

--- Dan Bielecki <> wrote:
> BX hookup is shown in the Application Notes in the
> BasicX folder.
> Decoupling schematics are shown in the datasheets of
> the ADXL's.
> They are simple schematics involving caps and
> resistors.
> The BX App Note even shows and explains how to
> measure the duty cycle and
> evaluate the results.
>
> .db. > -----Original Message-----
> From: m_l_newell [mailto:]
> Sent: Monday, September 02, 2002 10:44 PM
> To:
> Subject: [BasicX] Analog reading of adxl202 > Hi,
>
> I have gone through archives and most of the use
> of the adxl202 is
> reading the pwm output of the adxl202. Is there
> some one reading the
> analog outputs and would you be willing to share a
> schematic showing
> the electronics between the BX-24 and the AXDL202
> and giving a short
> summary of them.(ie op-amps, gain, bamdwidth.
>
> Thanks,
>
> Mark > Yahoo! Groups Sponsor
> ADVERTISEMENT >
> Your use of Yahoo! Groups is subject to the Yahoo!
> Terms of Service. >
> [Non-text portions of this message have been
> removed]

__________________________________________________






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

Re: Analog reading of adxl202 - Frank Manning - Sep 4 0:10:00 2002

From: "Mark Newell" <>

> I want to read the analog output not the PWM output. I
> had checked the BX24 folder app notes but it only
> address the PWM that I could tell. The BX01 folder had
> nothing about the AXDL. I am looking in the BasicX
> group files on Yahoo.

Probably the most up-to-date ADXL202 app notes are in the BasicX
distribution that comes with the compiler, which includes BX-01,
BX-24 and BX-35 examples. The Yahoo ADXL202 files and app notes on
the BasicX web site are a bit outdated, unless there are some
files I'm not aware of. Also, the files apply only to PWM outputs,
not analog outputs.

-- Frank Manning
-- NetMedia, Inc.





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

Re: Analog reading of adxl202 - kj62 - Sep 4 1:49:00 2002

Mark,
I know what you're trying to do and I have yet to attempt it which is why I haven't asked you guys yet, but my co-worker at Nasa Ames Research Center said that reading an analog voltage was possible using the ADX202E and he has done it before. I will ask him for more details and get back to you.

Cheers!
Kevin

--- In basicx@y..., "Frank Manning" <fmanning@n...> wrote:
> From: "Mark Newell" <m_l_newell@y...>
>
> > I want to read the analog output not the PWM output. I
> > had checked the BX24 folder app notes but it only
> > address the PWM that I could tell. The BX01 folder had
> > nothing about the AXDL. I am looking in the BasicX
> > group files on Yahoo.
>
> Probably the most up-to-date ADXL202 app notes are in the BasicX
> distribution that comes with the compiler, which includes BX-01,
> BX-24 and BX-35 examples. The Yahoo ADXL202 files and app notes on
> the BasicX web site are a bit outdated, unless there are some
> files I'm not aware of. Also, the files apply only to PWM outputs,
> not analog outputs.
>
> -- Frank Manning
> -- NetMedia, Inc.




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

Re: Analog reading of adxl202 - Michael Puchol - Sep 4 3:40:00 2002

Hi Mark, I've read the analog output of an ADXL202 for an application that needed the
amount of code trimmed to a minimum. The code I used to read the ADXL's
analog output is:

Dim AccX as Integer
Dim AccY as Integer
Dim AccXAv as Single
Dim AccYAv as Single
Dim AccXSum as Single
Dim AccYSum as Single
Dim i as Integer

For i = 1 to 25
AccX = GetADC(14)
AccY = GetADC(15)
AccXSum = AccXSum + CSng(AccX)
AccYSum = AccYSum + CSng(AccY)
Next

AccXAv = AccXSum / 25.0
AccYAv = AccYSum / 25.0

Thus, the average value of the analog port is done over 25 consecutive
readings. You can insert a pause in the for-netx loop, or change the number
of samples taken, to implement a crude software filter - i.e. the more
samples you take, the more 'smooth' the reading, but the less sensitive to
high acceleration short spikes it will be. Best is to experiment in your
context.

Regarding the hardware, I found really useful the application notes in
Analog's website, aswell as the ADXL datasheet - you'll find everything you
need there, including analog reading configuration.

My values are Cx and Cy 10nF, and Rset 57k, with Xout and Yout unused. You
then connect the Xfilt and Yfilt pins of the ADXL to the ADC ports of your
BX-24.

All the best,

Mike

----- Original Message -----
From: "Mark Newell" <>
To: <>
Sent: Wednesday, September 04, 2002 6:39 AM
Subject: RE: [BasicX] Analog reading of adxl202 > Dan,
> I want to read the analog output not the PWM output. I
> had checked the BX24 folder app notes but it only
> address the PWM that I could tell. The BX01 folder had
> nothing about the AXDL. I am looking in the BasicX
> group files on Yahoo. The ADXL docs specifications
> only show setting the filter capacator to set the
> analog bandwidth. What I am interested is in some "low
> pass filtering", "off setting the reading by some
> value", and "amplifing the result" to come close to a
> full 0 - 5 volt value. I don't really know how to do
> the stuff in quotes. The "low pass filter" is the most
> abstract and I belive it is to remove low level
> noise(but how much?) the other two are easy to
> calculate numerically from the ADXL doc but how does
> one set up the hardware? I believe it uses some
> resistors, capacitors and op-amp's, but I don't know
> how to determine the correct parts and values.
>
> Thanks,
>
> Mark
>
> --- Dan Bielecki <> wrote:
> > BX hookup is shown in the Application Notes in the
> > BasicX folder.
> > Decoupling schematics are shown in the datasheets of
> > the ADXL's.
> > They are simple schematics involving caps and
> > resistors.
> > The BX App Note even shows and explains how to
> > measure the duty cycle and
> > evaluate the results.
> >
> > .db.
> >
> >
> > -----Original Message-----
> > From: m_l_newell [mailto:]
> > Sent: Monday, September 02, 2002 10:44 PM
> > To:
> > Subject: [BasicX] Analog reading of adxl202
> >
> >
> > Hi,
> >
> > I have gone through archives and most of the use
> > of the adxl202 is
> > reading the pwm output of the adxl202. Is there
> > some one reading the
> > analog outputs and would you be willing to share a
> > schematic showing
> > the electronics between the BX-24 and the AXDL202
> > and giving a short
> > summary of them.(ie op-amps, gain, bamdwidth.
> >
> > Thanks,
> >
> > Mark
> >
> >
> > Yahoo! Groups Sponsor
> > ADVERTISEMENT
> >
> >
> >
>





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

RE: Analog reading of adxl202 - Dan Bielecki - Sep 4 8:03:00 2002

You can download the latest data sheet for the ADXL's from Analog.
Im looking at my ADXL210JE spec.
It lists the resistors and the caps that you are looking for in charts.
It also shows diagrams for placement.
Near the end is AD versions of app notes to further explain things.

Com'on guys...its not that hard....its 3 decoupling caps and 2 resistors.
I add a volt regulator a current regulator, 3 more decoupling caps and 1
more resistor to mine.

If I recall from reading the specs in full at one time.....what you're
looking for is to tap the X-flt and Y-flt pins for analog.
Normally one reads the duty-cycle using the X-out and Y-out pins.

.db.
-----Original Message-----
From: Mark Newell [mailto:]
Sent: Tuesday, September 03, 2002 9:40 PM
To:
Subject: RE: [BasicX] Analog reading of adxl202 Dan,
I want to read the analog output not the PWM output. I
had checked the BX24 folder app notes but it only
address the PWM that I could tell. The BX01 folder had
nothing about the AXDL. I am looking in the BasicX
group files on Yahoo. The ADXL docs specifications
only show setting the filter capacator to set the
analog bandwidth. What I am interested is in some "low
pass filtering", "off setting the reading by some
value", and "amplifing the result" to come close to a
full 0 - 5 volt value. I don't really know how to do
the stuff in quotes. The "low pass filter" is the most
abstract and I belive it is to remove low level
noise(but how much?) the other two are easy to
calculate numerically from the ADXL doc but how does
one set up the hardware? I believe it uses some
resistors, capacitors and op-amp's, but I don't know
how to determine the correct parts and values.

Thanks,

Mark

--- Dan Bielecki <> wrote:
> BX hookup is shown in the Application Notes in the
> BasicX folder.
> Decoupling schematics are shown in the datasheets of
> the ADXL's.
> They are simple schematics involving caps and
> resistors.
> The BX App Note even shows and explains how to
> measure the duty cycle and
> evaluate the results.
>
> .db. > -----Original Message-----
> From: m_l_newell [mailto:]
> Sent: Monday, September 02, 2002 10:44 PM
> To:
> Subject: [BasicX] Analog reading of adxl202 > Hi,
>
> I have gone through archives and most of the use
> of the adxl202 is
> reading the pwm output of the adxl202. Is there
> some one reading the
> analog outputs and would you be willing to share a
> schematic showing
> the electronics between the BX-24 and the AXDL202
> and giving a short
> summary of them.(ie op-amps, gain, bamdwidth.
>
> Thanks,
>
> Mark > Yahoo! Groups Sponsor
> ADVERTISEMENT >
> Your use of Yahoo! Groups is subject to the Yahoo!
> Terms of Service. >
> [Non-text portions of this message have been
> removed]

__________________________________________________

Yahoo! Groups Sponsor
ADVERTISEMENT
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]





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

RE: Analog reading of adxl202 - Mark Newell - Sep 4 11:30:00 2002

Dan,
You are partially right on. There is a schematic of
the ADXL210 showing how to decouple the power supply
to the ADXL210 and there is a table for the Rset
resistor to set the PWM duty cycle and there is a
table for capacitors to set the analog band width. It
is all clear from the documentation. What I am
talking about is the paragraph:

<quote>
The A/D should read the analog output of the ADXL210E
at the XFILT and YFILT pins. A buffer amplifier is
recommended, and may be required in any case to
amplify the analog output to give enough resolution
with an 8-bit to 10-bit converter.
<unquote>

I am actually working with an AXDL202 and when I
calculated the worst case values, I needed to subtract
Vcc/4 and multiply by 2 to get a full 0-5 volt range
and while I am at it I would like to filter out some
low level noise(constant vibration of the ADXL. And
yes I want to read the analog output. And "Com'on
guys...its not that hard" to do the "buffer amplifer"
subraction, multiplication and low pass filtering is
not that obvious at least to me.

Thanks,
Mark --- Dan Bielecki <> wrote:
> You can download the latest data sheet for the
> ADXL's from Analog.
> Im looking at my ADXL210JE spec.
> It lists the resistors and the caps that you are
> looking for in charts.
> It also shows diagrams for placement.
> Near the end is AD versions of app notes to further
> explain things.
>
> Com'on guys...its not that hard....its 3 decoupling
> caps and 2 resistors.
> I add a volt regulator a current regulator, 3 more
> decoupling caps and 1
> more resistor to mine.
>
> If I recall from reading the specs in full at one
> time.....what you're
> looking for is to tap the X-flt and Y-flt pins for
> analog.
> Normally one reads the duty-cycle using the X-out
> and Y-out pins.
>
> .db. >
> -----Original Message-----
> From: Mark Newell [mailto:]
> Sent: Tuesday, September 03, 2002 9:40 PM
> To:
> Subject: RE: [BasicX] Analog reading of adxl202 > Dan,
> I want to read the analog output not the PWM
> output. I
> had checked the BX24 folder app notes but it only
> address the PWM that I could tell. The BX01 folder
> had
> nothing about the AXDL. I am looking in the BasicX
> group files on Yahoo. The ADXL docs
> specifications
> only show setting the filter capacator to set the
> analog bandwidth. What I am interested is in some
> "low
> pass filtering", "off setting the reading by some
> value", and "amplifing the result" to come close
> to a
> full 0 - 5 volt value. I don't really know how to
> do
> the stuff in quotes. The "low pass filter" is the
> most
> abstract and I belive it is to remove low level
> noise(but how much?) the other two are easy to
> calculate numerically from the ADXL doc but how
> does
> one set up the hardware? I believe it uses some
> resistors, capacitors and op-amp's, but I don't
> know
> how to determine the correct parts and values.
>
> Thanks,
>
> Mark
>
> --- Dan Bielecki <> wrote:
> > BX hookup is shown in the Application Notes in
> the
> > BasicX folder.
> > Decoupling schematics are shown in the
> datasheets of
> > the ADXL's.
> > They are simple schematics involving caps and
> > resistors.
> > The BX App Note even shows and explains how to
> > measure the duty cycle and
> > evaluate the results.
> >
> > .db.
> >
> >
> > -----Original Message-----
> > From: m_l_newell [mailto:]
> > Sent: Monday, September 02, 2002 10:44 PM
> > To:
> > Subject: [BasicX] Analog reading of adxl202
> >
> >
> > Hi,
> >
> > I have gone through archives and most of the
> use
> > of the adxl202 is
> > reading the pwm output of the adxl202. Is
> there
> > some one reading the
> > analog outputs and would you be willing to
> share a
> > schematic showing
> > the electronics between the BX-24 and the
> AXDL202
> > and giving a short
> > summary of them.(ie op-amps, gain, bamdwidth.
> >
> > Thanks,
> >
> > Mark
> >
> >
> > Yahoo! Groups Sponsor
> > ADVERTISEMENT
> >
> >
> >
> > Your use of Yahoo! Groups is subject to the
> Yahoo!
> > Terms of Service.
> >
> >
> >
> > [Non-text portions of this message have been
> > removed]
> >
> > __________________________________________________
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT >
> Your use of Yahoo! Groups is subject to the Yahoo!
> Terms of Service. >
> [Non-text portions of this message have been
> removed]

__________________________________________________





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

Re: Analog reading of adxl202 - Bruce J. Weimer, M.D. - Sep 4 11:49:00 2002

Hi!

Diagnosing Neurologic OlivoPontoCerebellar Degeneration isn't all that
hard - getting my ADXL202 to work had me stymied. I've really come to
appreciate the range of backgrounds and expertise represented in this
user forum - from newbie to expert. My two cents: thank you everyone
for your input!

Bruce.




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