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


or 

You can download WinAVR-20100110 directly by clicking the link below:

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. 


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.


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 click the browse button. 


7. And browse for the "include" folder inside SDL folder which you have extracted in C and hit "OK". By doing so, we are providing the compiler with the path of all the header files which are written for SDL libraries. And now we can include any of the header file, which are present inside this include folder, into our main program.


 8.you will see this window.


9. Now click on the "Linker" tab under "Search directory" and "Add" the path for the linking libraries as follows


10. Now browse for the "lib" folder inside SDL folder which you have extracted in C drive, as shown



11. Hit "OK". Create a new project (File/New/Project..)


12. Give this project a name and select the storage location for your project files. On the next window click "Finish" to create a new project with the specified name.


13. After clicking "Finish" on the next window, your folder which will be storing your all project files will be created. Now all the files which may be required by your program (which you will be writing) must be kept inside this folder.

14. Next do these settings to prevent console window to appear during execution of your program. Go to "Properties" in "Project" menu.


and select the "GUI application"


15. Now go to the "Compiler and debugger" settings menu again and in "Linker Settings" type:

-lmingw32 -lSDLmain -lSDL
under "other linker options".


16. Now your compiler is fully configured to work with SDL.

17. Now as you will be working with SDL, it's DLL files (SDL.dll) will be required by your compiler to execute your program. So you need put those DLL files inside your Folder, which you have just created in step no. 13. You will find these DLL files in C:/SDL/bin. Copy SDL.dll and put it inside your project folder folder_name/bin/debug (created in step 13).

NOTE: This bin/debug folder will be created after you will write your first program and try to run it, running the program will give you an error and then you need to put this DLL file in bin/debug folder inside your project folder.

NOW YOU ARE ALL SET TO ROCK WITH SDL. ENJOY PROGRAMMING WITH SDL :)
A brief description of DLL:

"A Dynamic Link Library (DLL) is a file of code containing functions that can be called from other executable code (either an application or another DLL). Programmers use DLLs to provide code that they can reuse and to parcel out distinct jobs. Unlike an executable (EXE) file, a DLL cannot be directly run. DLLs must be called from other code that is already executing."

To know more about DLL click on the link below:

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. 


or

Download SDL-1.2.15 with MingW for windows directly by clicking on the link below

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 SDL

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.
  • MAMESDLMAME 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 for the Nintendo 64.
  • NeoCD – a Neo Geo CD emulator.
  • Stella – an emulator for the Atari 2600.
  • VisualBoyAdvance (VBA) – emulator for the Game Boy, Super Game Boy, Game Boy Color, and Game Boy Advance handheld game consoles sold by Nintendo.
  • Yabause – an emulator for the Sega Saturn.
  • ZSNES – an emulator of the Super Famicom and SNES video game systems.

Gaming engines which use SDL

Here is the list of some of the Gaming Engines developed using SDL Libraries.

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

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, PlayStation Portable, Syllable, Symbian, webOS, and Windows. It manages video, events, digital audio, CD-ROM, sound, threads, shared object loading, networking and timers. 

SDL itself is very simple; it merely acts as a thin, cross-platform wrapper, providing support for 2D pixel operations, sound, file access, event handling, timing, threading, and more. It is often used to complement OpenGL by setting up the graphical output and providing mouse and keyboard input, which are beyond the scope of OpenGL.

The library is divided into several subsystems, namely the video (handles both surface functions and OpenGL), audio, CD-ROM, joystick, and timer subsystems. Besides this basic, low-level support, there also are a few separate official libraries that provide some more functions. These comprise the "standard library", and are provided on the official website and included in the official documentation:
  • SDL_image — support for multiple image formats
  • SDL_mixer — complex audio functions, mainly for sound mixing
  • SDL_ttf — TrueType font rendering support
  • SDL_rtf — simple Rich Text Format rendering
  • SDL_net — networking support
Other, non-standard libraries also exist. For example: SDL_Collide.



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 view

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