Nov 29, 2014

Solve rubik's cube

Here is my demo,.


Solve the rubik's cube..
 * F' U L' U' - to make a white cross

White in bottom and other colors are opposite
  * R' 2D R D - brings white right then
  * R' D' R - do this if white is already right
  * D' R' D R

Middle layer: (top middles without yellow)
  * Top mid to right:
     U R U' R' U' F' U F
  * Top mid to left
     U' L' U L U F U' F'

Top Layer:
Ignore the corners and look at the center
* To create a cross:
  *  F R U R' U' F' which creates a  bar
  * try above until it creates a bar
  * then keep the bar horizondal
  * try the same above algorithm until you getcross

* Line up atleast two
  * Either line on side and back, or lines front and back
  * R U R' U R 2U R' U
  * Find out one that is lined up. It doesn't need to be oriented
  * Keep that in top right
  * U R U' L' U R' U' L - try until proper positions.
  * R' D' R D

Nov 26, 2014

Programming arduino uno with avr pocket programmer

Make the setup as shown in figure.
Image credits to https://learn.sparkfun.com/tutorials/installing-an-arduino-bootloader
  1. Select 'Power Target' in 'AVR Pocket Programmer'.
  2. git clone https://github.com/arunkumarv31/rtos
  3. cd compile 
  4. Edit Makefile. Comment avrdude line with option arduino and uncomment line with option usbtiny in burn section.
  5. make
  6. sudo make burn
  7. sudo (or be root) is mandatory. Because linux may not show error as permission denied, instead it will show initialization failed, rc=-1. 
If you have your own code and hex file. Burn the hex with this command -
  • sudo avrdude -F -V -c usbtiny -p atmega328p -D -b 115200 -U flash:w:main.hex 
This same procedure can be used with other boards.
For Arduino mega2560 sudo avrdude -F -V -c usbtiny -p atmega2560 -D -b 115200 -U flash:w:main.hex 
Edit inc/common.h and Makefile in rtos if you are using my codes.

For Web Developer

  open -a "Google Chrome" --args --disable-web-security