The presentation and explanation is excellent ! Please give the full code in one place ; while we are writing down the code to find if any error is made we have to go through the full presentation (to find out where we have made a mistake )
Thanks for a great tutorial. I have watched it a number of times and i still do not under stand why you are setting the" mother LoopCounter equal the functionCounter in the statement" motheLoopCounter=functionCounter;" What is the purpose of setting the loopCounter to the value?
The part of the video cuts just before this line is added " functionCounter = 0; " motherLoopCounter = functionCounter; interrupts(); Serial.print("function is called = "); Serial.println(motherLoopCounter); if(motherLoopCounter == 12){ functionCounter = 0; } Basically, it resets the functioncounter when it get to 12
thank you for the video I'm very new to Arduino and I was wondering if you can help me I'm trying to do a 4 way traffic control using ultrasonic sensor but I'm having a problem with a timer basically I want the red, yellow and green to work if a car falls within a certain distance and it stays there for a certain time. lets say a car was within the distance between 10cm and 70cm the timer starts counting to 5 seconds and after 5 seconds if the car still there the red, yellow and green start. I don't have an issue with the distance part but I'm having a problem with getting the timer to start when the car is within that distance and then test after 5 seconds if still there.
how can I disable Timer1 interrupt ? is there a statement that can undo < Timer1.initialize(length); > and < Timer1.attachInterrupt(my_function); > only without affecting any other external interrupts ??
thank you for the great video. in the playground link you posted for downloading the timer library, which one are you using? (there is another one that is linked by this "A separately maintained and updated copy of TimerOne is also available, supporting more hardware and with optimizations for more efficient code.")
Thank You :) can multitasking/"interupts" be bypassed by more linked arduinos in a "cluster" Can you make I2C/serial comm video with MASTER doing the high level taks and slaves do the parael routines.