Shop OBEX P1 Docs P2 Docs Learn Events
i2c — Parallax Forums

i2c

LitefireLitefire Posts: 108
edited 2007-01-06 07:53 in Propeller 1
sorry to sound hopeless, but i'm new starting out with i2c, and need a little help with my motor controller...

can someone give me some sample code to read and then to write to a register on this controller: http://www.robot-electronics.co.uk/htm/md23tech.htm?

I looked at some of the objects... but a lot of it just looks like gobbledygook cause i don't know what the terms mean.

Thanks for any help...

~~Brian

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-01-04 05:14
    Have a look at the MCP23016Object.spin file in the I2C functions archive. This is a similar device that has a set of 8-bit registers addressable with an 8-bit register address.

    Post a list of the terms you don't understand or what you think they mean and we'll try to explain them for you.
  • JavalinJavalin Posts: 892
    edited 2007-01-04 10:10
    There is also a MD22 motor controller example - which I believe is similar to the MD23 from robot-electronics

    On the robot-electronics examples page, I also have Javalin Stamp and there is basic stamp examples which might help.

    James
  • LitefireLitefire Posts: 108
    edited 2007-01-04 20:18
    thanks, i just found the MD22, with a little tweaking that's going to be perfect

    again, thanks for the help!

    ~B
  • Goran (Sweden)Goran (Sweden) Posts: 68
    edited 2007-01-06 06:14
    Mike,
    How/where can I find the <I2C funcions archive>

    "Have a look at the MCP23016Object.spin file in the I2C functions archive"

    Regards, Goran
  • Mike GreenMike Green Posts: 23,101
    edited 2007-01-06 06:40
    If you go to the Propeller page of the Parallax website, you'll see a link to the Propeller Object Exchange (ww1.parallax.com/Default.aspx?tabid=65). This is a library of contributions by Parallax and Propeller users including the I2C functions library which has the example I mentioned as well as others.
  • Goran (Sweden)Goran (Sweden) Posts: 68
    edited 2007-01-06 07:53
    Thanks Mike, for your fast responce.

    Gorantongue.gif
Sign In or Register to comment.