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