Long live LMR
Long live LMR
Long live LMR
Long live LMR
your code
could you attach the code you are using please? It seems your sensor sweep is exactly that what i wantt to achieve with Steven X.
Yes with pleasure my friend,
Yes with pleasure my friend, I will add it under the main photo in my project. Most of this code is from frits,so thanks to him.
Thanks Frits
…and thanks Korel
Frits code
This is the original code from frits project. Thanks again frits.
https://www.robotshop.com/letsmakerobots/node/254
Hope it will help lumi
BAS
Yeah, will convert the code in Arduino language first But right now i do not have time since my daughter need my full concentration since she is playing with things she don’t sould touch… :-)))
Yes true you are using
Yes true you are using arduino not picaxe…sorry about that. Let me know once you’ll have the code please because I have one too and might look at your code and study it. Take care and have a nice day
My robot Penny’s code is
My robot Penny’s code is based on a straight forward translation of the Start Here robot from Picaxe to Arduino. I’ve made many changes since then, but the basic code may get you started.
Thanks IG I already had it
Thanks IG I already had it in my collection and will take a look at it for sure. Might help lumi if he wants to. Take care my friend
Penny
Cool, this will give me some ideas about the coordination of sweep and motor control.
Thanks
I read through your code and
I noticed that, if there was a perfect storm of events leading to Steven X driving into a corner @ 45 degrees, Steven X will become stuck. Maybe adding an if/then case where left=right initiates a back-left or back-right to change the PING data. You also mentioned off axis detection was not so good. Maybe adding an off axis scan, not 90 but 45 degrees from center, to your main loop would help avoid shallow corners. Also rather than sweeping to the position, just digital.Write(FORTYFIVE) 'FORTYFIVE being the number required to turn the servo 45 degrees off center.
PS Thanks for sharing your labor of love.
Much have to be done
…but I am on it Thanks birdmun I will see if I have ime t implement this during my next test. Right now it’s dis- and re-assembled to test a Sharp sensor (without sweep) I might consider to use two of them to check the left and the right for a clear path.
However, the sweep looks much cooler than just driving the clear path and nobody know how he did it