How to use the MCP3204?

  • kingpintr

    kingpintr - 2014-11-13

    Hello everyone. I am doing MCP3204 connection, I want to read the measured values of the potentiometer. But in just a MCP3008 devices. I made a connection by introducing the MCP3008. The result was negative. So I can not read the values.
    Is there any way of being able to use this device?

  • eschwellinger

    eschwellinger - 2014-11-14

    you need to modify the MCP3008.library which is part of the delivery
    "c:\Users\<yourusername>\CODESYS Control for Raspberry PI\\SPI_MCP3008.library" and DeviceDescription too.</yourusername>

    use the FAQ in the FORUM section to read best practice on library development.

    Debugging the library is possible (library you could debug compiled.library not) by clicken in the library manager to your desired fb,
    and set a breakpoint in there.


  • laruso

    laruso - 2021-03-31

    Did you get anything to work?

    I want to use the MCP3204 too, in combination with SPI and CODESYS COntrol for Beaglebone SL.

    I've got it done.


    Last edit: laruso 2021-04-06

Log in to post a comment.