Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - silman

1
Bus Pirate Support / Bus Pirate Beginner, can't read a register over I2C
I just got a Bus Pirate 3.6 and am trying to get it to read from a Parallax L3G4200D Gyroscope.

I feel like i'm doing everything right but i am getting garbage back (with a NACK to boot).

I have I2C set up with pull-ups enabled and set high, Here is my power readout result

Code: [Select]
    I2C>v
        Pinstates:
        1.(BR)  2.(RD)  3.(OR)  4.(YW)  5.(GN)  6.(BL)  7.(PU)  8.(GR)  9.(WT)  0.(Blk)
        GND    3.3V    5.0V    ADC    VPU    AUX    SCL    SDA    -      -
        P      P      P      I      I      O      I      I      I      I
        GND    3.31V  5.01V  0.00V  3.29V  L      H      H      H      H

Here is the datasheet for my gyro, see page 22 for I2C specification, and the devices SDO pin is held low so the when i do an I2C sweep i get the following
   
Code: [Select]
    I2C>(1)
    Searching I2C address space. Found devices at:
    0xD0(0x68 W) 0xD1(0x68 R)
   

Now i simple do this command to read register 0x2D (Z gyro High Byte) but i'm not reading anything it seems. When i move the gyro it stays the same in any orientation. The command is START -> SLAVE ADDRESS -> REGISTER ADDRESS -> REPEATED START -> READ COMMAND -> BUS PIRATE READ -> STOP

Here is my command:

Code: [Select]
    I2C>[ 0xd0 0x2d [ 0xd1 r ]
    I2C START BIT
    WRITE: 0xD0 ACK
    WRITE: 0x2D ACK
    I2C START BIT
    WRITE: 0xD1 ACK
    READ: 0xFE
    NACK
    I2C STOP BIT

EDIT: there was some pin configurations i hadn't set yet. Read your datasheets, kids.

Bus pirate rules. Mods can delete this thread please.
3
DirtyPCBs support / Panelizing PCB tools/methods
I have looked everywhere for a simple way to create tabs and mousebites on kicad and can't find clear instructions.
I came across a thread on these forums that touts a program by ThisIsNotRocketScience but it was a closed beta and i can't even find the link to request access to it.

The tool seemed really awesome and i'm sad i can't find it anywhere, can anyone help me?

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01262301704session_write_close ( )...(null):0
20.01292433280ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01292434056Database_MySQL->query( ).../DatabaseHandler.php:119
40.05922572776Database_MySQL->error( ).../Db-mysql.class.php:273