I am trying to create an S-function in Simulink for reading the Pixy Outputs over SPI on the Arduino Uno.
The idea is to develop a control system on Simulink and run it on the Arduino. Pixy is my sensor and I need to develop a Simulink block to output the data in pixy.blocks[i].
I tried following this youtube video: https://www.youtube.com/watch?v=_OLctOFjjYQ and even though the code compiled and downloaded to the Arduino, there was no output when I ran the model in external mode.
Anyone has experience in this area?