I2CBridgeTest
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
Cite As
Stefan Heesch (2024). I2CBridgeTest (https://www.mathworks.com/matlabcentral/fileexchange/54937-i2cbridgetest), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.