Building Microcontrollers with Simulink & RTW

  • Thread starter Thread starter physicsCU
  • Start date Start date
Click For Summary
SUMMARY

The discussion focuses on building microcontrollers using Simulink and Real-Time Workshop (RTW) for tasks such as implementing a PID controller and managing power switches. The user seeks guidance on integrating external input sensors and output actuators into Simulink, ensuring that the RTW-generated C code can effectively process these inputs. A consensus emerges that familiarity with C syntax is essential for working with microcontrollers, and participants recommend acquiring a microcontroller kit and compiler to facilitate hands-on learning.

PREREQUISITES
  • Understanding of Simulink for modeling control systems
  • Familiarity with Real-Time Workshop (RTW) for code generation
  • Basic knowledge of PID control theory
  • Awareness of microcontroller hardware and interfacing
NEXT STEPS
  • Research how to integrate external sensors and actuators in Simulink
  • Learn about microcontroller kits suitable for beginners, such as Arduino or Raspberry Pi
  • Explore C programming basics to enhance understanding of RTW-generated code
  • Investigate recommended books on microcontroller programming and Simulink applications
USEFUL FOR

This discussion is beneficial for aspiring embedded systems engineers, hobbyists interested in microcontroller projects, and students preparing for microcontroller courses who want to leverage Simulink for practical applications.

physicsCU
Messages
198
Reaction score
1
OK, you might laugh at me for this, but...

I am looking at building microcontrollers, doing simple stuff for now, like cutting power to another controller, or doing a PID controller on a servo.

I am thinking about using simulink and real-time workshop to do this. (this is the funny)

My question is, how do I integrate external input sensors and output actuators into simulink so that RTW-generated C code takes those inputs, runs them through my model/program and gives the desired outputs?

And on the power one, that seems pretty basic, user input says switch ->, switch is a power switch, cutting voltage to 0V on board needing to be powered off.

But my question still stands. I am trying to do stuff without learning C syntax, just reading the code, getting familiar (i am doing stuff on desktop as well), so when I take my microcontroller class, I have a leg up.

Thanks all!
 
Technology news on Phys.org
Nope. To learn how to work with uCs, you need to at least buy a small kit and compiler and start writing code. No other way. Go for it!
 
Bummer. And there seemed to be so many resources out there from the MATLAB people.

recommendations as to what I should get for kit and compiler? and a book maybe? I hate finding stuff online, just too frustrating IMO.
 
Last edited:

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K