Arduino help?

I want to tell the arduino to one thing while its doing something else at the same time i just dont know how to do it. im new to arduino but learning at a steady pace so please help

sort by: active | newest | oldest
aelias366 years ago
What you want the arduino to do is called Parallel processing. Although you can't technically do it, there are some programs that can compile your code in such a way that it can emulate parallel processing.

I think you'll need to learn a new programing language, if you're up for it.
hightekrednek2396 (author)  aelias366 years ago
what language im slowly learng c++ and c#
Actually, for the Arduino you'll probably be working in straight C, unless you drop down to assembler.
hightekrednek2396 (author)  aelias366 years ago
looks like im learning tranterpreter

thank you
eddevine4 years ago
The problem i'm having is that im using an arduino uno with a GPRS shield and with the code, i get a continuous sms message on my iphone that i cant stop, also when the 2 sensing wires (5v and sensor out) i have set up on the Gprs are unconnected i still get sms messages on my phone.
orksecurity6 years ago
What you'll need to do is write a single loop which performs both tasks. Whether the Arduino is fast enough to keep up with both of them will depend on what those tasks are.
Of course the other solution is two arduinos (arduinodes? arduini?). But if you want the two tasks talking to each other, that still leaves you with the obligation to write a top-level loop which manages that communications link.
76543216 years ago
Arduinos can't do parallel processing. This means that you can only do one thing at a time. It might be possible to use concurrency. This is what your computer does by separating programs into threads, then cycling through the threads really fast.