Unfortunately, no matter how much i research and try various things, I cannot manage to get it to work. This is what my "main" simulink block looks like:
The board I am using is the Arduino Uno. I am trying to connect it using I2C. When I do so, no error shows, I this is what i see when I execute the .slx file:
My read configuration:
The output I get stays the same, it doesn't change one bit... Could someone please help me? Ii attached the file below just in case
As the tutorial is given for the onboard accelerometerand the hardware architecture for FRDM Board would bedifferent from Arduino Uno and hence leading to the issue.
Trygoing through thedatasheet for the accelerometer you are using and get the registers right.
Unfortunately I have attempted that code with no success... I tried it on the 2020a version, as well as the 2019b version. It should work, but it doesn't. I get values, buty they stay the same hroughout, even though I tilt the MMA8451 board back and forth...
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
0 Comments
Sign in to comment.