🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    COLOR_TCS3472 on Atom Lite cannot find sensor

    Scheduled Pinned Locked Moved PRODUCTS
    2 Posts 2 Posters 3.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      Alban_T
      last edited by

      When I use the example sketch for the color_tcs3472 sensor on my Atom Lite the serial output shows:

      No TCS34725 found ... check your connections

      The sensor is working when I use the same sketch with an Arduino Uno so the problem isn't in the sensor.

      Does anyone have any suggestions on how to troubleshoot this?

      Best regards,
      Alban

      1 Reply Last reply Reply Quote 0
      • felmueF Offline
        felmue
        last edited by

        Hello @Alban_T

        the sketch you linked is for M5Stack devices. M5Atom Lite is a bit different. For instance:

        • I assume you modified #include <M5Stack.h> to #include <M5Atom.h>.
        • did you also adapt the M5.begin() call to enable I2C? E.g. M5.begin(true, true, true) - the second true enables I2C on Atom Lite.
        • is your sensor connected to the proper GPIOs? E.g. SDL - GPIO25 and SCL - GPIO21.

        excerpt from M5Atom.cpp as reference:

        void M5Atom::begin(bool SerialEnable , bool I2CEnable , bool DisplayEnable )
        {
        	if( _isInited ) return;
        
        	_isInited = true;
        
        	if( I2CEnable )
        	{
        		Wire.begin(25,21,10000);
        	}
        
        

        Hope this helps. If not, feel free to post the full sketch.

        Good luck.
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post