Show Posts
Pages: 1 ... 13 14 [15] 16 17 ... 38
211  Using Arduino / Interfacing w/ Software on the Computer / Help needed simplifying graphing consecutive lines w/Processing 2.0.2 on: September 28, 2013, 11:33:33 pm
Hello. I am graphing consecutive lines with Procesing 2.0.2 using gyro's coordinates (x,y) and encoder's distances (d), both via Xbee from an Arduino Fio. i.e:

line 1:  x1,y1 ----d1---- x2,y2
line 2:  x2,y2 ----d2---- x3,y3
line 3:  x3,y3 ----d3---- x4,y4

So far my application works OK but as the amount of lines (coordinates and distances) increase, my code is getting bigger and bigger. I need help trying to simplify the code (may be using 'for' or 'while' iterations). x and y are proportional to the distance and they become xn and yn after the distance and the second point are fixed. Here my draw() function for the first four lines.Thank you.

void draw() {
  translate(width/2, height/2);;
  // First concatenated line (not yet fixed)
  // concatenated lines 1 and 2 (line 1 fixed)
  // concatenated lines 1, 2 and 3 (lines 1 and 2 fixed)
  // concatenated lines 1, 2, 3 and 4 (lines 1, 2 and 3 fixed)
212  Community / Bar Sport / Re: Surrealistic Rubik's Cube robot [Auto-solver] on: September 28, 2013, 02:44:26 pm
Hey radman,
Thank you for your interest in the inception of this auto-solver Rubik's cube.
I just ordered a couple of continuous rotation servos (Parallax Futaba S148). I plan for this next week to run some torque and autonomy tests on them. According to their specs, torque=38 oz-in@6V and power consumption= 15-200 mA. What I need to know is the minimum torque required to rotate one face of a standard 3x3x3 cube (Of course, without collision with other faces) and multiply that value by 4. If the servos pass the tests, then I will proceed to purchase the other 4, and subsequently, start to find a way to get access to a 3D-printer with the lightest thermoplastic filament. Here a link of a 3D-model of the cube. radman, I believe we can make it. Regards!

P.S. Someone has a quarter for the bar's jukebox?
213  Using Arduino / Programming Questions / Re: What the hell did I do wrong on: September 27, 2013, 10:19:06 pm
Please, disregard my last comment. Just replace your two lines in setup and loop
Serial.println(x*100 + " seconds left!");

with the following:

         Serial.println(" seconds left!");


214  Using Arduino / Programming Questions / Re: What the hell did I do wrong on: September 27, 2013, 09:55:59 pm
Hello stasiomod,
Is there a way for you to change the armedPin and Intrudedpin pin definitions? like

#define armedPin 2
#define intrudedPin 5

I believe, using the TX and RX pins of your Arduino ONE is creating a communication conflict, though. Regards!
215  Community / Bar Sport / Re: Terabytes on: September 27, 2013, 06:00:37 pm
Good deal Jack! I’m telling you, I really hope to buy at Walmart a 1 petabyte HD before 2020. Regards!
216  International / Español / Re: Teclado Usb con arduino on: September 27, 2013, 01:57:55 pm
Hola jhefferson144,
La forma mas facil es usando el Arduino Due cuyo puerto USB nativo puede funcionar como Host. La IDE 1.5.X trae ejemplos para conectarte con un teclado USB, o con un raton USB o con un Celular Androide. Tambien vas a necesitar un cable USB-OTG. Saludos cordiales.
217  Community / Bar Sport / Re: Surrealistic Rubik's Cube robot [Auto-solver] on: September 27, 2013, 12:06:04 pm
A Rubik's cube 'appears' to be made of 3x3x3 smaller cubes.
However there is no central cube so that reduces to 26.

Of these cubes there are;
8 corner cubes3 faces visible each24 faces total
12 centre of edge cubes2 faces visible each24 faces total
6 central cubes1 face visible each6 faces total
26 cubes total 54 faces total

That sounds a lot but of course the cubes are not really free to move at random.
Maybe it would be possible to brute force the cube and calculate in advance the shortest path from any starting point?

Those are interesting facts about the Rubik's cube, radman.

That’s also an interesting video Boffin1. I believe, nowadays, the solving a ‘dumb cube’ from the outside (robots, grips, etc.) gives us enough ideas to start thinking a way to do it from the inside.

My initial thought about solving the cube (as a simple exercise to test the hardware) was to reverse the solving process. I mean, the cube always memorizes the steps from the initial solved position to the final scrambled position (whatever). Then, the cube only needs to 'undo' the steps to go to the original solved position...which reminds me a chapter of the book “Iconostasis” by Pavel Florensky (Russia's unknown da Vinci) where he explains that all that we dream in a dream, and that seems to last a long time, is the result of what happens to us just before waking up. A reversed chain of events that lasts for few microseconds. Regards!
218  Community / Bar Sport / Re: Surrealistic Rubik's Cube robot [Auto-solver] on: September 27, 2013, 06:34:39 am
I think this is a fantastic idea.
How are you going to get the power and control to the motors though?

Hello radman,
I don't know yet. I am waiting for the barman with my drink and another pile of napkins. But let's revise some facts here while sitting in the bar. The faster the code solves the cube, the batteries consume less current. I am not a Rubik's cube solver expert but I've read about 52 steps algorithms or so in the web, which means that each servo should rotate about 10 times per effective solving. Then it's about to write some calculations (that's why the napkins) and estimate the capacity of the batteries and finally check if the characterized battery exists. In reference to the code (I am planning to use a Fio given that I can program it been from inside the cube). I don't have the answer yet either but as I said, it should be a very good code (I've also seen 5 minutes cube solver out there!). Let's see how it goes. Regards!
219  Community / Bar Sport / Re: Surrealistic Rubik's Cube robot [Auto-solver] on: September 26, 2013, 09:37:25 pm
This is pretty much what I am pursuing for (after 0:10).
220  Community / Bar Sport / Re: Surrealistic Rubik's Cube robot on: September 26, 2013, 06:13:47 pm
Anyway, here my back of the napkin sketch of the 6 servos. Regards!

Nice sketch - but I think servos are going to limit you due to the shaft offset from the body.

Hello cr0sh,
Thanks for your comments. Regarding the shaft offset, I just have come up with a solution (see picture below) but you are right about the size; this new arrangement increased the size of the cube up to 8.02 x 8.02 inches, but remember, this is a prototype. I will be checking your links. Thanks!

221  Community / Bar Sport / Re: Surrealistic Rubik's Cube robot on: September 26, 2013, 09:21:48 am
robtillaart, I really like your idea of holding diagonally the cube but I'm still thinking in the robot as a stand-alone cube that besides its ability to solve itself, also a human can grab it and scramble it anytime (or even can be used to give the impression that you are solving it!).

Jantje, you idea of using steppers is very good and it will get rid of the gyros but not sure yet.

Boffin1, the RGB LEDs could be an add-in to watch the robot in action in the dark but I see the wiring quite a challenge.

Anyway, here my back of the napkin sketch of the 6 servos. Regards!
222  Community / Bar Sport / Surrealistic Rubik's Cube robot [Auto-solver] on: September 25, 2013, 09:51:53 am
Reading the title of an upcoming article in the August 2013 Circuit Cellar Magazine (Build a Rubik’s Cube-Solving Robot, by Nelson Epp), it reminded me an idea that has been whirling in my mind for some time: A Rubik's cube robot that solves itself. Imagine for a moment a disordered 3x3x3 Rubik's cube that you just place on a surface and after a couple of seconds starts to bounce and flip, rotating its six faces and few seconds later stops with all of them now one-colored. What should be required to build this imagined 'surrealistic' Rubik's cube? I haven't read yet Mr. Epp's article but let's make an exercise imagining what parts should be required. Here my quick-start list:

1- Arduino micro
6- Full rotation servos
6- 3-axis-Gyroscopes (or Accelerometers)
1- Battery
1- Rubik cube.
Plus the Rubik's algorithms (the robot should knows in advance the unscrambled color positions).
What else?

Notice that my idea do raise other questions like what size or how fast will the robot solves itself?
(Current record: 5.27 secs CubeStormer II). Regards!
223  Products / Arduino Due / Re: Building a CAN API for Arduino DUE on: September 24, 2013, 09:12:51 pm
Hello M2319,
The updated version is here:

224  Using Arduino / General Electronics / Re: TS922AIN vs TS922IN on: September 24, 2013, 09:07:23 pm

Can someone clue me in what's the difference between TS922IN and TS922AIN?  Can I easily substitute TS922IN with TS922AIN in existing project?
From datasheet it seems like only difference is "Input Offset Voltage" which is 900uV max for TS922A.
Reason I'm asking is that TS922IN has been retired smiley-sad

Hello bratan,
You are right about 922A IOV but I don't see TS922AIN active at STElectronics. Only AID, AIDT, AIPT, AIYDT and AIYPT (none of them is DIP-8).
Regarding TS922IN STE still producing it but supporting only ongoing production, AVNET keeps 1278 in stock and Future Electronics keeps 1550. Farnell and RS Components (both in Europe) with a bit over 1000 in stock each. Good luck.
225  Products / Arduino Due / Re: Arduino DUE + Ethernet Shield/Sd WebServer not working on: September 24, 2013, 11:08:15 am
Yes. Georgi. I just tried to run the corrected code with IDE 1.5.4 and even though ping test runs OK and serial monitor shows normal, my laptop can't read the index.htm in SD.

Hello Cristian, are you aware of this? Thank you and regards!
Pages: 1 ... 13 14 [15] 16 17 ... 38