Phobos-Grunt, wake up!

Novembro 23rd, 2011

You might be aware of a very interesting space mission launched this November: the Phobos-Grunt sample return mission.

Mission control does not have (2-way) communications with the vessel while in close Earth orbit (yes, this is apparently a planned situation), so it was expected to slingshot away from Earth autonomously. Although the launch went well, and positioned Phobos-Grunt on Earth orbit, the spacecraft has experienced a problem and did not insert into the elliptical (slingshot) orbit around Earth, as planned. So mission control has had a very hard time communicating with the vessel.

I read the ESA has finally managed to receive signals from the spacecraft. Here’s hoping they can regain contact with it, and that mission control can effectively send Phobos-Grunt to it’s intended destination: Mars.

More on this later.

SAPO Codebits V

Novembro 14th, 2011

Este fim-de-semana, estive no SAPO Codebits, um evento criado pelo SAPO que junta centenas de programadores portugueses num ambiente fabuloso de criatividade e entre-ajuda. É difícil de categorizar este evento, mas de lá saem todos os anos alguns dos mais avançados, arrojados e tecnologicamente avançados projectos do planeta. Eu adorei a experiência; já tendo participado em outros anos posso confirmar que este ano foi claramente o melhor de todos, em todos os aspectos!

O foco principal do evento é uma competição de programação de 48h non-stop, em que várias equipas desenvolvem projectos onde a sua imaginação é o limite (para além das 48h, claro). Findas as 48h, todas as equipas se juntam no palco principal e cada equipa apresenta o seu projecto às outras em 90 segundos, ao mesmo tempo que são votados pelo resto dos programadores. Durante os 3 dias do evento, são dadas mini-palestras (talks) sobre vários tópicos de programação, últimas tecnologias, métodos alternativos, cozinha ou agricultura com muita tecnologia e geekness à mistura. Ultimamente, o inglês tem sido a língua oficial do evento, uma vez que temos já um número consideravel de estrangeiros no evento, não só a dar talks mas também a participar.

Existem muitos outros pontos de interesse, claro; este ano houve desde os famosos Nuclear Tacos (tacos feitos com Bhut Jolokia, uma pimenta muitíssimo forte) até uma workshop de cozinha molecular, passando pelo Quiz Show, um karaoke que em vez de música utiliza apresentações, uma competição de Munchkin…

Para poderem ter uma ideia melhor do evento, dêem uma vista de olhos a isto:

- Uma panorâmica da sala principal (falta o lounge, a zona de entrada, e o palco principal).

- Eu com o bot (a “mascote” do Codebits).

- A notícia da RTP / Daniel Catalão sobre o Codebits.

- Site do SAPO Codebits (em inglês, que é a língua oficial do evento).

Hiatus

Novembro 10th, 2011

Yes, I know I haven’t written on this blog as much as I’d like to, but things are starting to normalize.

Having a little newborn baby at home and trying to finish my house, along with a very intense work schedule, did not contribute to my free time at all. My personal projects have been on hold for the past year or so, but I think things will pick up from now on. The kid is already 6 months old, and by the looks of it he’ll quickly grow into a big boy (needing less time with diapers, sleep, etc). I love being with my kids, so this is invested time; I’m sure it will pay off in the long term.

Codebits V will probably mark my return to activity.

Codebits V - ignition!

Novembro 10th, 2011

I’m on my Alfa Pendular train, heading to the Parque das Nações in Lisboa, for the Codebits V!

If you’re there, do look me up on the premises! :)

VirtualBox and greater screen resolution on the Guest

Julho 12th, 2011

If you’re in the automation field and work with Siemens WinCC software, you have most certainly got projects with different screen resolutions; and screen resolutions are chosen and fixed on the design side. Wich means that if you have to work on a project in a computer with a smaller resolution, you simply can’t see all of the WinCC runtime screen.

Nowadays, I work from my MacBookPro and virtualize Windows and Linux everytime I need them for testing. This is also a very confortable way of dealing with these Windows-only situations like WinCC, but if you’re on VirtualBox and need a higher resolution to work with WinCC (1280×1024 in my case), you’re in trouble. That’s because by default VirtualBox does not allow the guest Windows to pick a resolution greater than the host OS’s.

There is a simple solution, although a bit burried in the manual: just copy-paste this into the terminal:

VBoxManage setextradata global GUI/MaxGuestResolution any

, and suddenly (well, after a guest OS reboot) you can pick humongous resolutions if you want. Then, activate the Scale Mode (Host key + G) and away you go!

To infinity and beyond!

Junho 1st, 2011

Ever since I was a kid I’ve wanted to send a probe of mine into near space. When I grew up and learned a bit more about the laws the govern the universe (at least the ones we can come up with nowadays), I realized it was not an easy task. But I didn’t want to send a full-fledged, 3-year-of-development, 1.5 ton, 3 meter tall probe into space, with the highest tech equipment on board. I just wanted a small probe, with simple, cheap sensors, a camera and little else.

A group of very clever people actually achieved this recentely: the SpaceBits project. Go there and amaze yourself.

Now, the idea of using a high altitute baloon is great, one that I also had myself back then, but not as the only means of transport. My design was based on vessel with propulsion, albeit a very weak one (to be as light as possible). The baloon rises the vessel to a certain height before bursting; the idea was to use the propulsion to go further than the baloon alone could go. The strategy was to use the propulsion a few seconds before the baloon burst to alleviate some effective weight and accelerate the set. The vessel would apply just enough power to even out it’s own wheight, or a bit more, so that the baloon would accelerate. Immediately after the baloon burst, the vessel would apply full propulsion until the power ran out. After that, it would fall again to Earth.

The fall was not caotic; the vessel could manouver during the descent, so that it could crash into a more-or-less predicted place (preferably some water, hehe). I wanted it to have a small parachute, but weight would certainly not allow it (and it’s associated firing mecanism).

I even had a sketch of the vessel made; it had a rocket-like shell, with stabilizer fins, and lateral duct-fan assemblies for propulsion. The body/fins would move to steer the vessel. I knew the fans would only work up to a certain height, but I never got to know what that limit was… if I’m thinking correctly, once the air becomes more and more rarified, the fans produce less and less impulsion; even assuming an infinte power supply, there would be a point were the impulse would equal gravity, and the vessel would move no further.

In terms of power, the idea was for it to be totally electric, with four power supplies: propulsion engines, ascent and descent control motion, main systems, and a very small backup for the main systems.

In terms of sensors, I never got to think too much about it, just some simple temperature, pressure, light, oxygen, altitude, speed, etc. It would have a camera facing forwards, GPS for positioning, and a radio telemetry and control system connected to a land-based application.

Back then, this would obviously all be done with an Amiga! :) Seriously, this was a project I would really like to build one day; electronics are much cheaper now, we have access to some pretty advanced microcontrollers and radio devices, and development (both hardware and software) has never been so much fun! :)

Idiotices estatais

Maio 25th, 2011

O estado dá um incentivo na compra de painéis solares para aquecimento de água de uma habitação. Parece-me boa ideia. Aliás, tão boa que equipei a minha casa nova com um sistema solar poderoso, apoiado por uma caldeira a lenha. Um sistema com um ciclo de carbono perfeito em termos de consumos. No entanto, o estado não me deixa aceder ao incentivo! Parece que comprei os painéis durante a construção da casa, enquanto esta ainda não estava registada (porque não podia, duh)… pelo que não posso declarar a compra no IRS para ter o incentivo. :o

Absurdo. Como se já não bastasse o incentivo ser uma percentagem do valor investido, mas com um limite ridículo (777€ se não me engano). Faz-me lembrar os incentivos para a microgeração, com todos os limites impostos, tanto em termos de registo de instalações como nos preços pagos por KWh. Na prática, é tudo uma fantochada. Como muitas coisas anunciadas neste país.

Enfim! :P

Performance versus Beauty

Abril 6th, 2011

I believe programming is an art. Just like an artisan creates an artifact, when I program I develop… and item. Although intangible (most of the time), it normally has a visual form (the application’s HMI, or Human-Machine Interface). This visual aspect should be coherent with the rest of the product, admirable, intriguing, exquisite.

Designing a good User Interface is an art in itself, one that should “connect” with the intangible part of the “machine”. When they blend, they can really amaze, entertain, inform, in a simple, natural (yet powerful) way.

My home automation is badly needing love in this area. The intangible part is coming along very well, but I really need to dedicate myself to the User Interface. I’ve made sure it is functionally quick to respond and simple to extend, but I’ve delayed the visual design a bit too much. I think I’m in a point where functionality is at a very interesting level, and as soon as I finish the element I’m working on (the air admission system, including an earth-air heat exchanger) I’ll shift to design.

I’m aiming at simplicity and usability, something not trivial to achieve when your system crosses a certain sofistication threshold.

Time scavenging

Abril 5th, 2011

You know when you’re playing this great action game that has you doing some amazing stuff, but you have limited time to accomplish your mission? Once in a while, you come against these beautiful clocks just floating there in the air… up for grabs. You pick one up and presto! There you go! Another 2 minutes allowance to finish that level.

Since I don’t seem to have time for almost anything these days, I *so* wish I could find those floating clocks around here!…

Resol VBus LAN adapter on Resol DeltaSol C Plus

Março 15th, 2011

I’ve finally received my Resol VBus/LAN adapter! I’ve installed it this weekend on my RigSun solar system and connected it to the home automation so that I can log the system’s data (temperatures and pump states).

It was very easy to integrate, being a simple proxy to the VBus solar controller, with a trivial TCP/IP connection protocol. The VBus binary protocol was easier to implement than I thought inicially. I’ve developed a cool class to interface with my solar controller (Resol DeltaSol C Plus), and I can subclass it easily and quickly to accomodate other Resol controllers.

VBus is almost RS-485 (modified to provide parasitic power to the devices on the network, I guess), so it should be simple to make an electronic adapter, but I have no time now to investigate. Later perhaps.

I’ll share the data here, along with a couple of small modifications I’m making to the system.