ADXLxxx Accelerometer
Archiver
Posts: 46,084
I have seen in the past, some code for
reading the ADXLxxx Accelerometer. Does
anyone know where I can find some code
on that subject.
Thanks
K-Jay
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
reading the ADXLxxx Accelerometer. Does
anyone know where I can find some code
on that subject.
Thanks
K-Jay
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
Comments
ACJacques
K- Jay wrote:
>
> I have seen in the past, some code for
> reading the ADXLxxx Accelerometer. Does
> anyone know where I can find some code
> on that subject.
>
> Thanks
> K-Jay
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
articles, including Stamp code.
Dennis
Original Message
From: K- Jay [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=RoE6gc8m66aPneWXurEXBY_tnwP8NYRiyLQB6ugwhSRo75j8kNN8LW3hD854RdjyqgrTdpYYXNB0]kev1718@h...[/url
Sent: Wednesday, February 28, 2001 7:53 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] ADXLxxx Accelerometer
I have seen in the past, some code for
reading the ADXLxxx Accelerometer. Does
anyone know where I can find some code
on that subject.
Thanks
K-Jay
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
specific example, and a shorter app-note at
www.analog.com/techsupt/application_notes/StampXL202.pdf. Also take a look
at the larger picture at
www.analog.com/industry/iMEMS/products/ADXL202.html.
Regards,
Daniel McGlothin
Original Message
From: K- Jay [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=51_H403GnipJBdwUeEKW1b9VmltZOJ7qmqWNULxmAq8KCOEK_fPk5dc2_NkyhuiKHKwE8W-VFjzF]kev1718@h...[/url
Sent: Wednesday, February 28, 2001 10:53 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] ADXLxxx Accelerometer
I have seen in the past, some code for
reading the ADXLxxx Accelerometer. Does
anyone know where I can find some code
on that subject.
Thanks
K-Jay
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
ADXL202? Or is everyone soldering wires to them? Supplier? Part
number? etc.?
Thanks,
Brice
> Try www.analog.com/techsupt/application_notes/ADXL202ped.pdf for one
> specific example, and a shorter app-note at
> www.analog.com/techsupt/application_notes/StampXL202.pdf. Also
take a look
> at the larger picture at
> www.analog.com/industry/iMEMS/products/ADXL202.html.
>
> Regards,
> Daniel McGlothin
>
>
Original Message
> From: K- Jay [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=akSJCv69RwYBkwPXc5yR1ECOtXq_LY9C_mRDh4xC_yOSe38689R4YwJp3cwQpTAIR6vSf-BF1bRJ]kev1718@h...[/url
> Sent: Wednesday, February 28, 2001 10:53 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] ADXLxxx Accelerometer
>
>
> I have seen in the past, some code for
> reading the ADXLxxx Accelerometer. Does
> anyone know where I can find some code
> on that subject.
>
> Thanks
> K-Jay
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
>
>
>
>
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
>
>
'This example assumes the x axis pulsed output
'is connected to P8 and the y axis pulsed output
'is connected to p9.
x var word
y var word
loop:
pulsin 8,1,x
pulsin 9,1,y
debug "x = ", dec5 x, cr, cr
debug "y = ", dec5 y
pause 100
goto loop
'Andy
'
'E-Mail...........alindsay@p...
'Parallax, Inc. home page....................www.parallaxinc.com
'BASIC Stamp Educational Resources...........www.stampsinclass.com
'SX Microcontroller University Resources.....www.sxtech.com
Original Message
From: D. Daniel McGlothin [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=QeEfAACkMpHMAqqw3jOC-kgBPIbYszqLCWg0UMSK-twfJZ_SXLJpuG1wrr5fLUoYiC2UnsrSfZ6XFA]ddm@r...[/url
Sent: Friday, March 02, 2001 5:35 AM
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]basicstamps] ADXLxxx Accelerometer
Try www.analog.com/techsupt/application_notes/ADXL202ped.pdf for one
specific example, and a shorter app-note at
www.analog.com/techsupt/application_notes/StampXL202.pdf. Also take a look
at the larger picture at
www.analog.com/industry/iMEMS/products/ADXL202.html.
Regards,
Daniel McGlothin
Original Message
From: K- Jay [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=mWgKBQjZoG9ezjLQfTXD6JK2FmriC6BvaH82Fwl731AQ4p-0EGHjuUjADIbBEMa3HtWaWsSjYbM_cUgb]kev1718@h...[/url
Sent: Wednesday, February 28, 2001 10:53 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] ADXLxxx Accelerometer
I have seen in the past, some code for
reading the ADXLxxx Accelerometer. Does
anyone know where I can find some code
on that subject.
Thanks
K-Jay
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Thanks to all!
K-Jay
>'The ADXL202 has pulse width modulated outputs. 'This example assumes the
>x axis pulsed output
>'is connected to P8 and the y axis pulsed output
>'is connected to p9.
>
>x var word
>y var word
>
>loop:
>
> pulsin 8,1,x
> pulsin 9,1,y
>
> debug "x = ", dec5 x, cr, cr
> debug "y = ", dec5 y
>
> pause 100
>
>goto loop
>
>'Andy
>'
>'E-Mail...........alindsay@p...
>
>'Parallax, Inc. home page....................www.parallaxinc.com
>'BASIC Stamp Educational Resources...........www.stampsinclass.com
>'SX Microcontroller University Resources.....www.sxtech.com
>
>
>
>
Original Message
>From: D. Daniel McGlothin [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=OoxvVUIVhtrbu8ecigPwh4ZKZLM2BrQqsEd7WgxerjPFuBNIWuwHihZt3F-kWT_Hva97vIIJ]ddm@r...[/url
>Sent: Friday, March 02, 2001 5:35 AM
>To: basicstamps@yahoogroups.com
>Subject: RE: [noparse][[/noparse]basicstamps] ADXLxxx Accelerometer
>
>
>Try www.analog.com/techsupt/application_notes/ADXL202ped.pdf for one
>specific example, and a shorter app-note at
>www.analog.com/techsupt/application_notes/StampXL202.pdf. Also take a look
>at the larger picture at
>www.analog.com/industry/iMEMS/products/ADXL202.html.
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
these devices today.
-->Start Quote
"A check indicates that a limited number of samples are available
today through the ADI web site. "
-->End Quote
(I am not affiliated with Analog--just out looking for some free
samples... [noparse];)[/noparse]
--- In basicstamps@y..., "Dennis P. O'Leary" <doleary@h...> wrote:
> www.analog.com/iMEMS/products/ADXL202.html has links to tech notes
and
> articles, including Stamp code.
>
> Dennis
>
>
Original Message
> From: K- Jay [noparse][[/noparse]mailto:kev1718@h...]
> Sent: Wednesday, February 28, 2001 7:53 PM
> To: basicstamps@y...
> Subject: [noparse][[/noparse]basicstamps] ADXLxxx Accelerometer
>
>
> I have seen in the past, some code for
> reading the ADXLxxx Accelerometer. Does
> anyone know where I can find some code
> on that subject.
>
> Thanks
> K-Jay
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
evaluation board. The samples currently available are the ADXL202JE which
is a 5mm x 5mm x 2mm 8-lead hermetic LCC package. No leads! VERY tough to
solder wires to and VERY tiny. Unless you have an 8-lead LCC chip carrier
or you custom build a board and reflow the solder (yes, you can buy the
solder paste and reflow in a toaster oven)... it's best to stick with the
evaluation board. The part number for the evaluation board is ADXL202EB.
More information regarding the ADXL202EB can be found here:
http://www.analog.com/techsupt/eb/ADXL202EB_0.pdf
- Brice
Original Message
From: <bs2web@y...>
To: <basicstamps@yahoogroups.com>
Sent: Friday, March 09, 2001 5:10 PM
Subject: [noparse][[/noparse]basicstamps] Re: ADXLxxx Accelerometer
Hello! If anyone is interested, Analog is giving away samples on
these devices today.
-->Start Quote
"A check indicates that a limited number of samples are available
today through the ADI web site. "
-->End Quote
(I am not affiliated with Analog--just out looking for some free
samples... [noparse];)[/noparse]
--- In basicstamps@y..., "Dennis P. O'Leary" <doleary@h...> wrote:
> www.analog.com/iMEMS/products/ADXL202.html has links to tech notes
and
> articles, including Stamp code.
>
> Dennis
>
>
Original Message
> From: K- Jay [noparse][[/noparse]mailto:kev1718@h...]
> Sent: Wednesday, February 28, 2001 7:53 PM
> To: basicstamps@y...
> Subject: [noparse][[/noparse]basicstamps] ADXLxxx Accelerometer
>
>
> I have seen in the past, some code for
> reading the ADXLxxx Accelerometer. Does
> anyone know where I can find some code
> on that subject.
>
> Thanks
> K-Jay
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Bill Heacock
Original Message
From: Brice D. Hornback [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=8woEuo8E1Y63rtC4rpr-9GUfwlWzatkBIWlq55d9mKG7QMIACWMrolfLRMF0_NRaKpgKR8G4rcVtLVg]bdh@c...[/url
Sent: Friday, March 09, 2001 11:33 PM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] Re: ADXLxxx Accelerometer
The best way to experiment with the ADXL202 accelerometer is to purchase the
evaluation board. The samples currently available are the ADXL202JE which
is a 5mm x 5mm x 2mm 8-lead hermetic LCC package. No leads! VERY tough to
solder wires to and VERY tiny. Unless you have an 8-lead LCC chip carrier
or you custom build a board and reflow the solder (yes, you can buy the
solder paste and reflow in a toaster oven)... it's best to stick with the
evaluation board. The part number for the evaluation board is ADXL202EB.
More information regarding the ADXL202EB can be found here:
http://www.analog.com/techsupt/eb/ADXL202EB_0.pdf
- Brice
Original Message
From: <bs2web@y...>
To: <basicstamps@yahoogroups.com>
Sent: Friday, March 09, 2001 5:10 PM
Subject: [noparse][[/noparse]basicstamps] Re: ADXLxxx Accelerometer
Hello! If anyone is interested, Analog is giving away samples on
these devices today.
-->Start Quote
"A check indicates that a limited number of samples are available
today through the ADI web site. "
-->End Quote
(I am not affiliated with Analog--just out looking for some free
samples... [noparse];)[/noparse]
--- In basicstamps@y..., "Dennis P. O'Leary" <doleary@h...> wrote:
> www.analog.com/iMEMS/products/ADXL202.html has links to tech notes
and
> articles, including Stamp code.
>
> Dennis
>
>
Original Message
> From: K- Jay [noparse][[/noparse]mailto:kev1718@h...]
> Sent: Wednesday, February 28, 2001 7:53 PM
> To: basicstamps@y...
> Subject: [noparse][[/noparse]basicstamps] ADXLxxx Accelerometer
>
>
> I have seen in the past, some code for
> reading the ADXLxxx Accelerometer. Does
> anyone know where I can find some code
> on that subject.
>
> Thanks
> K-Jay
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
If you want to try out the BS2p with the ADLX202 try the pbasic code below.
This creates a level sensor display on a LCD.
Chuck
'program uses a 40 x 2 lcd, Optrex DMC40218, and a tilt/motion sensor,
'Analog Devices ADXL202, uses 500k ohm on pin 5 & 0.1uf cap on pins 11 & 12
'shows 2d level position on the lcd
'10/28/00
t1x var word
t1y var word
x var word
y var word
s con 8
pause 1000
gosub LCDINIT
aa:
lcdcmd s,1
pulsin 0,1,t1x
pulsin 1,1,t1y
t1x=2865-t1x
t1y=2865-t1y
x=(t1x/14)+128:y=(t1y/14)+192
lcdout s,x,[noparse][[/noparse]$00]
lcdout s,y,[noparse][[/noparse]$01]
pause 50
goto aa
'initialize LCD
LCDINIT
lcdcmd s,48 'set function
lcdcmd s,48
lcdcmd s,48
lcdcmd s,32
lcdcmd s,44
lcdcmd s,8 'display off
lcdcmd s,12 'display on
lcdcmd s,6 'set mode
lcdcmd s,1 'clear display
lcdout s,64,[noparse][[/noparse]$11,$1b,$1b,$1f,$0e,$0e,$04,$04]
lcdout s,72,[noparse][[/noparse]$04,$04,$0e,$0e,$1f,$1b,$1b,$11]
return
[/font]
>
>If you want to try out the BS2p with the ADLX202 try the pbasic code below.
>This creates a level sensor display on a LCD.
>Chuck
>
>
>
>'program uses a 40 x 2 lcd, Optrex DMC40218, and a tilt/motion sensor,
>'Analog Devices ADXL202, uses 500k ohm on pin 5 & 0.1uf cap on pins 11 & 12
>'shows 2d level position on the lcd
>'10/28/00
>
>t1x var word
>t1y var word
>x var word
>y var word
>s con 8
>
>pause 1000
>gosub LCDINIT
>aa:
>lcdcmd s,1
>pulsin 0,1,t1x
>pulsin 1,1,t1y
>t1x=2865-t1x
>t1y=2865-t1y
>x=(t1x/14)+128:y=(t1y/14)+192
>lcdout s,x,[noparse][[/noparse]$00]
>lcdout s,y,[noparse][[/noparse]$01]
>pause 50
>goto aa
>
>'initialize LCD
>LCDINIT
>lcdcmd s,48 'set function
>lcdcmd s,48
>lcdcmd s,48
>lcdcmd s,32
>lcdcmd s,44
>lcdcmd s,8 'display off
>lcdcmd s,12 'display on
>lcdcmd s,6 'set mode
>lcdcmd s,1 'clear display
>lcdout s,64,[noparse][[/noparse]$11,$1b,$1b,$1f,$0e,$0e,$04,$04]
>lcdout s,72,[noparse][[/noparse]$04,$04,$0e,$0e,$1f,$1b,$1b,$11]
>return
>
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
this with a serial LCD and a BS2.
Chuck[/font]