Shop OBEX P1 Docs P2 Docs Learn Events
Javelin and I2C — Parallax Forums

Javelin and I2C

ArchiverArchiver Posts: 46,084
edited 2002-10-23 09:17 in General Discussion
Hi!

I have a SRF08 (http://www.robot-electronics.co.uk ) and a Javelin-Stamp
but I cant get it run.
The problem is the I2C bus. I use the I2C.class class, but it does not
respond in any way.

Does anyone have an example?
There IS a sample for BS2 (in basic), unfortunately I never programmed
in BASIC, so I am not sure if I understand it.

Best regards,
Roland.

--
Roland Schaffer

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-10-23 08:16
    yes, I have 4k7 pullups at both iof them.

    Am Mit, 2002-10-23 um 10.17 schrieb John Murphy:
    > Be sure that you have pullup resistors on your SCL and SCA pins.
    >
    >
    >
    Original Message
    > From: roland [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=TzRxaDCWqgH_d6TdXnqj4QBl5uY7V989dYdn8EkiKNKHoP34hh7fUU7D9nG7SOECFnXd3ZNgiBOVuM1q]roland@x...[/url
    > Sent: Tuesday, October 22, 2002 11:58 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Javelin and I2C
    >
    >
    > Hi!
    >
    > I have a SRF08 (http://www.robot-electronics.co.uk ) and a Javelin-Stamp
    > but I cant get it run.
    > The problem is the I2C bus. I use the I2C.class class, but it does not
    > respond in any way.
    >
    > Does anyone have an example?
    > There IS a sample for BS2 (in basic), unfortunately I never programmed
    > in BASIC, so I am not sure if I understand it.
    >
    > Best regards,
    > Roland.
    >
    > --
    > Roland Schaffer
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    > Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and Body
    of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
    --
    Xiberg softworX
    Hochlastserver - Synthetische Sprachen - Systemprogrammierung
    Unix System V - Linux - HP-UX - QNX - UnixWare - BSD
    http://www.xiberg.com roland@x...
  • ArchiverArchiver Posts: 46,084
    edited 2002-10-23 08:41
    Keep in mind that the I2C class just creates a bus and the low-level commands
    (start, write byte, read byte and stop) for general-purpose I2C
    communications. I can tell you that it works -- because I wrote it. What
    the programmer has to do is create a class for the desired object that
    references a previously-instantiated I2C bus object and calls the various
    methods in the I2C class to handle higher-level work.

    I have a couple SFR08s but haven't connected them yet. I have, however, used
    the I2C class to talk to the Devantech CMPS01 which also uses I2C. Contact
    me off-list and I will send you that code.

    -- Jon Williams
    -- Parallax

    PS: You are aware that there is a separate Javelin support list, right? It's
    a private [noparse][[/noparse]not on Yahoo] list that can be accessed through
    www.javelinstamp.com.

    In a message dated 10/23/02 2:02:43 AM Central Daylight Time,
    roland@x... writes:


    > Hi!
    >
    > I have a SRF08 (http://www.robot-electronics.co.uk ) and a Javelin-Stamp
    > but I cant get it run.
    > The problem is the I2C bus. I use the I2C.class class, but it does not
    > respond in any way.
    >
    > Does anyone have an example?
    > There IS a sample for BS2 (in basic), unfortunately I never programmed
    > in BASIC, so I am not sure if I understand it.
    >
    > Best regards,
    > Roland.
    >
    > --
    >




    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-10-23 09:17
    Be sure that you have pullup resistors on your SCL and SCA pins.


    Original Message
    From: roland [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=J5kbi0bMco61bU1bjQcUJCFUIwvcxvsRKz9Ng9dg37932X350veEhk0VWKkshZKN4DDuwCGmwdD8]roland@x...[/url
    Sent: Tuesday, October 22, 2002 11:58 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Javelin and I2C


    Hi!

    I have a SRF08 (http://www.robot-electronics.co.uk ) and a Javelin-Stamp
    but I cant get it run.
    The problem is the I2C bus. I use the I2C.class class, but it does not
    respond in any way.

    Does anyone have an example?
    There IS a sample for BS2 (in basic), unfortunately I never programmed
    in BASIC, so I am not sure if I understand it.

    Best regards,
    Roland.

    --
    Roland Schaffer


    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.


    Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Sign In or Register to comment.