VEX edr UART port with HC-05 Bluetooth [Matlab/Simulink]

#1

Hi, everybody,

I’m trying to make a bluetooth connection between Vex edr and the PC using simulink.

I have connected the bluetooth module HC-05 to the UART1 port.

Does anyone know how I can access the data received by the UART port with simulink?
Through an S-Function or Matlab-Function ?
I have been seeing that most use RobotC, I have found this library for this module:
https://github.com/JMarple/BNSBluetooth

But I don’t know if I could migrate to simulink, this would be my short-term goal.
I will publish all the advances in this post, so I would appreciate any help.

I have found that the “LCD Button” block of VEX Cortex Toolbox accesses the UART port, but I don’t know to what extent I could access the source code.

Another way I’ve dismissed is to use the Instrument Control Toolbox Serial blocks,
as it is not compatible to generate the code with Level-2 MATLAB S-function for the embedded system.

0 Likes