Le temps de merde
Oui, c’est Paris!
Wifi controlled RGB LED bar
I’ve been working on this project for the past few days.
At the moment I’m able to control the LED bar wirelessly, that is, the arduino does not have to be connected to a PC since I’m using a wifi module with it. This module provides a tcp server feature that I use to make a basic html server. I just have to power the arduino and that’s it.
The rest of the project is a combination of transistors to work with the 12V required by the LED bar, and of course, code.
The main advantages of this implementation are:
1) no need for a PC to work – just a wireless network
2) browser control – no need for extra software and accessible from multiple devices
The image below is a graphical representation of what I just explained:

Demo:
Aviso importante!
Algures num autocarro em Macau, existe o aviso:

“Aviso a Passageiro
À segurança aos passageiros e pública, os passageiros não podem trazer sacos gigantes, material de construção perigosos e substâncias inflamáveis para tomar carreiras.
Além disso, não carregam grandes flores anuais em laranja, vasos de plantas e aves domésticas, vitelas, etc na carreira, por favor, cooperar!”
PiwigoMedia 1.0.0
PiwigoMedia has been updated to version 1.0.0.![]()
This is a major update as most of the plugin’s core has been rewritten and it now relies heavily on ajax queries.
This release also fixes all the latest reported issues.
I’m yet to test this release on IE and Safari browsers. Reports on this matter are very appreciated.
Download & report feedback in the usual place.
Rio Ovelha 2012.08
The last addition to the gallery is a small collection of photos taken during a day trip, in the summer, to Rio Ovelha at Marco de Canaveses.
It’s not the first time I go to this place to shoot nature, although, a new challenge was to shoot everything handheld (on a ~900g lens without i.s.), including dragonflies!
You can view the gallery page here, enjoy.
PiwigoMedia 0.9.9 release
In case you didn’t notice, PiwigoMedia has been updated to version 0.9.9 and it’s now compatible with latest version of Piwigo (2.4.3).
Download latest plugin version from here.
If you have any issues, check the replies on this page.
The current changelog follows:
* update: compatibility with Piwigo 2.4.3
* update: updated JS code to make it work with IE8 (but needs more testing).
* update: “Thumbnail” and “Insert:” were missing in POT.
* update: better security checks in popup.php.
* new: French (fr_FR) translation (Dimitri Robert).
As always, feedback is welcome.
Macau, HK ’12
Here’s the first compilation of photos from my last journey – Macau and Hong Kong.
Visit the whole gallery here.
A preview of the gallery follows below:
Enjoy!
Hard day
Hello Hong Kong

Macau 180 degree panorama
Hello Macau
Waiting…
Frankfurt:

PyRFactor2Plugin – Python plugins for rFactor 2
I’m proud to announce the first release of PyRFactor2Plugin for rFactor 2. The project was previously named rFactor2Python, only available for rFactor 1.
PyRFactor2Plugin is built on top of previous project’s code, since many of the methods and attributes remain intact, while at the same time I’m doing some improvements here and there.
The list of features is a bit limited at the time. UpdateScoring() is already implemented, and it should be enough for a significant number of projects (like this). There’s also one example plugin included with this release and I’m planning to release a mysqldb example soon, similar to the one found in rFactor2Python.
Download the 20120601 release - pyrfactor2plugin_20120601_python27
As usual, suggestions and bug reports are appreciated.
Enjoy!
A walk in Vagos
Here are some of the photos I took last weekend, during a walk in Vagos.
You can view the whole gallery here.
A preview of the gallery follows below:
Enjoy!
Waiting for a train

Fright Night II
Sound reactive LEDs
The following video shows a prototype of a project I’m working on. It consists of a circuit that reacts to sound, turning two LEDs on and off (really fast), based on signal amplitude and frequency.
The blue LED reacts to lower frequencies, filtered with a low pass circuit, configured with a cutoff frequency of ~150Hz, while the other one reacts to frequencies, filtered by an high pass circuit, with a cutoff frequency a little over 1.5KHz.
I previously posted something similar I did with an Arduino, but now I’m using a full analog circuit. The sound response is much better now! Enjoy:
24/05/2012 – A new version with high power leds:
PyMD2Viewer, my first approach to OpenGL programming
I have a big interest for 3D programming since a long time ago, although I’ve never done anything about it. Recently I’ve started researching for tools I could use to start learning about this subject. I’ve found a neat library, called Simple and Fast Multimedia Library. It’s open source, cross platform and looked easy, clean, reasonably mature and had overall good user reviews. Oh, and it has bindings for Python, which is incredibly useful for prototyping. There’s also the famous PyGame, which is basically SDL for Python, but from what I’ve read about it, it didn’t look as clean and easy as SFML, but it is considered a good library too.
So, after deciding the library I would be using for the GUI and event handling, I had to start reading (OpenGL documentation, math theories, articles, tutorials) and experimenting with code. Finally, when I had a basic idea of OpenGL workflow, I decided to start a small project – a MD2 model viewer! It was a big motivation. Not only I played Quake series since the beginning, but also Quake2 model format is very well documented. As if this wasn’t enough, Quake is also open source and Linux friendly.
I had (and still having) a blast working on PyMD2Viewer. It currently looks like this:
Meet rF2Py Overview
I’ve started a new project whose main purpose is to show real time details of a rFactor session, similar to http://rfac.ath.cx, but as a GUI application.
The whole project is composed of a server-side component and a client GUI application. The server-side component is basically a socket server, receiving requests from clients and broadcasting session information to every connected client. It is built on top of rFactor2Python.
The GUI application uses GTK, works on Windows and Linux and looks like this:
Blog is hosted on a new site

The blog is now hosted on an European site. Everything is now loading faster, weehey!
New photo gallery – Madrid ’10
Phew! Long time, no updates!
In order to break the omission of blog updates, I have uploaded a batch of 1 year old photos to a new gallery, Madrid ’10.
Here’s a sample of the gallery:
For a better viewing experience, view the whole gallery from its page.
Enjoy!
New rFactor2Python release with support for Python threads
There’s a new version of rFactor2Python plugin available and Python threads are now supported! (finally…)
This is a neat feature for projects that need to execute routine code (for example, a socket server), specially when the option “Pause While Zero Players” is true.
Download rFactor2Python v20110927 from here.
As always, feedback is greatly appreciated! ; – )





