Go Down

Topic: what is Arduino limits? (Read 623 times) previous topic - next topic

ejasoft

hello,
i am new to microcontroller i see alot of codes and treid it work nice
but i want to ask about the limits

is the microcontroller like computer and have cpu
if my code big and has alot of loops will slow this cpu ?

how to know if my code to slow or bad for my atmega328

thank you
sorry for bad english
I am using arduino for car pc project you can help me on this blog ????? -

retrolefty

It it's too big then it won't even compile successfully. If you choose poor programming choices then yes your program may be too slow to do what you need it to do. Even with great code skills, some tasks and applications won't work well with a arduino board, as it's limited to a 16mhz clock speed and has limited SRAM for variables and FLASH space for program steps.

Lefty

ejasoft

thank you for reply but how to know if this code slow ?
i want to write some code to check sensors and some input
each one has function and i will call them via loop()

every function has some loops and switches this will slow arduion?
anyway i will write and test it

thank you so much
I am using arduino for car pc project you can help me on this blog ????? -

AWOL

Quote
how to know if this code slow ?
i want to write some code to check sensors and some input
each one has function and i will call them via loop()


"slow" is relative.

A payroll system is real-time, because if things don't get delivered on time in response to certain inputs (by a certain day each month), all kinds of other things can go wrong.

A disk drive controller is also real-time, though on a different timescale.

It is up to you to work out what the response time of your system is, because we can't comment.
You haven't told us what you want to do.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Go Up