# I2C errors when using Mojo

**URL:** <https://discuss.blues.com/t/i2c-errors-when-using-mojo/2914>\
**Category:** Hardware\
**Created:** [March 12, 2025, 10:05pm UTC](https://discuss.blues.com/t/i2c-errors-when-using-mojo/2914 "2025-03-12T22:05:06Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![stopper4298](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@stopper4298](https://discuss.blues.com/u/stopper4298)\
**Post date:** [March 12, 2025, 10:05pm UTC](https://discuss.blues.com/t/i2c-errors-when-using-mojo/2914/1 "2025-03-12T22:05:06Z")

</div>

I’ve been using a Mojo on my dev setup for a week or so. At first it worked perfectly fine, but now I’m getting constant i2c errors when requesting “card.power”. The other commands seem to work fine.  
I’m using an esp32 running espidf v5.4, note-c v2.3.1, and note firmware 8.1.3.17044 on a Notecarrier F v1.3  
Any idea’s what the issue could be? I’m polling the mojo every ~7 minutes or so. Is there a minimum time between card.power requests ?

---

<div class="post-metadata">

**Author:** ![zfields](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/zfields/32/29_2.png) [@zfields](https://discuss.blues.com/u/zfields)\
**Post date:** [March 12, 2025, 10:29pm UTC](https://discuss.blues.com/t/i2c-errors-when-using-mojo/2914/2 "2025-03-12T22:29:23Z")

</div>

Hi @stopper4298 ,

We are happy to welcome you to the Blues forum!

Are you powering your device on a bench top power supply, USB, or a battery?

I’ll try to reproduce your issue, while I wait for you to get back to me.

Cheers,  
Zak

---

<div class="post-metadata">

**Author:** ![stopper4298](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@stopper4298](https://discuss.blues.com/u/stopper4298)\
**Post date:** [March 12, 2025, 11:05pm UTC](https://discuss.blues.com/t/i2c-errors-when-using-mojo/2914/3 "2025-03-12T23:05:27Z")

</div>

Thanks for your quick reply!  
I’m using it with a battery plugged in, and I have the feather plugged into the computer via usb. I have noticed that the battery voltage reading is not changing at all. I’d at least expect the voltage to drop very slowly

---

<div class="post-metadata">

**Author:** ![zfields](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/zfields/32/29_2.png) [@zfields](https://discuss.blues.com/u/zfields)\
**Post date:** [March 12, 2025, 11:48pm UTC](https://discuss.blues.com/t/i2c-errors-when-using-mojo/2914/4 "2025-03-12T23:48:28Z")

</div>

Okay, I think understand your setup enough to attempt a repro.

To further refine my understanding, can you answer these questions?

- Are you using the Adafruit ESP32 Huzzah Feather, or something different?
- Which type of Notecard are you using?
- Do you have any other peripherals plugged into the I2C than the MoJo?

I’ll reproduce it first thing in the morning and I’ll get back to you with my findings.

Best,  
Zak

---

<div class="post-metadata">

**Author:** ![stopper4298](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@stopper4298](https://discuss.blues.com/u/stopper4298)\
**Post date:** [March 13, 2025, 12:14am UTC](https://discuss.blues.com/t/i2c-errors-when-using-mojo/2914/5 "2025-03-13T00:14:36Z")

</div>

> - Are you using the Adafruit ESP32 Huzzah Feather, or something different?

Correct, ESP32 Huzzah Feather v1

> - Which type of Notecard are you using?

Notecard v2.1 black - NOTE-WBNAW, cellular + wifi

> - Do you have any other peripherals plugged into the I2C than the MoJo?

Feather, Notecard, Mojo are the only peripherals on the I2C line. They’re using the default i2c address.

Other info:

I’m using the N\_ATTN pin connected to a digital pin on the feather setup with an interrupt, and a few LEDs also controlled by the feather. BLE is enabled on the ESP32. Battery is a 5000mah lipo.

Notecard is in continuous mode with sync set to true.

I2C setup is:

```auto
    i2c_master_bus_config_t i2c_mst_config = {
        .i2c_port = I2C_NUM_0,
        .sda_io_num = I2C_MASTER_SDA_IO,
        .scl_io_num = I2C_MASTER_SCL_IO,
        .clk_source = I2C_CLK_SRC_DEFAULT,
        .glitch_ignore_cnt = 7,
        .intr_priority = 0,
        .trans_queue_depth = 0, // only used for asynchronous transactions
        .flags{
            .enable_internal_pullup = false,
            .allow_pd = false, // disallow i2c bus to be disabled for power savings
        }};
    ESP_ERROR_CHECK(i2c_new_master_bus(&i2c_mst_config, &bus_handle));

    i2c_device_config_t dev_cfg = {
        .dev_addr_length = I2C_ADDR_BIT_LEN_7,
        .device_address = NOTE_I2C_ADDR_DEFAULT,
        .scl_speed_hz = 100000,
        .scl_wait_us = 0, // uses register default
        .flags{
            .disable_ack_check = false,
        }};
    ESP_ERROR_CHECK(i2c_master_bus_add_device(bus_handle, &dev_cfg, &dev_handle));

```

I2C messages are working except for the card.power, which gives me this:

```auto
D (2803184) -Notecard-: [INFO] 
D (2803184) -Notecard-: {"req":"card.power","crc":"00F1:4DC601CB"}
D (2803184) -Notecard-: 

E (2803224) i2c.master: s_i2c_synchronous_transaction(918): I2C transaction failed
E (2803224) i2c.master: i2c_master_multi_buffer_transmit(1180): I2C transaction failed

```

---

<div class="post-metadata">

**Author:** ![zfields](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/zfields/32/29_2.png) [@zfields](https://discuss.blues.com/u/zfields)\
**Post date:** [March 13, 2025, 5:12pm UTC](https://discuss.blues.com/t/i2c-errors-when-using-mojo/2914/6 "2025-03-13T17:12:34Z")

</div>

@stopper4298 ,

I’ve reproduced your issue 🙌.

Now, I’m onto the slower diagnosing stage.

I’m making progress, but don’t have an answer for you yet.

I just didn’t want to leave you hanging.

Cheers,  
Zak

---

<div class="post-metadata">

**Author:** ![stopper4298](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@stopper4298](https://discuss.blues.com/u/stopper4298)\
**Post date:** [March 13, 2025, 5:53pm UTC](https://discuss.blues.com/t/i2c-errors-when-using-mojo/2914/7 "2025-03-13T17:53:05Z")

</div>

Awesome, really glad to know that I’m not crazy 😁  
Thanks a bunch for your help and the update!

---

<div class="post-metadata">

**Author:** ![zfields](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/zfields/32/29_2.png) [@zfields](https://discuss.blues.com/u/zfields)\
**Post date:** [March 14, 2025, 7:41pm UTC](https://discuss.blues.com/t/i2c-errors-when-using-mojo/2914/8 "2025-03-14T19:41:08Z")

</div>

Update going into the weekend.

This has turned into a Heisen-bug! 🙃

I have been able to faithfully reproduce the issue for 24 hours, and now that I have all the testing equipment hooked to the board, it’s perfectly behaved.

I will keep hammering on this. I was really hoping to have an answer for you going into the weekend.

Best,  
Zak

---

<div class="post-metadata">

**Author:** ![stopper4298](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@stopper4298](https://discuss.blues.com/u/stopper4298)\
**Post date:** [March 15, 2025, 8:35pm UTC](https://discuss.blues.com/t/i2c-errors-when-using-mojo/2914/9 "2025-03-15T20:35:28Z")

</div>

Thanks for the update Zak! Typical it disappears as soon as it’s investigated - nothing is ever easy, is it?

---

<div class="post-metadata">

**Author:** ![zfields](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/zfields/32/29_2.png) [@zfields](https://discuss.blues.com/u/zfields)\
**Post date:** [March 17, 2025, 7:04pm UTC](https://discuss.blues.com/t/i2c-errors-when-using-mojo/2914/10 "2025-03-17T19:04:38Z")

</div>

Hey @stopper4298,

I am having difficulty reproducing the issue. The board has been acting perfectly for two days now.

Can you send me a picture of your prototype hardware, so I can make sure I have as close a setup as possible?

Thanks,  
Zak

---

<div class="post-metadata">

**Author:** ![stopper4298](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@stopper4298](https://discuss.blues.com/u/stopper4298)\
**Post date:** [March 18, 2025, 2:19am UTC](https://discuss.blues.com/t/i2c-errors-when-using-mojo/2914/11 "2025-03-18T02:19:34Z")

</div>

Sure, will do tomorrow.  
If you remove the testing equipment does the issue return?

---

<div class="post-metadata">

**Author:** ![stopper4298](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@stopper4298](https://discuss.blues.com/u/stopper4298)\
**Post date:** [March 21, 2025, 9:45pm UTC](https://discuss.blues.com/t/i2c-errors-when-using-mojo/2914/12 "2025-03-21T21:45:49Z")

</div>

![PXL_20250321_213627853](https://us1.discourse-cdn.com/flex020/uploads/blues/original/2X/9/93bb03292520a11a55f4c3c78cba86a008310917.jpeg)

Sorry for the delay and please excuse the wire nest.

- The Mojo is connected to the notecarrier-f via the outermost qwiic port
- N\_ATTN is connected to one of the feathers GPIO pins
- I have a on-off switch connected to N\_EN and GND
- The rest of the wires are LEDs hooked to the feather
- I use the feather’s USB port for programming and power
- The battery is hidden under the notecarrier board

---

<div class="post-metadata">

**Author:** ![stopper4298](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@stopper4298](https://discuss.blues.com/u/stopper4298)\
**Post date:** [March 21, 2025, 9:49pm UTC](https://discuss.blues.com/t/i2c-errors-when-using-mojo/2914/13 "2025-03-21T21:49:57Z")

</div>

As an aside, I’d definitely appreciate more GND pins on future carrier boards 😅

---

<div class="post-metadata">

**Author:** ![zfields](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/zfields/32/29_2.png) [@zfields](https://discuss.blues.com/u/zfields)\
**Post date:** [March 24, 2025, 7:10pm UTC](https://discuss.blues.com/t/i2c-errors-when-using-mojo/2914/14 "2025-03-24T19:10:05Z")

</div>

Hi @stopper4298

We haven’t forgotten about you!

We have been trying to reproduce the issue. I have been working with other folks in the company, and we are unable to reproduce the issue.

Can we send you a new Notecarrier-F and ESP32 Feather, to see if you can reproduce it for us?

If you can, then we would like for you to send it back to us for forensic analysis. If you are unable to make the new Notecarrier-F repro, then would you be able to send us the board that is reproducing the issue?

We would really like to get to the bottom of the issue.

Best,  
Zak

---

<div class="post-metadata">

**Author:** ![stopper4298](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@stopper4298](https://discuss.blues.com/u/stopper4298)\
**Post date:** [April 1, 2025, 1:09am UTC](https://discuss.blues.com/t/i2c-errors-when-using-mojo/2914/15 "2025-04-01T01:09:47Z")

</div>

Sure thing! Can you DM me so we can work out the details?

---

<div class="post-metadata">

**Author:** ![zfields](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/zfields/32/29_2.png) [@zfields](https://discuss.blues.com/u/zfields)\
**Post date:** [April 1, 2025, 2:07am UTC](https://discuss.blues.com/t/i2c-errors-when-using-mojo/2914/16 "2025-04-01T02:07:55Z")

</div>

I’ve passed your name along, and they should reach out shortly.

---

<div class="post-metadata">

**Author:** ![ssozonoff](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@ssozonoff](https://discuss.blues.com/u/ssozonoff)\
**Post date:** [April 2, 2025, 6:48pm UTC](https://discuss.blues.com/t/i2c-errors-when-using-mojo/2914/17 "2025-04-02T18:48:19Z")

</div>

Was this ever resolved. I am seeing it as well but using a Notecarrier-F v1.0 and a Swan.

FYI On a Notecarrier-X it worked.

---

<div class="post-metadata">

**Author:** ![stopper4298](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@stopper4298](https://discuss.blues.com/u/stopper4298)\
**Post date:** [April 2, 2025, 8:46pm UTC](https://discuss.blues.com/t/i2c-errors-when-using-mojo/2914/18 "2025-04-02T20:46:35Z")

</div>

Not yet. I’ve been pretty busy so I haven’t been able to dedicate much time to this.

My first guess is an issue with the resistors on the i2c line. That could explain why the issue disappeared once they tried hooking the scope/logic analyzer to it

---

<div class="post-metadata">

**Author:** ![stopper4298](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@stopper4298](https://discuss.blues.com/u/stopper4298)\
**Post date:** [April 2, 2025, 8:48pm UTC](https://discuss.blues.com/t/i2c-errors-when-using-mojo/2914/19 "2025-04-02T20:48:20Z")

</div>

Can you confirm what platform (arduino/python/etc.) you’re using and the firmware version of your notecard?

---

<div class="post-metadata">

**Author:** ![ssozonoff](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@ssozonoff](https://discuss.blues.com/u/ssozonoff)\
**Post date:** [April 3, 2025, 6:01am UTC](https://discuss.blues.com/t/i2c-errors-when-using-mojo/2914/20 "2025-04-03T06:01:15Z")

</div>

Hi,

Sure, its a Notecard Wifi 1.2 running 8.1.4.17149. Platform should be irrelevant since this is a native function of the notecard firmware. The same notecard on a Notecarrier X seems to work. Maybe relevant is the fact that the Notecarrier F series has the level shifting circuitry on it for improved low power.

Thanks,  
Serge

[Next page](https://discuss.blues.com/t/i2c-errors-when-using-mojo/2914.md?page=2)
