Skip to content
/ dartcan Public

This project is to control an Inverted Rotary Pendulum work at non-zero position input by combining State Space Control, Distributed Algorithm, Embedded C, FreeRTOS and TTCAN . They all were performed on four Atmel AVR

Notifications You must be signed in to change notification settings

buivn/dartcan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Embedded System with Distributed Algorithm - RealTime Processing - TTCAN
This project is to control an Inverted Rotary Pendulum work at non-zero position input by combining State Space Control, Distributed Algorithm, Embedded C, FreeRTOS and TTCAN . They all were performed on four Atmel AVR.
Physical IRP model

Simulink Model:

Function's structure of the control system:

The communication's schedule (TTCAN) among microControllers:

- 1st microController - SEN-mu: handles with sensor signals. After receiving sensor's data in every 3 milliseconds, the data is then pre-processed to get four system states and transmit to other microController.

- 2rd microController - PUSB-mu: implements State-space control algorithm and handle the input command from Button Matrix. It receives four states of IRP (2 angles, 2 angular velocities) and one additional reference input state from HMI-mu, which is then applied to the controlled formula. Its output is the amount of energy should be transmitted to the DC motor. For Button Matrix, it would process the input signal such as changing the reference input, on/off system, check the system's state.

- 3nd microController - LCD-mu: Display system states and working condition on LCD. It also works as Time Master which transmits Time Point to all other microController to synchronize the clock in the whole system.

  • 4th microController - MOTO-mu: It controlled the DC motor via H-bidge circuit with frequency of 14kHz.

All four microController's Timer were synchronized in every 3 millisecond, which ensured all activities will run in real time. The result are shown in the figure following: The response of Angle Phi - data from encoder 1:

The response of Angle Alpha - data from encoder 2:

The operation of IRP:

For more detail, please read my master thesis report attached on this repo.\ Link to project result: https://www.youtube.com/watch?v=YgHMSljbNwk&t=1s

About

This project is to control an Inverted Rotary Pendulum work at non-zero position input by combining State Space Control, Distributed Algorithm, Embedded C, FreeRTOS and TTCAN . They all were performed on four Atmel AVR

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published