Go Down

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

benbowman

hey kas,
the code you've refere to i couldn't find.
----------------------------------------------------------------
  try:
    f = urllib.request.urlopen(cubeExplorer + command)
    print(cubeExplorer + command)
    page = str(f.read())
  except:
    vSolve.set("No response from Cube Explorer")
----------------------------------------------------------------
that's what I've got...

-yes, i can launch cube512htm.exe and it runs perfectly
-"C:\Users\ben\Documents\school\systems\cube exporer\cube512htm.exe" is this what you need?
-I'm using windows
-"cubeExplorerPath = 'C:\\Program Files\\Cube Explorer\\cube512htm.exe' ## Cube Explorer program path"

kas

#346
Aug 15, 2017, 10:12 am Last Edit: Aug 15, 2017, 10:17 am by kas
Quote
the code you've refere to i couldn't find.
----------------------------------------------------------------
  try:
    f = urllib.request.urlopen(cubeExplorer + command)
    print(cubeExplorer + command)
    page = str(f.read())
  except:
    vSolve.set("No response from Cube Explorer")
----------------------------------------------------------------
that's what I've got...
This is not the right code snippet, I am refering to line #354




Quote
>> - what is your absolute path to cube512htm.exe on your computer ??
           "C:\Users\ben\Documents\school\systems\cube exporer\cube512htm.exe" is this what you need?

>> - please copy paste the "cubeExplorerPath = ...." line from your actual python code
          "cubeExplorerPath = 'C:\\Program Files\\Cube Explorer\\cube512htm.exe' ## Cube Explorer program path"
Based on your information, your actual python code should read (line #26):
 cubeExplorerPath = C:\\Users\\ben\\Documents\\school\\systems\\cube exporer\\cube512htm.exe





benbowman

thanks heeps kas!!
that fixed it, i thought tried that but i thought it might be a local path or something.
I'll try it out with my hardware tomorrow

kas

Quote
that fixed it
great :D


Quote
i thought tried that but i thought it might be a local path or something.
Please read the code thoroughly and try to understand most of it, no need to recreate it  ;)



BTW you should be more confortable with Idle compared command line tool
here it is ...\Python36\Lib\idlelib\idle.bat




benbowman

yeah I'm just trying to get to know python a bit better.

now that ive tested the code with the hardware but when i try to "scan colors" the text says " no response from cube explorer" and same when i try reset but not test. but the program opens cube explorer, any ideas

kas

#350
Aug 17, 2017, 08:06 am Last Edit: May 15, 2018, 10:13 am by kas
Quote
now that ive tested the code with the hardware but when i try to "scan colors" the text says " no response from cube explorer" and same when i try reset but not test. but the program opens cube explorer, any ideas
Yes   ;)

Please enable WebServer in Cube Explorer



FWIW, I enclose the relevant documentation, please read



benbowman

hey kas, that fixed the error.

however the cube i am using and that you seem to be using are arranged that same, however you'll notice in the photo that my scan shows that the left it doesn't appear to be the same as the red and orange have switched sides or visa versa. i think this is because the claw scans in the wrong direction? as the scan asks to be in the order back then left then front etc. but it scans the wrong side second? would that effect it?s 

kas

@benbowman

Please post a full video showing robot and computer screen


Joshwin

Could you give me the link for the android application kas ? Thanks

Joshwin

Could you give me the link for the android app?

kas

Quote
Could you give me the link for the android app?
To get this free App, send me your email address via PM


kas

❝Could you give me the link for the android app?
To get this free App, send me your email address via PM
Check your mail  ;)





kas

Quote
Great!Could you give me the link for the android App? Thanks
xxxxx@gmail.com
@kmimax
Check your mail


kas

#359
Sep 02, 2017, 12:26 pm Last Edit: May 15, 2018, 10:13 am by kas
benbowman,

Make sure your hardware is 100% tuned before fiddling with color recognition
You will save a lot of frustration  ;)

Your grippers are possibly too far apart


Cube should really sit on the base of the claw

Try inserting four washers between each servo and frame and see for yourself

You may also increase gripper closing by 1mm, by adjusting
  #define  BACK_CLOSE     and  #define  DOWN_CLOSE

What Arduino sketch version are you using ??



Quote
i think this is because the claw scans in the wrong direction?
To change rotation direction, invert values for both servo's

  #define    DOWN_CW                 9   --->  172
  #define    DOWN_CCW           172   --->      9

  #define    BACK_CW                  2    --->  171
  #define    BACK_CCW             171    --->     2
(use your own parameters)



Go Up