Shop OBEX P1 Docs P2 Docs Learn Events
help in BS2 & 3 axis accelerometer ADXL335 — Parallax Forums

help in BS2 & 3 axis accelerometer ADXL335

PuddingPudding Posts: 1
edited 2010-12-07 22:28 in BASIC Stamp
Hello. i need help in both the BS2 and 3 axis accelerometer ADXL335.

I tried searching the guide but still does not know how to do the PWN and circuit coding for my accelerometer chip.

Can someone please post the schematic or codes here? Below attached is what i found on the guide but does not understand.

Thanks


{$STAMP BS2}
' {$PBASIC 2.5}
#SELECT $STAMP
#CASE BS2, BS2E
CycAdj CON $100 ' x 1.0, cycle adjustment (for ms)
#CASE BS2SX
CycAdj CON $280 ' x 2.5
#CASE BS2P
CycAdj CON $187 ' x 1.53
#CASE BS2PE
CycAdj CON $09E ' x 0.62
#CASE BS2PX
CycAdj CON $280 ' x 2.5
#ENDSELECT
Cycles CON 50
Main:
PWM 0, 100, (Cycles */ CycAdj) ' PWM at 100/255 duty (~50 ms)
PAUSE 1000 ' wait one second
GOTO Main
END
Sign In or Register to comment.