Chip
Chip
@chip
Member
Joined: 2019-10-20 5:42 pm
Last seen: 2019-12-31 8:02 pm
Topics: 3 / Replies: 76
Reply
RE: Newbie needs help with arduino code

I found this code on gethub and was wondering if anyone could help me incorporate it into my code for turning my robot, I won't be using a keyboard bu...

4 years ago
Forum
Reply
RE: Newbie needs help with arduino code

lol at magic numbers well I warned you my logic might not make sense to anyone but me so let me try and explain my logic as best I can. if the robot i...

4 years ago
Forum
Reply
RE: Newbie needs help with arduino code

Let me explain Dheading & heading as best I can Dheading is my desired heading (direction) of the robot and that value changes throughout the vo...

4 years ago
Forum
Reply
RE: Newbie needs help with arduino code

Thank you for you advise, I have made the changes you suggested.

4 years ago
Forum
Reply
RE: Newbie needs help with arduino code

Thank you for that info, I had no idea how to do that :) Here is my revised ino if you want to look it over, Thanks a million.

4 years ago
Forum
Reply
RE: Newbie needs help with arduino code

Thank you for pointing that out I missed one curly bracket and had one to many in that code. Here is my corrected code, I hope I fixed it correctly. ...

4 years ago
Forum
Reply
RE: Newbie needs help with arduino code

Thank you for your input and I should have explained what the code does, so let me try to explain my logic here. This code takes the value from the "c...

4 years ago
Forum
Reply
RE: Newbie needs help with arduino code

This works but is there a better way to do it? Any help would be much appreciated. void aligntocompass(){ if (heading==0){// if compass heading i...

5 years ago
Forum
Reply
RE: Newbie needs help with arduino code

LOL I don't blame you there because my not knowing how to program my, logic might not make perfect sense to anyone other than me :). Thanks again for ...

5 years ago
Forum
Reply
RE: Newbie needs help with arduino code

lol , now maybe you could take a look at the way my logic works for turning and simplify that (big grin) :)

5 years ago
Forum
Reply
RE: Newbie needs help with arduino code

cmmoved=(encoderValueR / 10); this variable is to calculate how far chip (The Robot) moved in centimeters. and I have removed the lines 210 and 211...

5 years ago
Forum
Reply
RE: Newbie needs help with arduino code

Okay here is the new ino file with changes and the actual rpm is about 40 when set it to be at 10, and about 10 rpm when I set it for 2 , just like b...

5 years ago
Forum
Reply
RE: Newbie needs help with arduino code

volatile long lastencoderValueR = 0; volatile long lastencoderValueL = 0; So woule I delete these lines in my global ?

5 years ago
Forum
Reply
RE: Newbie needs help with arduino code

So all this would go in my Void Loop ?

5 years ago
Forum
Page 3 / 6