This is a small demo project for accessing the I2C bus from a Simulink Model. A singleton class is defined that acts as a proxy for the hardware. It provide three methods for switching on / off an actor and reading the temperature over the I2C bus. As hardware a small I2C to OneWire Bridge with an attached DS1820 temperature sensor is used. The I2C Bridge is described on GitHub: https://github.com/hb9tws/OneWireBridge
Stefan Heesch (2021). I2CBridgeTest (https://www.mathworks.com/matlabcentral/fileexchange/54937-i2cbridgetest), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!