Go Down

Topic: Rubik's cube Robot solver (Read 135739 times) previous topic - next topic

lampel

#315
May 30, 2017, 02:23 pm Last Edit: May 30, 2017, 03:41 pm by lampel
hi Kas ,
a quick question  ,
in your android app what is the cube scan order ? (F THEN R THEN B Etc...)
do i need to set the cube orientation in a particular color order? (put red color in front ,blue color to the left,green color to the right etc...)
Thanks

kas

#316
May 30, 2017, 10:42 pm Last Edit: May 15, 2018, 10:14 am by kas
Quote
a quick question  ,
in your android app what is the cube scan order ? (F THEN R THEN B Etc...)

Yellow > Red > White > Orange > Blue > Green    then back to Yellow
Colors are only for showing scan moves order
Pay special attention to Top & Bottom faces orientation



Quote
do i need to set the cube orientation in a particular color order? (put red color in front ,blue color to the left,green color to the right etc...)
Doesn't matter


lampel

Thank you kas ! ,

The complete sketch, including cube.cpp and cube.h posted on #43
seems to be corrupted..
can i find it anywhere else?
 

kas

#318
Jun 01, 2017, 07:30 am Last Edit: Feb 20, 2018, 12:41 pm by kas
This is V1.3 (Maker Faire 2017 release)
Make sure to also download the VarSpeedServo Library

adjust DEBUG_SERIAL according to project type:
 true      for Python mode or Serial Monitor testing
 false     for Bluetooth Android mode

Enjoy   ;)



** Please rename file extension to .rar **

figital666

i just went through all 22 pages of this project and i wanted to say thanks kas!

your project is totally inspiring.  i just got a new arduino kit for my 10 year old son and your cube project is something we're definitely going to work towards.

i might even try to build a 2x2x2 cube solving robot, as i have never seen one of those before!!
i think the programming for it would even be easier than one for a 3x3x3.  it uses the same sort
of standards as your project; basic singmaster notation, and has only corner pieces.

thanks again for the great project and inspiration.

derek...

kas

Quote
thanks again for the great project and inspiration
Hi Derek, thanks for the nice comments   8)

Again, before making any atempt so solve the cube, please make sure that:
 - the frame geometry is correct
 - rotations are _exactly_ 90° by tuning  XXX_CW and  XXX_CCW parameters
 - griping strenght is adequate, with no slippage (XXX_CLOSE)

Bot should pass the two tests described in post #6 and post #13

Good luck for your project, feel free to report progress



WitherKun

Hey Kas. I'm trying to build a similar robot. The only problem i have now is that my servo's do not turn exactly a 90°. They turn like 90° in one direction and 75-80° in another. I'm using a digital Tower Pro MG995. I've seen that you are using Hitec HS-422 which are analog and should be more precise (from their description). Is there any difference between analog and digital. Are HS-422 precise enough? Will they give me a complete 90° turn?

kas

Hi WitherKun

Not sure you are facing an accuracy problem   ::)

I suspect that your servo's are not covering the full 180° range
Apparently the MG995 can be used as a 'pinch' servo, but is not adequate as 'wrist'
Any 180° servo will be suitable as 'wrist', Hitec HS-422 fits the bill



WitherKun

Hey Kas. I have the same problem of demirell95 in post #288 and i already checked post #267. How can i solve that error ?

kas

@ClankingFeather
Did you receive my email message ??


@WitherKun
Really need more info   ::)
Please post the video as per post #267



WitherKun

@ClankingFeather
Did you receive my email message ??


@WitherKun
Really need more info   ::)
Please post the video as per post #267





First it was giving me this type of error. And i resolve it by adding an arduino.flushInput() string like that. Which i think is some kind of interrupt.



It works perfectly fine and scan all the cube, except the D-face. Even though i've added the same flush.input string.

kas

Quote
And i resolve it by adding an arduino.flushInput() string like that. Which i think is some kind of interrupt.
"flushInput()"  flushes Serial input buffer and discards its contents
This python function is renamed "reset_input_buffer()" in Python V3.x

which Python version are you using ??
which RubikKasBot (python) version ??
which CubeMover (arduino) version ??


Quote
It works perfectly fine and scan all the cube, except the D-face. Even though i've added the same flush.input string
You mean you can scan all faces except the last one ??   :o




WitherKun

#327
Jun 14, 2017, 10:51 am Last Edit: Jun 14, 2017, 11:01 am by WitherKun
"flushInput()"  flushes Serial input buffer and discards its contents
This python function is renamed "reset_input_buffer()" in Python V3.x

which Python version are you using ??
which RubikKasBot (python) version ??
which CubeMover (arduino) version ??

You mean you can scan all faces except the last one ??   :o




I'm using CubeMover_13, RubikKasBot V1.3 and Python 3.4.2.

Yes. By adding a flushInput it start scanning, but now it stops on U-face instead. And i did't change nothing from yesterday. And if i change all flushInput with reset_input_buffer it's says that it was not defined, so does inputflush. So it's a little bit confusing how it works

kas

#328
Jun 14, 2017, 06:02 pm Last Edit: May 15, 2018, 10:14 am by kas
Please stick to the original RubikKasBot V1.3 code

Within CubeMover_13 Arduino sketch, make sure DEBUG_SERIAL is set to false



"Test" button does scan one face only per press
first press = face #1 (no move)
second press = face #2
...

Let me know how it works

Should it fail, please post both CubeMover and RubikKasBot



WitherKun

Please stick to the original RubikKasBot V1.3 code

Within CubeMover_13 Arduino sketch, make sure DEBUG_SERIAL is set to false



"Test" button does scan one face only per press
first press = face #1 (no move)
second press = face #2
...

Let me know how it works

Should it fail, please post both CubeMover and RubikKasBot



I downloaded original CubeMover and now the scanning part works fine. Must have been some variable changed without noticing it. Thanks for the help.  :D  ;)

Go Up