Archive for September 2011

Fast Signal Sampling (Part 8)

Part 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12 For the Arduinoos fans. Recent optimization works lead me to update my fast signal sampling library. First of all, I am myself creating some contradictions that I hate with others software editors: change software names! So, for now and then, […]

The French parott box

From the French news paper La Croix, today “The Parrot company has become known to the general public, a year ago, after releasing a little helicopter named AR Drone which is remotely controlled by mobile phones. “We’ve already sold 200 000 in the world,” says the director Henri Seydoux. A great success for Parrot, a […]

Relays (Part 1)

Part 1 Relays may look outdated in the world of microprocessors: they are big, greedy (in mA) and slow. However, some of their properties make them unavoidable still, when comes the question of: galvanic isolation and requirement for fully floating contacts. Driving relays is no big deal as long as we care about the fit […]

PWM (Part 4)

Part 1, 2, 3, 4 Here is a simple sketch which examplifies the use of the PlainPWM library. Be carefully at declaring port and pin properly. The rest is really easy: initialize the PWM object with the port name, pin index, base frequency and default duty cycle ratio. The loop will dim the led up and down endlessly. /* […]

PWM (Part 3)

Part 1, 2, 3, 4 We previously used OCR2A register for storing the upper counting limit for the base frequency of the generated wave. OCR2B is the second register related to timer 2, which is compared to TCNT2 for triggering specific events. In our case, we will not trigger the OC2B because it is physically one pin (PIND3 actually). […]

PWM (Part 2)

Part 1, 2, 3, 4 The standard analogWrite() function fails to provide the choice for any base frequency. On the other hand, we may like to set any pin from any port as an output to the driving element (e.g transistor, MOS FET). The proposed code offers this flexibilty while keeping very simple. It comprises two functions: one for […]