Go Down

Topic: Doing Two things at Once (Read 730 times) previous topic - next topic

fritzcharleston

I'm sure that this is possible, by the very nature of the thing, but is it possible to have the Arduino (in my case, Uno) do two completely unrelated things at one time?

As a basic example:  Have Arduino log temperature while also having it work a servo. 

I'm sure it's possible, I just haven't seen it talked about anywhere.

CrossRoads

That is the basis of Blink without delay.

in loop,
check if 50mS has gone by, it if has do one thing.
at the next 50mS interval, do the other

both are done at same time, status checked/action taken every 100mS on each for this example.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

fritzcharleston

Ah, there it is right there!  Thank you!

Kctess5

Of course you could always get a FPGA. But the trick to micros is figuring out how to do the most stuff in the best possible order and efficiently. Its like an art haha

Go Up