Archive for the ‘Programming’ Category

The web site of the day

If you are looking for the code to run your application, there are great chances that you will find the appropriate code to drive a device, control the communication or compute data at . You will find there an exhaustive list of the libraries available from Github, an introduction to what they can do […]

MicroHTR (Part 9)

Part 1, 2, 3, 4, 5, 6, 7, 8, 9 Here is an update of the MicroHTR (aka micro heater application) topic. Guy is a former marine pilot and his hobby is flying his touring-motor-glider wrote to me a very interesting message: “When flying close to cloudbase, the air becomes cold and the relative humidity […]

Light sensor (Part 2)

Part 1, 2 In the previous part of this publication, I covered the subject of sensitivity. As for many sensor, the range is very broad and a simple configuration cannot help covering the whole range of light intensities. As in the dated controllers, we might want to use a hand operated sensitivity selector. Although this […]

Power meter (Part 3)

Part 1, 2, 3 Once the hardware is ready, let’s have a look at the data and the software used to read these data. The customer information can operate in two different modes: historic: for compatibility reasons with older meters, this is the default mode. standard: this new mode, available from the latest Linky meters. […]

Let’s celebrate Apollo XI !

I remember very well the 20th of July 1969… I was in a holiday camp and the director had the bright idea to get a portable TV set, to power it with the battery of his car and he managed to have as many kids as possible watching this event. At this time, I had […]

Date and time serial: how to bypass the lack of precision of floats

Data type is probably the first concern for any new programmer in c/c++. These language require in minimal knowledge about integers and floats (Check this thread). Although these data types look familiar to all educated people, the principle of significant figures, which should be the universal way of formatting data, is, most of the time, […]

Code documentation (Part 1)

Part 1 Writing code is awesome. Have you ever compared coding works to the work of the potter ? He starts with a piece of clay, shapes it , refines it up to the final object. None from its production is fully identical to an other. Same thoughts apply to the coding works: the language […]

TASCAM Sound Recorder (Part 4)

Part 1, 2, 3, 4, 5 And here is the driver code. Nothing exceptional just plain good’ol arduino code. Check the writeByte function which contains few tricks and optimizations that are mandatory to achieve a proper timing. Ultimately this code contains a pretty versatile bit-bang UART writer that you may want to reuse in various applications. […]

Retour vers le futur

Allez, zou, pour une fois voici une publication en français ! Cà fait un moment que çà me grattouillait le clavier de composer dans ma langue maternelle, et je vois au moins deux bonnes raisons de faire une entorse à ma politique de publication. Soyons réalistes, l’anglais est une langue universellement comprise par les technophiles, […]

FN-M16P MP3 player (Part 2)

Part 1, 2 As seen in the previous post, the MCU (e.g. arduino) and the module are talking each other through a serial communication (UART) at a quite modest rate of 9600 baud. Data is exchanged as packets of 10 bytes according to the following structure: Byte# Function Value Comments 0 Start Byte 0x7E constant 1 […]