Generating 3D Graphics on an LCD screen and a PIC microPosted by ozkal on Friday, February 22 @ 17:42:52 EST (11011 reads)TopicAtelye

3D graphics had been always of a great interest to me.

Within this system, a 3D cube is drawn on a 128x64 graphics LCD and rotated around three axises either by pressing buttons or automaticaly by switching a demo button on.

The demo switch can be seen above the screen.

There are plenty of free source code for rotating a 3D code around its axises. I also searched the net for such a code and adapted to my circuit. The original code i've found is also downloadable at the end of the article. Credits of the code can be found on the file itself.

The circuit based on a PIC 18F458 microcontroller can be seen above.

At the end of the article, the proteus schematic file for the circuit can be found, the circuit can be simulated on proteus. The hex file for programming a micro and source code is also included.

PIC-PONG, a classic game on pic and graphic LCDPosted by ozkal on Friday, February 22 @ 17:36:28 EST (7613 reads)TopicAtelye

Around 40 years ago, when someone talks about a video game, this was it to be only thing to think about. Well I also paid at the fairs to play with this simple thing.

With the circuitry given, this classic game is realized on a microcontroller system and it is playable by using two potentiometers. The graphics are presented on a monochrome 128x64 graphics LCD screen.

For the initial boot screen, i've searched simple graphics on the net. I've found some gifs and converted them to monochrome and then into hexadecimal values by using the bmp2asm program.

The game has got a demo mode in which it plays by itself (it even scores) and shows a real time clock.

The circuit produces beeps sounds when the ball hits the frame or the rackets just like the original game.

The circuitry is above and is based around a PIC 18F458 microcontroller.

At the end of the article you can find the proteus drawing and simulation file, hex file to be programmed into the controller etc.