Building Microcontrollers with Simulink & RTW

  • Thread starter Thread starter physicsCU
  • Start date Start date
AI Thread Summary
The discussion centers on building microcontrollers for simple tasks, such as controlling power to another controller and implementing a PID controller for a servo. The user is interested in using Simulink and Real-Time Workshop (RTW) to integrate external input sensors and output actuators into their projects, seeking guidance on how to ensure the RTW-generated C code effectively processes these inputs and produces the desired outputs. A specific example mentioned involves using a switch to cut power to a board. However, the user expresses a desire to avoid learning C syntax initially, aiming to familiarize themselves with the code while working on desktop simulations. Responses emphasize that practical experience with a microcontroller kit and compiler is essential for learning, suggesting that the user should invest in a small kit and compiler, along with a recommended book to aid their understanding. The user expresses frustration with online resources, indicating a preference for more straightforward, curated recommendations.
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:
Thread 'Star maps using Blender'
Blender just recently dropped a new version, 4.5(with 5.0 on the horizon), and within it was a new feature for which I immediately thought of a use for. The new feature was a .csv importer for Geometry nodes. Geometry nodes are a method of modelling that uses a node tree to create 3D models which offers more flexibility than straight modeling does. The .csv importer node allows you to bring in a .csv file and use the data in it to control aspects of your model. So for example, if you...
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...

Similar threads

Replies
2
Views
2K
Replies
10
Views
1K
Replies
3
Views
1K
Replies
0
Views
2K
Replies
1
Views
2K
Replies
13
Views
2K
Replies
19
Views
3K
Replies
10
Views
3K
Back
Top