I am kind of a beginner with the arduino software and i have a litle problem with the random function.
I would like to have a motor turning "random" from left to right or right to left en then back to where it starts.
so if it start turnig right fore 2 sec, it needs to turn left fore 2 sec after it turned right and vice versa.
in the atachement i have put my .ino file where i try to do it with an lr[]
i hope someone knows the solution, it would realy help me out
the intension is to handle all values between 1 and 50, how do i do that?
if (actie >= 1 && actie <= 50)
{
"if actie is greater than or equal 1 and actie is less than or equal 50". And notice that the { is on the next line, where it belongs (IMHO).