Wednesday, December 19, 2012

AVRDUDE GUI

avrdude-gui is a simple GUI for avrdude (http://savannah.nongnu.org/projects/avrdude) which is a command line tool running on several OS to program the Atmel AVR Microcontrollers. Click here to download it...

Friday, April 27, 2012

How to edit System Path Variables

PATH is an environment variable on Unix-like operating systems, DOS, OS/2, and Microsoft Windows, specifying a set of directories where executable programs are located. In general, each executing process or user session has its own PATH setting. Many programs do not appear in the path as they are not designed to be executed from a command window, but rather from a Graphical User Interface. Set the PATH environment variable if you want to be able to conveniently run the executable from any directory without having to type the full path of the command. If you do not set the PATH variable, you need to specify the full path to the executable every time you run it. So if you want to change the system path for your applications follow the steps. NOTE: The PATH environment variable is...

How to configure Code::Blocks for OpenCV 2.3

So many of us always face problems in configuring OpenCV with Code::Blocks, I am also not an exception. I faced a lot of problems in configuring Code::Blocks for OpenCV 2.3. So here is the way how I sorted out this problem.   Requirements: Code::Blocks with Mingw compiler. Download the latest release of the Code::Blocks from it's official website. or Click the link below to download Code::Block (version 10.05) with MingW compiler from Sourceforge            2. OpenCV (I am using OpenCV 2.3.0), if you don't have it you can get it by clicking the link below OpenCV 2.3.0  or  you can select the...

Saturday, March 17, 2012

Receive string through UART

In this tutorial I am going to show you how to receive a string through UART. In this program we are going to make use of the previous function which were written for receiving the character through UART. Don't forget to put NULL character at the end of the string..... #include<avr/io.h> void UART1_Init() { //set baud rate = 9600 bps UBRR1H = 0x00; UBRR1L = 103;         //0x67 //set 1 stop bit, no parity bit and 8 bit charachter size UCSR1C = 0x06;         //(1 << UCSZ1)|(1 << UCSZ0)   //enable transmission and reception UCSR1B = 0x18;         //(1 << RXEN)|(1 << TXEN) } //Transmit character through UART void UART1_Tx_Char(unsigned char data){ //put the data to be transmitted...

Receive Character Through UART

In this tutorial we are going to receive a single character through UART and display that character over PORTC, to which we can connect the LEDs. (these codes have been written for ATmega128 micro-controller which has two UART circuitry, UART0 & UART1, the same code can be used with other AVR micro-controllers with some minor changes) #include < avr/io.h > //Initialize UART circuitry void UART1_Init() { //set the baud rate as 9600 bits per second UBRR1H = 0x00; UBRR1L = 0x67; //or 103 in decimal //set character size as 8-bit, no parity bit, one stop bit UCSR1C = 0x06 // (1 << UCSZ1)|(1 << UCSZ0); //enable reception and transmission UCSR1B = 0x18 // (1 << RXEN)|(1 << TXEN); } void main(){ //define PORTC as an output port to display received...

Thursday, March 15, 2012

Transmit Character Through UART

In this tutorial I am going to show you how to transmit a character through UART. First of all we have to initialize the UART circuitry of our micro-controller by providing proper values to the UART registers in AVR. There are basically 5 registers for UART.... (these codes have been written for ATmega128 micro-controller which has two UART circuitry, UART0 & UART1, the same code can be used with other AVR micro-controllers with some minor changes) ********************************************************************************* Transmit a Character Through UART ********************************************************************************* //Include AVR Header file  #include < avr/io.h >   //Initialize UART circuitry void UART1_Init() {     ...

Friday, March 9, 2012

Transmit String Through UART

In this tutorial i am going to show you how to transmit a string through UART. For that you first have to initialize the UART circuitry in your micro-controller. For initializing we have to update UART registers in AVR. There are basically 5 registers for UART in AVR.... 1. UBRR register for setting up the baud rate for the transmission. Its a 16 bit value and the AVR is an 8 bit micro-controller, so this 16 bit value is stored in two 8 bit registers (UBRRnL and UBRRnH) 2 And 3 control registers (UCSRnA, UCSRnB and UCSRnC). 3. ATmega 128 is having 2 UART ciruitry (UART0 and UART1) and for each circuitry we are having different registers, for ex: UBRR1L for UART1 and UBRR0L for UART0. (these codes have been written for ATmega128 micro-controller which has two UART circuitry, UART0...

Generating LED Patterns

In this tutorial i am going to show you, how to generate some pattern using LEDs. The micro controller is ATmega128 and the 8 LEDs are connected to the PORTC of the micro controller. The code is written in such a way that first the LEDs will be glowing  in Right-to-Left fashion and then from Left-to-Right fashion and will continue for ever. ********************************************************************************* Generating LED Pattern ********************************************************************************* //Include AVR Header file  #include < avr/io.h >   //Include DELAY Header file #include < util/delay.h > //Start main function void main() {         int i = 0;      //Set...

Thursday, March 1, 2012

Blinking LEDs

In this tutorial I am going to show you, how to blink LEDs using AVR micro controller. I am using ATmega128/ ATmega64 (both of the micro controller can be used interchangeably as they differ in the size of flash memory only). The 8 LEDs which I am going to blink/toggle are connected to PORTC of the micro  controller and they will toggle after 100 ms. So let's start with it............ ********************************************************************************* Blinking LEDs ********************************************************************************* //Include AVR Header file  #include"avr/io.h"   //Include DELAY Header file #include"util/delay.h"  //Start main function void main() {         //Set a particular...

Wednesday, February 29, 2012

Download WinAVR

WinAVR (pronounced "whenever") is a suite of executable, open source software development tools for the Atmel AVR series of RISC microprocessors hosted on the Windows platform. WinAVR includes the GNU GCC compiler for C and C++. WinAVR contains all the tools for developing on the AVR. This includes avr-gcc (compiler), avrdude (programmer), avr-gdb (debugger), and more! WinAVR is used all over the world from hobbyists sitting in their damp basements, to schools, to commercial projects. WinAVR is designed for: WinXP, Vista (34 bit & 64 bit), 7 (32 bit & 64 bit)  You can download the latest WinAVR software from the sourceforge website DOWNLOAD from SourceForge or  You can download WinAVR-20100110 directly by clicking the link below: DOWNLOAD WinAVR...

Sunday, February 26, 2012

How to configure Code::Blocks for SDL

To configure Code::Blocks to be used with SDL, follow these steps: 1. If you don't have the Code::Blocks, download the 10.05 version of it with MingW compiler from the link below.  http://sourceforge.net/projects/codeblocks/files/Binaries/10.05/Windows/codeblocks-10.05mingw-setup.exe 2. Download SDL headers and binaries (version 1.2.15 for windows) click on the link below and extract them in to your C drive. http://www.libsdl.org/release/SDL-devel-1.2.15-mingw32.tar.gz  3. Install Code::Blocks. 4. Start the Code::Blocks and go to "Compiler and debugger" in "Settings" menu. 5. Go to "Compiler" tab under "Search directory" and click "Add".   6. A window will pop-up and in this window...

SDL Header and Binaries-1.2.15

To work with SDL libraries you should have all the binary and header files downloaded in to your Computer. Here is the link from where you can download these header files and binary files for different platforms such as Windows , Linux etc.  http://www.libsdl.org/download-1.2.php or Download SDL-1.2.15 with MingW for windows directly by clicking on the link below http://www.libsdl.org/release/SDL-devel-1.2.15-mingw32.tar.gz Download the compressed folder and extract it in to your 'C' drive. That's it. You are done with SDL installation. Now you just need to configure your IDE (I am using Code::Blocks) to work with SDL and that's all. Enjoy GAMING :). To configure Code::Blocks to work with SDL check out: How to configure Code::Blocks for S...

Download SDL Games

 Simple Direct media Layer (SDL) libraries are being used worldwide to develop exciting Games, such as Tetris, Arcanoid, 2H4U and many more... These games are available free online and therefore I am here providing a link to download these games directly from the official website of SDL.   Click the link below to go to the website from where you can select among more than 600 games. ...

Arcade and game-console emulators which use SDL

Here is the list of some of the Arcade and game console emulators which were developed using SDL. DGen – an emulator for Sega Genesis (Mega Drive). FCE Ultra – an emulator of Nintendo Entertainment System (NES) and the Famicom Disk System. Gens – a Sega Genesis emulator. Hatari – an emulator of the Atari ST computer system. MAME – SDLMAME is an SDL-based port of MAME (MAME is an "Multiple Arcade Machine Emulator" emulator). Mednafen – multi-system emulator supporting Atari Lynx, Game Boy (including Color and Advance revisions), Neo Geo Pocket, Neo Geo Pocket Color, Nintendo Entertainment System (NES), PC Engine, SuperGrafx, PC-FX, WonderSwan, and WonderSwan Color. Mupen64 – Mupen64 (Multi Platform Emulator for the N64) is an emulator...

Gaming engines which use SDL

Here is the list of some of the Gaming Engines developed using SDL Libraries. DOSBox DOSEMU Exult ScummVM pygame Verge (Vecna's Extraordinary Roleplaying Game Engine) [1] Doomsday Engine PrBoom MegaZeu...

Games which use SDL for the Linux version only

Here is the list of some of the games which were developed for Linux using SDL Libraries. Civilization: Call to Power Descent³ Doom 3 Enemy Territory: Quake Wars (ET:QW) FreeSpace 2 Heavy Metal: F.A.K.K.² Heretic II Heroes of Might and Magic III Majesty: The Fantasy Kingdom Sim Myth II Quake 4 Rune Rune: Halls of Valhalla Shadowgrounds Shadowgrounds: Survivor Shogo: Mobile Armor Division Sid Meier's Alpha Centauri Sim City 3000 Simutrans Soldier of Fortune Unreal Tournament Unreal Tournament 2003 Unreal Tournament 200...

List of games using SDL

Here is the list of some of the Games developed using SDL Libraries. AssaultCube Aleph One Battle for Wesnoth Blast Miner Blob Wars : Metal Blob Solid Blob Wars: Blob And Conquer BZFlag Cube Cube 2: Sauerbraten C-Dogs SDL D1X D2X Dominions Dwarf Fortress Exult Freeciv Frozen Bubble GLTron H-Craft Championship Hedgewars Hopkins FBI Inherit the Earth: Quest for the Orb Lugaru Neverwinter Nights Nexuiz OOlite OpenTTD OpenTyrian Overgrowth Penumbra: Overture Penumbra: Black Plague Penumbra: Requiem Pontifex II Project: Starfighter Secret Maryo Chronicles Second Life Simutrans The Ur-Quan Masters Stepmania Super Tux TD-Morpion Teeworlds The Powder Toy Tile World Tux Paint World of Goo Wormux ...

Code::Blocks

Code::Blocks is a free, open source and cross platform IDE. This IDE can be used to program on Linux, Mac or Windows. It supports multiple compilers including GCC (MingW, GNU GCC). Attractive interface, easy to program. Currently, Code::Blocks is oriented towards C and C++. It can also be used for creating AVR, ARM, D, DirectX, MATLAB, OpenGL, Qt, SDL  Projects and many more. You should go for Code::Blocks with MingW compiler. Check it out what makes MingW best suited as a compiler. Download the latest release of the Code::Blocks from it's official website. or Click the link below to download Code::Block (version 10.05) with MingW compiler http://sourceforge.net/pr...

Saturday, February 25, 2012

SDL Introduction

Simple DirectMedia Layer (SDL) is a cross-platform, free and open source multimedia library written in C that presents a simple interface to various platforms' graphics, sound, and input devices. SDL has the word "layer" in its title because it is actually a wrapper around operating-system-specific functions. The main purpose of SDL is to provide a common framework for accessing these functions. For further functionality beyond this goal, many libraries have been created to work on top of SDL. Software developers use it to write computer games or other multimedia applications that can run on many operating systems including Android, AmigaOS, AmigaOS 4, FreeBSD, BeOS/Haiku, iOS, Linux, Mac OS 9, Mac OS X, MorphOS, OpenVMS,...

Friday, February 24, 2012

My First Robot

I was always interested in making something which i could say yeah i have done it. It was started with the robotics workshop i attended in march 2009. After that i was really into robotics. I tried and failed and then tried. At last i was successful in making this robot. Its a wireless robot designed by my team and programmed by me......hehehehehe.... that was  the most interesting thing coz this is the very first robot which was completely programmed and designed by us, that made us feel proud....... This is how our first robot look like...... Internal view of our robot Top View Lateral View Front vie...

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews