Skip to main content
MPote.1
Associate
September 5, 2020
Question

Problem with I2C communication between NUCLEO-F042k6 and CO2 Sensor SCD30

  • September 5, 2020
  • 11 replies
  • 9724 views

I spend whole day traying establish communication between NUCLEO-F)42k6 and CO2 Sensor SCD30 https://www.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/9.5_CO2/Sensirion_CO2_Sensors_SCD30_Interface_Description.pdf

I have connected SDA line from Sensor to D2(PA12) on Nucleo and SCL from Sensor to D8(PF1).

GND from sensor connected to GND on Nucleo and VCC from sensor conected to 3.3 on Nucleo.

I'm using STM32 Workspace and in STM32CubeMX perspective I have configured GPIO pins like described above. Additionally I set No pull up and No pull down for SCL and SDA as it look like its done on sensor board by manufacurer. GPIO Mode Alternate Function Open Drain.

I'm receiving in putty terminal following output:

▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒-Buffer

▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒-Buffer

▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒-Buffer

▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒-Buffer

I will be appriciate for help with getting CO2, Huminidity and Temperature readings from this sensor. This is my beggining with STM32 and after whole day I haven't idea how to proceed with that. My code which require correction is below.

    This topic has been closed for replies.

    11 replies

    RShiv.1
    Associate III
    November 18, 2022

    Hi,

    even with STM32F103C8 also we are facing the same issue as C6...built the project using STMcubeMx..

    is there really a problem in cubeMx...waiting for response from any one..

    regards

    Ravi

    TheRaprus
    Associate III
    August 8, 2023

    Hi to everybody.

    Has anyone solved? Thanks.