Skip to main content

Posts

Showing posts from November, 2017

Multi thread your Arduino

I am searching for multi-threading or parallel programming with Arduino. I have to operate two loops, the second loop has to start after the first one completes its 1/3rd process. i googled and found that the usage of the millis() function in Arduino instead of using delay() function. if you search for multi-thread in Arduino you will get that simple LED Blink tutorial for how to use this millis() code instead of delay() which is very easy. So if you want to learn some basics then go and google it.  before we start i am just beginner in Arduino i just know how to make for loop nad functions! in this blog, I am going to demonstrate how to use that millions() function for making time delay between different operations. as I said earlier I have to make a program in which there is two loop or operation in which second loop or operation starts after some time T and the first one starts immediately after starting the programme. to keep this programme simple I have taken 2 servos