- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi WICED team,
I am trying to connect external sensors to the TAG4, and the same code that is working fine on TAG 3 doesn't seem to initiate any I2C communication on J9 of my TAG4. I have switches 2 and 4 on SW8 set to OFF, are there some other switches I need to set?
Thanks,
Filipp
Solved! Go to Solution.
- Labels:
-
I2C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In addition to pulling P8 high, you'll also need pull P2 low. Sorry for the confusion on this--referenced an older schematic where this wasn't necessary.
Jacob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you seen this Help Article that jakewtorres put together: Leveraging TAG4 to better understand the WICED Smart Programming Environment
If you scroll down, there is a section on interfacing over I2C with sensors.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi filipps,
Please pull P8 high in the firmware in order to bring out i2c onto the pins.
The headers on the board are cut off from the MCU by the i2c expander. P8 is an output enable pin for this i2c expander.
Jacob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I assume you mean GPIO P8/P33...I am setting that high, but still no I2C communication on J9. Anything else I could be missing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In addition to pulling P8 high, you'll also need pull P2 low. Sorry for the confusion on this--referenced an older schematic where this wasn't necessary.
Jacob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Jacob!