Blog MLab

A complete 8-bit cheatsheet

Here is a one-page cheatsheet with all decimal, hexadecimal and binary codes for all digits from 0 to 255. In addition you also have the corresponding characters (i.e. the standard ASCII characters for the first 128 digits) which is often useful to have on hand. To print and pin on your wall if you are often programming devices at a low-level!


A stackable manifold for micro-valves

There can be numerous good reasons to use a computer-controlled microvalve: with low dead volumes and fast switching times they can be used for millifluidics, microfluidics or automation. Two common pitfalls are the driving electronics and the mechanical connection of the valve with the circuit. In this post I detail how to build a stackable manifold with Luer connectors for microvalves driven by a digital signal. Download all conception files for easy replication!


Matlab syntax tricks

A big asset of the Matlab language is that the syntax is simple to learn. But besides a seamingly poor set of syntax rules, there are several tricks that most people ignore. This post gathers a few not-totally-mainstream syntax tricks, which may reveal useful to anyone willing to improve his/her coding style and efficiency.


A basic Arduino serial server

When using an arduino as an acquisition and control board for a computer, the very first thing to do is to establish a communication between the Arduino (the server) and the computer (the client). Serial communication via USB is the simplest choice, and in this post we will see how to transform an Arduino into a basic serial server with just a simple - yet powerful - sketch.


Tracking object orientation with image moments

Object tracking is often reduced to recording the trajectory of the center of mass, and there is a simple reason for this: one only needs to compute the mean values of the horizontal and vertical indexes of the pixels, which is easy and fast. But what if one wants to track the object's orientation ? To do this, my favorite method is a simple and elegant approach involving image moments.


Fast clusterization of adjacency matrices

In this post I review three different methods to extract clusters from an adjacency matrix. A simple benchmark compares their performance and show that the reverse Cuthill-McKee algorithm improves execution time by a factor 30 as compared to brute force.