The demo code shows that the CS is left floating according to the schematic in the code:
{{
┌─────────────────────────────────────┬────────────────────────┬──────┬────────┐
│ L3G4200D_Example_Code.spin │ (C)2011 Parallax, Inc. │ V1.0 │ Jul 25 │
├─────────────────────────────────────┴────────────────────────┴──────┴────────┤
│ Demonstrates X,Y,Z output to a serial terminal. Uses default (I²C) interface │
│ on the Gyroscope module. │
│ This program is for example purposes only for RAW data from the Gyroscope │
│ Module. The calculations provided are for example only and should not be │
│ relied on for accuracy. For details about calculating Gyroscope values and │
│ other important information on functionality, please see the documents on our│
│ product page. Our Forums also have very useful information on this topic. │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌─────────────────┐
│ L INT2 ┣─── Data ready/FIFO interrupt
│ 3 INT1 ┣─── Programmable interrupt
│ G SDO ┣─── SPI serial data output -- I²C LSB of the device address (SA0)
│ 4 SDA/SDI/SDO ┣─── I²C serial data (SDA) -- SPI serial data input (SDI) -- 3-wire SPI data output (SDO)
│ 2 SCL ┣─── I²C & SPI clock
│ 0 CS ┣─── I²C/SPI mode selection (defaulted to I²C) pull low for SPI mode
│ 0 VIN ┣─── 2.7 - 6.5VDC (module is regulated to 2.5VDC)
Comments
There is code for the BS2 and Propeller at the right bottom of the product page. Download and Resources.
http://www.parallax.com/Store/Sensors/AccelerationTilt/tabid/172/ProductID/778/List/0/Default.aspx?SortField=ProductName,ProductName
There is also another page with some code:
https://sites.google.com/site/parallaxinretailstores/home/gyroscope-module-l3g4200d
Which Parallax Processor are you using?
Did either of the linked codes work for you? I have used the spin code from the product page an it woks fine.
Are you running in I2C or SPI mode. What voltage are you supplying to the module?
Jim
thanks
You only have to pull CS LOW for SPI.
Jim
You can refer to the Quickstart Post:
https://sites.google.com/site/parallaxinretailstores/home/gyroscope-module-l3g4200d
No pull ups needed. Have you tried it with either yet?
Jim