Skip to content

Simulink SystemObject for controlling ODrive by Raspberry PI Simulink target

Notifications You must be signed in to change notification settings

aa4cc/SimulinkOdrive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimulinkOdrive

Simulink SystemObject for controlling odrive by Raspberry PI Simulink target

Usage

  1. Clone this repository
  2. Add it into matlab path
  3. Insert MATLAB System block into your simulink model and select ODrive
  4. Set up everything in block mask

Used time in your model

All measurings are done with original ODrive firmware, which comunicates on 115200 bauds. Increasing this speed shoud lower theese times. If there are only reference inputs time used by this block on raspberry Pi3 connected by serial port is insignificant (0.1ms).

Enabling any output will add time for reading it:

Approx:

  • Axis estimated position 5.6-5.7 ms
  • Axis estimated velocity 5.9-6.0 ms
  • Axis measured current 6.7-6.9 ms
  • Axis error 3.6-3.7 ms All prepared outputs took 17.2-18.3ms

You can use block timing options to compare your results

About

Simulink SystemObject for controlling ODrive by Raspberry PI Simulink target

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published