Andrius Šutas’s blog Computer science is my lifestyle, electronics – hobby…

11Sep/0952

Rubik’s Cube Solving Robot (RDRK) (Project#2)

RDRK is acronym in my language (Lithuanian) for "Robotas Dėliojantis Rubiko Kubą". This is my second project involving microcontrollers μC (the zeroth was LED blinkie and the first one was RC5 decoder).

Intro:

Up to now I have used only atmel AVR microcontrollers, so this bot is no exception with: ATmega16. Firmware is written entirely in C, also avrlib library for timing/PWM/UART was used. Although program is written with wxWidgets (C++) library, it won't compile under Windows because the system calls in serial communication part, thought if you remove it, it should build with no hassle.

In action:

[Youtube]

The build:

Basic communication scheme: (USB-to-RS232 (PL-2303))->MAX232->UART

Power: for servos and logic I've used L7805 with big heatsink (and yes, at operation time it was necessity) and DSA-20R-12 switching adapter

Servos: 2xMG995's for main arms and  for 2xHXT900 "claws"

uC: atmega16; 7.3728Mhz; LF: 3f, HF: de

Other thoughts:

In order to use make with firmware you should export avrlib directory with:

export AVRLIB=/path/to/avrlib

Color recognition would be nice, but because it's easy to do (as in: no challenge) and some cross platform problems (Unix/Linux) with webCAM I didn't implement it (also partly because it's not intended for daily use, and You should know that programmers are lazy)

Any questions? ASK!

Source files (tl;dr):

Extra:

P.S. everything is under GNU GENERAL PUBLIC LICENSE.
Share:
  • Digg
  • del.icio.us
  • Facebook
  • Slashdot
  • Google Bookmarks
  • Reddit
Comments (52) Trackbacks (0)
  1. Saunuolis, tikrai gabus ir talentingas esi jai sugebejai savo jegom sukonstruoti toki robotuka, manau neblogos perspektyvos taves laukia. Sekmes.

  2. kokias detales panaudojai machaniniam judėjimui? Gal kokia schema pasidarei?

  3. Šaunuolis. Keep it going ;)

  4. Saunu matyt, kad ir Lietuvoj yra mastanciu ir kurianciu.

  5. Super – šaunuolis :)

  6. O kur konkreti shema?

  7. Crazy!
    But the robot got help, I can see a helpful hand at the beginning and at the end, without it it would not do it! :-))))))
    I cannot even finish the one I got at home, just five cubes away … !? I should download your software and figure out how to finish it.
    Very, very neat!

  8. can u plz send me the software of this as i am final year student and want to do this project. my email id is dhepe.preeti@yahoo.com. plz plz plz send me that software and also programming. Thanks in advance if u fullfill my request.

  9. hi, what servos do you use for the gripper?

  10. Sveikas, gal galima butu gaut schema => (USB-to-RS232 (PL-2303))->MAX232->UART? nes turiu atliekama PL-2303 ir noreciau bendraut per USB, bet nezinau kaip pasijungt. Beto, yra kokie iskirtiniai draiveriai PL-2303?


Leave a comment


No trackbacks yet.