How to make Robot Wall Racers

Yes, yes, and yes :slight_smile:

Yes, yes, and yes :slight_smile:

Got my project

Got my project started

https://www.robotshop.com/letsmakerobots/node/27037

Really hope you make that

Really hope you make that video explaining the code, it seems quite confusing the way you did itā€¦

Sorry, but I will likely not

Sorry, but I will likely not :slight_smile:

What confuses you, I wonder? Just overall?

Its mostly to do with the

Its mostly to do with the way that you use oldrangeright and differencerangeright. Ā Oh and what does this code do: oldrangeright = rangeright

Thanks for replying! :slight_smile:

Say you have a variable

Say you have a variable (Example: range), and you want if it has in- or decreased. Is it getting smaller or bigger?

How would you know?

This is how: Find the place in the code (that you are writing) where the value is actually changing; For instance, when you are reading a sensor, or adding to the variable.

JUST before that line, make another variable = the ā€œoldā€ value. Example, a variable called OldRange.

Let that be = Range

Now, just AFTER you have changed ā€œrangeā€ (read it again, calculated somethingā€¦ then you can see if ā€œOldRangeā€ is > or < than range. En essense; Is Range getting smaller or bigger? (Are we moving away, or are we approachingā€¦

I hope that helped :slight_smile:

**Starting with a good relay ā€¦ **

I love this idea! okay, gushing complete - next.

I started looking for some decent relayā€™s and would love some feedback on this unit :a twin set pre mounted to a pref board.

https://www.robotshop.com/ca/productinfo.aspx?pc=RB-Dro-16&lang=en-US

Ā 

Thereā€™s only 2 there, but

Thereā€™s only 2 there, but they look good: Important thing is that they will ā€œclickā€ with the Vā€™s you feed them. I donā€™t know the rest of your setup, just make sure you arenā€™t just feeding them 4.5V, and they need 6, you know :wink:

(From experience)