Saturday, 27 October 2012

AVR development in Linux

* Install necessary packages $ sudo apt-get install gcc-avr $ sudo apt-get install avrdude $ sudo apt-get install avr-libc * Compiling code Steps(2) -> .c => .elf => .hex $ avr-gcc -Os -mmcu=$2 file_name.c -o file_name.elf  $ avr-objcopy -j .text -O ihex file_name.elf file_name.hex * Uploading code $ sudo avrdude -p part_name -c programmer_id \      -U flash:w:file_name.hex  part_name => m16, m8  prog_id => usbasp  "flash" => programs flash  "w" => write mode  shld be run as super user => "sudo" * Compiler optimization specify an option -Ox while compiling (avr-gcc -Ox ... ) x => optimization levels "-Os" => "s"=> small - for smaller code Made a video of LED blinking @ 900ms *...

Friday, 26 October 2012

Running Raspberry Pi Headless

Raspberry Pi, normally needs a keyboard, mouse and a display ( a hdmi-compatible monitor or tv) for input/output. But it is possible to avoid all of these and still use pi with a lot of ease. This can be done by tunneling through pi using SSH - Secure Shell. It is similar to telnet but its more secure. It uses port22 (by default) for transferring data/info from one system to another. Remember that, these systems are connected to a network - LAN. Any account in a system connected to LAN can be accessed from any other system by knowing 1. IP address of the system, 2. Username and password of the account. Raspberry Pi running Wheezy: Default...

Monday, 22 October 2012

Git - Getting started

1. Backup any existing ssh keys      $ cd ~/.ssh/      $ mkdir key_backup      $ mv *.pub ./key_backup/ 2. Generate private ssh keys      $ ssh-keygen -t rsa -C "developer.rps@gmail.com"      $ Enter file in which to save the key: filename      $ Enter passphrase : ***** 3. Add private ssh key to git.gitorious.org account      $ sudo apt-get install xclip      $ xclip -sel clip < ~/.ssh/filename.pub            - go to account...

Page 1 of 9123Next

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More