Notifications
Clear all

Microcontroller doing multiple functions.

2 Posts
2 Users
0 Likes
176 Views
The apprentice
(@the-apprentice)
Member
Joined: 4 months ago
Posts: 61
Topic starter  

Good day

If you could collaborate if Arduino/Raspberry can do multiple tasks at once. If you could have a video on how to do it and what can be done. Not sure if it can be done. 


   
Quote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6983
 

Posted by: @the-apprentice

Good day

If you could collaborate if Arduino/Raspberry can do multiple tasks at once. If you could have a video on how to do it and what can be done. Not sure if it can be done. 

Tasking is advanced stuff. The answer is quite complex as it matters what you mean. If you mean more than one piece of code running at once, you need a multi processor architecture. Neither Pi or Arduino have that (some members of the Arduino family may).

What most people actually mean is one piece of code runs for a few millionths of a second then another etc. The RTOS OS is designed for this and you can also do it yourself with just using a microsecond time function.

 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote