Archive

Archive for the ‘Python Coding’ Category

Borg Design Pattern implementation in Python.

June 15, 2013 Leave a comment

In this article I’ll show you how you can implement the Borg Design Pattern in Python.

Read more…

The project ‘tct’ (The Crime Tracer).

September 26, 2012 Leave a comment

The project ‘tct ‘(The Crime Tracer) is an online adventure police game. Of course it has not yet implemented because it is under development. The game is a free software initiative of two volunteers who love and respect science and the freedom of users. Anyone can join the project as a volunteer, provided they are good-willed and have some free time. Also, the game is being developed using the Python programming language and the Pygame framework.

Resource Manager in Python & Pygame with Caching and Mapping.

July 22, 2012 Leave a comment

The project ‘tct‘ (The Crime Tracer) fanned my wish to create a resource manager for the needs of the game. Generally, a resource manager increases efficiency in most cases because it uses internal caching and mapping. The resource manager of the project ‘tct‘ is written in Python and manages graphics, sounds and Pygame fonts.

Read more…

2D Sprite Animation & Movement Engine For ‘The Crime Tracer’.

October 17, 2011 Leave a comment

The project ‘tct‘ (The Crime Tracer) made me wish to create an engine for moving various sprites in two-dimensional games. This engine is a prototype and is continuously optimized. It has also been developed with the help of Pygame and Python. Additionally, you can find a rough example that uses the engine of the project ‘tct‘ (The Crime Tracer).

Read more…

Arduino: Run applications with a remote control and an infrared receiver (IR).

September 21, 2010 Leave a comment

This project refers to a sketch (an Arduino program) in which you have the ability to run applications with the help of an infrared receiver (IR) and a remote control. Also included in this project is a Python script that implements a background service (Daemon) which communicates with the Arduino and initiates the execution of various applications. The program can manage several remote controls following the communication protocols NEC, Sony SIRC, Philips RC5 and Philips RC6. Also, you are given the opportunity to train the software to respond to specific keys from several remotes (the knowledge is recorded in the EEPROM of the Arduino).

Read more…

Arduino: Executing applications with voice command recognition.

August 25, 2010 Leave a comment

This project refers to an Arduino sketch which with the help of a VRBot system can recognize voice commands, making it possible to run applications. For example, we could  cause the execution of the relevant browser with the voice command «Firefox». Also included in this project is a Python script that implements a background service (Daemon) which communicates with the Arduino and initiates the execution of various applications.

Read more…

Arduino: Checking 3D shapes rotation with Python, OpenGL and Arduino.

July 5, 2010 Leave a comment

This project refers to an Arduino sketch which allows the rotation of three dimensional shapes using appropriate sensors. Essentially, the Arduino collects values from the sensors and corresponds them to the [0, 360] range (rotation angle). Every time we get a pair of values (X, Y) for the rotation of the shape, the pair is sent over the USB serial port to the PC.

The PC runs a Python script which produces three-dimensional shapes with OpenGL. Also, the script obtains the pairs via the USB serial port and renews the current shape of the screen. For performance reasons, the three-dimensional shape is renewed only when there are changes in the pair (X, Y).

Finally, you should know that to run the Python script properly the Arduino should already be running and input sensors should have been calibrated regarding their edges. The calibration is performed automatically in the first 15 seconds (use two potentiometers as an example for both input sensors).

Read more…

Follow

Get every new post delivered to your Inbox.

Join 148 other followers