Building Microcontrollers with Simulink & RTW

  • Thread starter Thread starter physicsCU
  • Start date Start date
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 2K views
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!
 
Physics 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: