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

programming a library for i2c communication with the mcp9808

Anonymous
2014-06-20
2014-06-21
  • Anonymous - 2014-06-20

    Originally created by: sj90

    Hello,
    i'm a totally beginner with codesys. I want to combine the raspberry pi and a temperature sensor (mpc9808). I already made the device description and now i have some problems to make a working library. Therfore i have an example code, which i want to transfer into structured text. But it's still not working. It would be great if you give some helpful hints.

    IMG: Bild

    IMG: Bild

    IMG: Bild

    IMG: Bild

    IMG: Bild

     
  • eschwellinger

    eschwellinger - 2014-06-21

    Hi,

    would recommend to start with an empty Pi project
    add Raspberry Pi Peripherals library and execute the write and read , readregister fb's manually
    in the project.
    If this lead to valid values, then next step could be implement this to the library.

    BR
    Edwin

    IMG: RaspiPeripherals.jpg

     

Log in to post a comment.