I come to you in defeat and still a little green to coding.
My Windows machine went down and lost some files
There's just one I'm trying to remake and I can't figure out how it was put together and still too annoyed or had a mini stroke (feels like it) from fixing the computer.
I'm not sure how I worked it out last time but would really like some help getting back on track please.
Trying to change a DC motor speed with input from thouse little ultrasound sensors to stop little robot build slamming into walls at speed .
Code below - This is just as far as I got to tonight and is only to test if it works before adding to full script and messing with speed\distance .
Please read the post at the start of any forum , entitled "How to use this Forum".
OR http://forum.arduino.cc/index.php/topic,148850.0.html.
Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
Robin2:
I think it was I who have had too much sun.
...R
I looked at it over and over again and could not see anything wrong with it, and at the same time I believe you generally know what you are talking about
Bit guilty or copying ultra sound code Unsure but think it helps with travel and bounce times ?
"distance = (duration / 2) * 0.0343;"
So just to clear things up there's nothing wrong with the code exept for some bad arguments and sloppy structure ? I'll have another look later tonight and see what's going on .
Thank you and sorry Tom , I don't use fourms just got desprate
Ok had a look last night and it still didn't run. In the end got out another arduino and it seems like the ultra sonic sensor is not giving any readings . So waiting on parts to see if that's all that's wrong with it.
Have changed the AND to an OR as it seemed to drive people here up the wall
Right changed the sound sensor and got no results back (used monitor mode Tom )
Then thought it was my LiOp BPB, Changed that.
Turns out it was the Arduino after my multi meter had a weak reading. boost converter sent too much power - oops
Code and everything else is working now so a happy bunny . Sorry for any drama, was just a little loopy\defeated with lockdown and Windows throwing a wobbler when I needed it.