HOW TO IMPLEMENT I2C WITH NRF PRODUCT

Hello, I have an aht20 sensor from adafruit and an rtc ds3221, the 2 sensors are i2c, except that I am taking this course academy.nordicsemi.com/.../, but the course in question they used a shield for i2c communication, already for me I don't think it was the best example,  can you help me? Thanks. 

Grin

  • Can someone help me please.

    It's quite frustrating to know that I can't get help with my i2c problem, I'm not making any progress in learning, can anyone help me please? I've already wasted enough time with your products.

  • Hi,

    A few items regarding your experiences regarding the time this has taken

    1. Response time will vary from time to time. In this case a solution has been presented in form of the I2C academy course, but we keep the case open to help you get to your goal.
    2. Arduino, which is meant for learning microcontrollers and electronics, is unfortunately a big leap away from embedded developing and computing and you will have to spend some time to bridge the gap between these areas of the field. In arduino you can do 'sensor.available()' and everything magically works, while in embedded developing you will have to do some more configurations
    3. You can also search the forum for similar open cases and find information for how to configure I2C there
    4. The Zephyr discord community is also a support forum that contains input and tips regarding how to use peripherals 

    Now regarding your other issue

    1. Can you provide a small diagram to show how you've connected your sensor to the DK they are working with
    2. Can you share your overlay, prj.conf, and main file, so that we may take a closer look
    3. Do you have access to a logic analyser you can use to debug and check the lines?

    Let me know about these three last items and we'll see what we can do for you.

    Kind regards,
    Andreas

  • I thought about all these alternatives, checked the forum (you have topics that are old), I did some research on the internet in general (I don't find many issue as other board), I discussed  with people more advanced than me, but I did not have a favorable response.  I just don't sit and wait for a response, when I come here it's a last resort, since I've exhausted the little resources I have.

    For arduino, It's just to make sure that my sensor actually works, not a comparison with other board.

    Overlay File 

    Diagram

    I don't  have logic analyser, I think I'll Buy it.

    Thanks

  • Hi,

    I see now that you're using the 7002DK and you've relied on the 5340 SoC doc. For the nRF7002DK you can use https://infocenter.nordicsemi.com/pdf/nRF7002_DK_User_Guide_v1.0.0.pdf as a reference doc

    Regarding your diagram and dts everything looks correct. As long as there are nothing else using the pins you've selected and you've instanced and initialized your I2C coms correct, this should be working. 

    Could you post your code as well?

    Kind regards,
    Andreas

Related