I2C and CC3000 wifi

Posted on
  • I am trying to run a breakout light sensor board using I2C and at the same time run a CC3000 wifi breakout board. I can

    confirm that both cards work as expected, separately. The problem comes when we try to use these boards at the same time.

    For the light sensor we are using B8 and B9 for SLC and SDA and it works fine. But the wifi board uses B8 for IRQ and I

    presume that this is set in the module. I noticed that B10 and B11 can be used as for I2C SLC and SDA but when I use these

    pins the with the light sensor board I get timeout errors. I am connecting using I2C2 function but I have tried using I2C1

    as well without success.

    So I see 2 options; work out why B10 and B11 aren't working with I2C or change the CC3000 module so that it uses another

    pin from B8.

    Does anyone have any suggestions on either options?

    Phil

  • I've argued about B8 before - B2 is adjacent to that block of pins, and would seem to be a good choice to use in place of B8, that way we could free up I2C1.

    However... I have had no issues using I2C2 (using it on v62)

    Did you remember to do I2C2.setup({scl:B10,sda:B11}), and check that SDA and SCL are the right way around (I've made this mistake a lot).

  • Yes - hopefully at some point CC3000 pins will be configurable - but I'm afraid it'll be a while before that gets implemented...

    B10/B11 should definitely work with I2C2 - do you have the pullup resistors?

  • (Was going to say I was having similar problems with I2C2)
    Nevermind, it's working for me now. Must have been a bad connection.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

I2C and CC3000 wifi

Posted by Avatar for philw @philw

Actions