Archive for the ‘C++’ Category

Metal detector (Part 1)

“Dear cousin, I lost my keys in the middle of the meadows, would you please make a metal detector for me ? Urgent !“ This is really how this project started ! More or less, as I have in mind the design of an Earth’s Field Nuclear Magnetic Resonance spectrometer which features magnetic fields sensors on […]

Direct Digital Synthesizer (DDS) (Part 7)

Part 1, 2, 3, 4, 5, 6, 7, 8, 9 A recent project lead me to excavate a quite old DDS design which may be of some interest for you. Instead of using a ladder of resistors, this design features a simple, cheap and yet powerful digital to analog converter. I will later explain why I choose this particular Microchip circuit but for […]

Simple command parser (Part 2)

Part 1, 2 In the previous version, the command parser is using one single alpha character as an opcode while the argument is computed on the fly using simple arithmetic. In this version, the opcode is extended to (almost) any number of characters and the argument is stored in a vector which is then converted […]