This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

I need SGP30 i2c Sensor register address would you help me?

Hi. every one

First of all, i am a beginner.

I connected the max44009 and CJMCU2080 sensors to the board.

and also get a value.

but sgp30 sensor is faile

there is no information even google.

so.. i want to know sgp30 sensro src or register address

plz..

thanks

Parents
  • i am a beginner.

    Is that just a beginner with Nordic?

    Or a beginner with microcontrollers in general?

    Or a beginner with any form of programming?

    For Nordic, start here:

    https://www.nordicsemi.com/Get-Started

    I connected the max44009 and CJMCU2080 sensors to the board.

    To what board, exactly?

    Remember that we don't know you, we can't see what you're doing or what you have, and we can't read your mind!

    As well as connecting the hardware, you will need appropriate software running on whatever it is that you're using to control these devices.

    So what software are you using?

    If you have a Nordic Dev Kit, there is a TWI Scanner example - that will report the I2C (aka "TWI") addresses of all connected Slaves.

    https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/twi_scanner_example.html

    sgp30 sensor is faile

    You didn't mention that as one of your sensors!

    there is no information even google

    Really?!

    If I google "SGP30", I find many hits - but you haven't given enough information to know if they are the same sensor you're talking about.

    So where did you obtain it?

    Always ensure that you can obtain sufficient documentation before parting with your money!

    i want to know sgp30 sensro src or register address

    That has nothing to do with Nordic!

  • Thanks for answers.

    first Micro controller and nordic beginner

    second i am using nordic nrf52dk

    third ses(SEGGER Embedded Studio)

    fourth i2c connected need to "configuration register address" but i can't find

    i search sgp30 datasheet but.. i can't

    and i using "twi_sensor_example_file"

    void SGP30_trigger_measurement(void)
    {
        m_xfer_done = 0;
        ret_code_t err_code;
        uint8_t reg[2] = {SGP30_FRATURESET, NORMAL_MODE}; // this section
        err_code = nrf_drv_twi_tx(&m_twi, SGP30_ADDR, reg, sizeof(reg), false);
        APP_ERROR_CHECK(err_code);
        NRF_LOG_INFO("\n\nMuti-read enable\r\n");
        while(m_xfer_done == false);
        
        /* Writing to pointer byte. */
        reg[0] = SGP30_FRATURESET;
        m_xfer_done = false;
        err_code = nrf_drv_twi_tx(&m_twi, SGP30_ADDR, reg,1, false);
        APP_ERROR_CHECK(err_code);
        while(m_xfer_done == false);
    }

    "this section" need to configurtion register address

Reply
  • Thanks for answers.

    first Micro controller and nordic beginner

    second i am using nordic nrf52dk

    third ses(SEGGER Embedded Studio)

    fourth i2c connected need to "configuration register address" but i can't find

    i search sgp30 datasheet but.. i can't

    and i using "twi_sensor_example_file"

    void SGP30_trigger_measurement(void)
    {
        m_xfer_done = 0;
        ret_code_t err_code;
        uint8_t reg[2] = {SGP30_FRATURESET, NORMAL_MODE}; // this section
        err_code = nrf_drv_twi_tx(&m_twi, SGP30_ADDR, reg, sizeof(reg), false);
        APP_ERROR_CHECK(err_code);
        NRF_LOG_INFO("\n\nMuti-read enable\r\n");
        while(m_xfer_done == false);
        
        /* Writing to pointer byte. */
        reg[0] = SGP30_FRATURESET;
        m_xfer_done = false;
        err_code = nrf_drv_twi_tx(&m_twi, SGP30_ADDR, reg,1, false);
        APP_ERROR_CHECK(err_code);
        while(m_xfer_done == false);
    }

    "this section" need to configurtion register address

Children
Related