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 | Re: BX24 & ADXL202EB analog reading

Discussion forum for the BasicX family of microcontroller chips.

BX24 & ADXL202EB analog reading - kjellosan - Jan 10 9:38:00 2005


Hi again

Thank you for your earlier response on this topic. It helped me to
understand that my units where broken. I have now finally got the
202EB to function using PWM. I now want to try to use it by reading
the analog signals. As I understand it is possible to have the analog
signals from Xfilt and Yfilt.

I am a little afraid of doing this, because I have burned to
Rotomotion 2Dof Units and a 202EB, so I hope somone can help me out a
little bit. So far I have welded in place a 124K Resistor and I can
see from the Analog's schematic that I can weld in two capacitors. I
have two capacitors 0.47uF that I can put in.

My question is which physically pins from the 202EB do I now connect
to my BX24. Do I weld a wire on to the new capacitor and in that case
which pin, or will I by adding these capacitors get analog signals
from Pin D and C ?





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


Re: BX24 & ADXL202EB analog reading - eser...@ - Jan 10 21:37:00 2005

Hi kjellosan,

Glad to hear that you got the 202EB to BX-24 working in PWM mode.

The datasheet states "An analog voltage can be obtained either by buffering the signal from
the Xfilt and Yfilt pin, OR by passing the duty cycle signal through an RC filter to reconstruct
the dc value."

In both cases, the 202EB should have a 0.47uF and 100ohm resistor for decoupling
(see Power Supply Decoupling, page 8), a 124k resistor soldered in to Rset position to set
approx. T2 period of 1 millisecond for the duty cycle, a 0.47uF capacitor as Cx soldered into
location C2 and a 0.47uF capacitor as Cy soldered into location C3 to set approx. 10Hz bandwidth.

In the first case, you would have to add 2 suitable "analog buffers". The Xraw analog voltage present
at the node of the C2 capacitor and the 202 pin would go to the input of one of your buffer circuits. The output
of this buffer circuit, Xbuf analog voltage would go to the analog voltage in pin of the BX-24(read as analog).
The Yraw analog voltage present at the node of the C3 capacitor and the 202 pin would go to the input
of the other buffer circuit. The output of that buffer circuit, Ybuf analog voltage would go to another analog
voltage in pin of the BX-24 (read as analog). The "analog voltage buffers" must have very high input
resistance so as to not affect the capacitor voltage. It's possible for Op Amps to be wired as buffers.

In the second case, the inputs of the RC filters you would add, would be connected to the digital PWM
outputs, the D terminal for the X and the C terminal for the Y. The analog output voltages of the RC filters
would go to the analog input pins of the BX-24 and be read as analog voltages.

In searching documents over the last 4 years, I can find no one who has done either method successfully.
There are examples of other versions of devices that have direct "Analog Outputs", that have been done.

Best Regards, Eric
----- Original Message -----
From: kjellosan
To:
Sent: Monday, January 10, 2005 6:38 AM
Subject: [BasicX] BX24 & ADXL202EB analog reading

Hi again

Thank you for your earlier response on this topic. It helped me to
understand that my units where broken. I have now finally got the
202EB to function using PWM. I now want to try to use it by reading
the analog signals. As I understand it is possible to have the analog
signals from Xfilt and Yfilt.

I am a little afraid of doing this, because I have burned to
Rotomotion 2Dof Units and a 202EB, so I hope somone can help me out a
little bit. So far I have welded in place a 124K Resistor and I can
see from the Analog's schematic that I can weld in two capacitors. I
have two capacitors 0.47uF that I can put in.

My question is which physically pins from the 202EB do I now connect
to my BX24. Do I weld a wire on to the new capacitor and in that case
which pin, or will I by adding these capacitors get analog signals
from Pin D and C ?

[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: BX24 & ADXL202EB analog reading - kjellosan - Jan 11 9:14:00 2005


Hi Eric

Thank you for your detailed answer, it cleared things up a bit for
me. I feel that trying this out is difficult and risky in relation to
my previous record on this device. I stick with the PWM modus, and
see what I can get out of that. Besides I do soldering, not weldering
on my boards.

It's good that have skilled people to ask.

Kjellosan --- In , "eserdahl@" <eserdahl@p...> wrote:
> Hi kjellosan,
>
> Glad to hear that you got the 202EB to BX-24 working in PWM mode.
>
> The datasheet states "An analog voltage can be obtained either by
buffering the signal from
> the Xfilt and Yfilt pin, OR by passing the duty cycle signal
through an RC filter to reconstruct
> the dc value."
>
> In both cases, the 202EB should have a 0.47uF and 100ohm resistor
for decoupling
> (see Power Supply Decoupling, page 8), a 124k resistor soldered in
to Rset position to set
> approx. T2 period of 1 millisecond for the duty cycle, a 0.47uF
capacitor as Cx soldered into
> location C2 and a 0.47uF capacitor as Cy soldered into location C3
to set approx. 10Hz bandwidth.
>
> In the first case, you would have to add 2 suitable "analog
buffers". The Xraw analog voltage present
> at the node of the C2 capacitor and the 202 pin would go to the
input of one of your buffer circuits. The output
> of this buffer circuit, Xbuf analog voltage would go to the analog
voltage in pin of the BX-24(read as analog).
> The Yraw analog voltage present at the node of the C3 capacitor and
the 202 pin would go to the input
> of the other buffer circuit. The output of that buffer circuit,
Ybuf analog voltage would go to another analog
> voltage in pin of the BX-24 (read as analog). The "analog voltage
buffers" must have very high input
> resistance so as to not affect the capacitor voltage. It's possible
for Op Amps to be wired as buffers.
>
> In the second case, the inputs of the RC filters you would add,
would be connected to the digital PWM
> outputs, the D terminal for the X and the C terminal for the Y. The
analog output voltages of the RC filters
> would go to the analog input pins of the BX-24 and be read as
analog voltages.
>
> In searching documents over the last 4 years, I can find no one who
has done either method successfully.
> There are examples of other versions of devices that have
direct "Analog Outputs", that have been done.
>
> Best Regards, Eric
> ----- Original Message -----
> From: kjellosan
> To:
> Sent: Monday, January 10, 2005 6:38 AM
> Subject: [BasicX] BX24 & ADXL202EB analog reading
>
> Hi again
>
> Thank you for your earlier response on this topic. It helped me
to
> understand that my units where broken. I have now finally got the
> 202EB to function using PWM. I now want to try to use it by
reading
> the analog signals. As I understand it is possible to have the
analog
> signals from Xfilt and Yfilt.
>
> I am a little afraid of doing this, because I have burned to
> Rotomotion 2Dof Units and a 202EB, so I hope somone can help me
out a
> little bit. So far I have welded in place a 124K Resistor and I
can
> see from the Analog's schematic that I can weld in two
capacitors. I
> have two capacitors 0.47uF that I can put in.
>
> My question is which physically pins from the 202EB do I now
connect
> to my BX24. Do I weld a wire on to the new capacitor and in that
case
> which pin, or will I by adding these capacitors get analog
signals
> from Pin D and C ?
>
> [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 )