Rubik's Cube Solver

Hi guys,

My project: Rubik's Cube solver

I want to connect my Arduino Mega ADK to the Internet and open a website and derive an algorithm for it. How can I achieve this?

First you could make an appropriate title. After that, get the mega to connect to the internet. Then write your algorithm. But there is quite a bit more to it then this. You might want to do some reading with google.

codlink:
You might want to do some reading with google.

Like what ? Please explain..

SagarDev:
Like what ? Please explain..

Everything you can find that will help with your project ? ?

...R

See, the Website is http://rubiksolve.com/danddfiles.phphttp://rubiksolve.com/.

After the input of colors, it shows an algorithm on clicking "Solve Cube".

Now how do I export these Algorithms into my Arduino?

Now how do I export these Algorithms into my Arduino?

Write C/C++ code that carries out the algorithms.

I am able to execute the Algs using Arduino and Steppers.

The problem exists in importing it from the website to the Arduino.

The problem exists in importing it from the website to the Arduino

What is the "it" you are finding problematical?

The Algorithm to solve the Rubik's cube

But you just wrote

I am able to execute the Algs using Arduino and Steppers.

and I'd assumed that "Algs" was an abbreviation of "algorithms"

Have you read this

////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////// PROGRAM START ///////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
 
void setup()
{
        rotate_servo.attach(9);  // attaches the servo on pin 9 to the servo object
        push_servo.attach(6);  // attaches the servo on pin 6 to the servo object
        push_servo.write(push_pos);
        rotate_servo.write(rotate_pos);
        delay(1000);
        Serial.begin(9600);
        while (! Serial); // Wait untilSerial is ready
        //assign_to_current(yellow_side);
        //print_cube(current_side);
}
 
/////////////// Loop //////////////////
void loop()
{
        //import_cube_colors();
        // enter cube colors above
        solve_cube();
        Serial.println("Done!");
        show_off_cube();
        while(true){}
 
};

He would have if he used google, which is what we were trying to do.

I am aiming for a Faster one.

I want it like:

  • It inputs the Algorithm for the scramble in the form of an Array.
  • It executes the Array, character-by-character and solves the Cube

It has 6 Steppers for the job, each one dedicated to one layer. So I can control the solve easily.

I suspect the limiting factor is not processing speed, but motor torque, and applying it accurately enough not to tear the cube apart.
But that's just a guess.

AWOL:
I suspect the limiting factor is not processing speed,

I suspect it will be the OPs inability to figure out how to program the algorithm. Evidence so far is not good.

...R

Guys,

I am not posting my inability.

I am a beginner in networking and establishing communications b/w my Arduino and an Internet page via Windows.

Please help me out guys.

SagarDev:
Please help me out guys.

We are. What have you found so far in your search?

SagarDev:
I am not posting my inability.

On the other hand there has been little evidence of ability

Have you done any work yourself or do you expect us to do everything for you?

You have not even improved the Title as requested in Reply #1

...R

Robin2:
... You have not even improved the Title as requested in Reply #1
...R

I thought it was Radio Controlled Surgery, a new nano technology.
OP: do you mean that you cannot connect your arduino to your computer and download code from a web page to your arduino? If so, do it like this: Copy the code from your webpage (using copy/paste on your computer), and paste it into a text file. Name the text file RCS01.ino or whatever you want to call it, and save it inside a folder, also named RCS01. Then move that folder into your Arduino folder (in your documents folder?) and open it with the Arduino software.
When you compile the code, you will get errors. Fix those errors. Compile and upload the sketch to your Arduino board, hook up your servos, and run it. You will have electrical and mechanical problems. Fix those and voila!

SagarDev:
See, the Website is http://rubiksolve.com/danddfiles.phphttp://rubiksolve.com/.

After the input of colors, it shows an algorithm on clicking "Solve Cube".

Now how do I export these Algorithms into my Arduino?

You can"t just export the algorithm.

The arduino works by programming it using the C++ programming language.
So like jremington said in reply #5 you have to write C++ code that uses that algorithm.

You will also have to write code that tells the arduino how to use that algorithm to move the servo's to solve the rubick's cube.

Bottomline: Learn how to program the arduino.