Last seen: 2022-10-22 8:18 pm
@davee You were absolutely right. You gave me the correct structure and I found it easy to modify to suite my requirements. Thank you again.
@zander Oh dear, silly me. I should have said that I posted the code simply as a comparison with @davee 's code and not for analysis so I did not both...
@frogandtoad I believe I was correct, @davee 's code did work as is with no tweeks and no globals. Here it is pasted directly from my script. I only t...
@will It is equivalent to delay() but does not block the program flow. It only blocks one leg of the code. In my case I want to stop the sonar for a s...
@will @davee @ronbentley1 @inq Thank you all for your advice, help with syntax, examples and above all, your time. The timing function is an importa...
@will By the way your avatar is remarkably like a character in a small animated video I made a long time ago. A funny spoof about advertising. I would...
@will Thanks again. That solved the problem. 😀
@will are you suggesting I am not doing something silly? I hope so! 🤔
@will The attachment was to sort of replicate the problem in my sketch. I declared int n before "setup" in my sketch because I thought that was the...
@zander Yes, I am also picky about format. For me colouring of keywords is also very important but that is lost when posting here. I am surprised that...
@inq It is working but not yet suitable for a video. It is too jerky and I need to get the hang of changing stepper speed on the fly. When it works to...
@zander Didn't see a line number option in Arduino 2.0.0 but they are showing in my sketch. I noticed that I could not select the line numbers with th...
its this line in the loop at case 2 int spd = speedFacter * distance;
/* Two 28BYJ-48 5V Stepper motors controlled by HC-SR04 Sonar module */ //--------------------------Stepper motor globals----------------------...
@inq @will There is something wrong. I have tried all integers, long's and floats. Still get silly answers. It may be a full memoryl. How can I check ...