barrie
barrie
@barrie
Member
Joined: 2022-09-04 9:10 am
Last seen: 2022-10-22 8:18 pm
Topics: 12 / Replies: 74
Reply
RE: Writing a timing function

@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.

2 years ago
Forum
Reply
RE: Writing a timing function

@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...

2 years ago
Forum
Reply
RE: Writing a timing function

@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...

2 years ago
Forum
Reply
RE: Writing a timing function

@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...

2 years ago
Forum
Reply
RE: Writing a timing function

@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...

2 years ago
Forum
Reply
RE: What is Error" n does not name a type" ?

@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...

2 years ago
Forum
Reply
RE: What is Error" n does not name a type" ?

@will Thanks again. That solved the problem. 😀

2 years ago
Forum
Reply
RE: What is Error" n does not name a type" ?

@will are you suggesting I am not doing something silly? I hope so! 🤔

2 years ago
Forum
Reply
RE: What is Error" n does not name a type" ?

@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...

2 years ago
Forum
Reply
RE: Uploading protocol

@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...

2 years ago
Forum
Reply
RE: Uploading protocol

@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...

2 years ago
Forum
Reply
RE: Uploading protocol

@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...

2 years ago
Forum
Reply
RE: Uploading protocol

its this line in the loop at case 2 int spd = speedFacter * distance;

2 years ago
Forum
Reply
RE: Uploading protocol

/* Two 28BYJ-48 5V Stepper motors controlled by HC-SR04 Sonar module */ //--------------------------Stepper motor globals----------------------...

2 years ago
Forum
Reply
RE: Uploading protocol

@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 ...

2 years ago
Forum
Page 3 / 5