Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Nicla Sense ME - I2C Other Sensors

    Nicla Sense ME - I2C Other Sensors

    Ciprian
    Established Member

    Hello there,

    I have been trying to wrap my head around the Nicla Sense ME for the past few days, without much luck.

    1. Firstly, the temperature and humidity data seems incorrect.
    2. Secondly, I had to update the firmware by using the GitHub repo in order to get BTEC to work (legacy sensor id issue)
    3. Thirdly, tusing :

     

    namespace nicla;

     

    Doesn't actually work, it tells me "nicla is not a namepace-name". So in order to get the led to blink, I have to use the full nicla::leds.begin and nicla::begin().

    Now leaving everything else asside, which by the way if anyone knows why the temps are incorrect please let me know. I am having issues using the I2C, I have an Adafruit SI1145 and MLX90614, both working perfectly fine with 3.3v and I2C on an Arduino Mega. On the Nicle Sense ME, I cannot get the board to identify the sensors.

    If anyone can just show/demonstrate a simple I2C example with any sensor, connected to the Nicla Sense ME, I would be more than happy.

    Thank you!

    12 REPLIES 12

    duby
    Occasional Visitor
    Hi BSTRobin, I have the same I2C problem to communicate Nicla Sense Me with ATTINY 1624. Do you have any code to try it?

    BSTRobin
    Community Moderator
    Community Moderator

    The MCU used by the Nicla Sense Me board is Nordic's nRF52832. For information on how to use the Nicla Sense ME board to access other peripherals through I2C, please refer to the example on the Arduino forum on how to use I2C. For example: https://forum.arduino.cc/t/i2c-hardware-software-operations/1147880

    Ciprian
    Established Member

    Hey Duby,

    Been a long time since I made this post and been here, but ensure you have either a proper 5V usb power to the NICLA (use different PCs or power supplies) or that your battery is charged if you are using the battery power.

    The waveform was not present for me with 5V over USB from my desktop PC, but worked with 5V over USB from my laptop, that was the only thing that changed between different "environments", and that fixed my I2C issues, and the waveform can seen on an oscilloscope, check the photo attached.

    Screenshot 2024-03-08 at 20.51.31.png

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist