Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

I2C Address.Bereich

Guenter
2018-12-25
2018-12-26
  • Guenter - 2018-12-25

    Hallo
    ich möchte einen BMP280 über die I2C Schnittstelle anschliessen.
    Adr: 0x76
    Mit SUDO I2CDETECT -y 1 finde ich das Gerät, ABER mit Codesys geht's nicht
    Wenn ich online verbunden bin dann ist vor dem BMP280 device ein rotes Dreieck.

    Was mache ich falsch?
    Kann eventuell mit Codesys die Adresse nicht erreicht werden (0x76)?

    Danke für die Hilfe

    Guenter

     
  • eschwellinger

    eschwellinger - 2018-12-25

    Hi,
    please check the parameter here:
    BR
    Edwin

    IMG: I2CAdress.png

     
  • Guenter - 2018-12-25

    Hi Erwin
    I have checked and it looks like ok: I get the info that the BME Bus is not working

    hm

    Guenter

    IMG: sc1.JPG

     
  • Guenter - 2018-12-25

    I also have tried to read the whole I2C bus with i2c_master.read but no Response from a device
    range: 0x00 up to 0xFF

    IMG: sc2.JPG

     
  • eschwellinger

    eschwellinger - 2018-12-26

    Hi,
    if you use 16#76 as address in the configuration, does the BME connector turn into a green circle in the device tree without any call from the pou's?

    BR
    Edwin

     
  • Guenter - 2018-12-26

    Hi Edwin

    no green circle. I will check with a oszzi if the ports are working with the i2cmaster.read

    Regards

    Guenter

     

Log in to post a comment.