Posts Tagged ‘Programming’

Mon p’tit python ! (Part 1)

I had a laugh when I started tumbling around on the web, trying to get a proper starting point for learning Python ! I heard about the famous Pink Floyd rock band funding the no less famous “Python and the Holy Grail” with a part of their substantial earning from “Dark Side of the Moon” […]

Alternate IDE (Part 2)

Part 1, 2 Well Notepad++ is really my editor of choice for coding Arduino. Although I am aware of many other powerful editors, I like the style as well as the price (It is free!). Anyway, I felt like Notepad++ was lacking something handy available elsewhere: running external applications. As my first attempts to use […]

DC motors (Part 2)

Part 1, 2, 3 Time for code ! Let’s write a few lines of trivial code in order to drive our controller (Check previous post). You probably heard about the analogWrite() function which is very convenient for generating PWM. Well, we will not use it ! Is it because it is too easy ? It […]

Random number generator (Part 3)

Part 1, 2, 3 The early tests presented in this series of posts were dealing with a limited number of data. The risk exist that a long term repeated pattern may not be seen using these statistical tools. Here is an other approach to testing the randomness of data. It consists in creating a black […]

Random number generator (Part 1)

Part 1, 2, 3 As I was stumbling the web looking for advanced information on thermal noise, I found some very interesting papers on RNGs, aka Random Number Generators. These devices feature hardware components which are responsible for a generating unpredictable random numbers ! This is a very interesting matter as it involves physics, electronics, […]

Stepper Motors (Part 7)

Part 1, 2, 3, 4, 5, 6, 7 This post is about driving stepper motors. In the previous posts I described the various components involved in motorized assemblies featuring stepper motors. However, putting all these nuts and bolts together may lead to unexpected results. In my case, these defects where related to the use of stepper motors […]

Tips and Tricks (Part 27)

Previous T&T This T&T deals with the compression of numerical data. Using the proposed algorithm, you will be able to compress a 16 bits unsigned integer (so as to say an uint16_t or an unsigned int data type). into an 8 bits unsigned integer (so as to say an uint8_t or an unsigned char data type). […]

Cool stuff of the day

Although very handy for basic applications, you may soon or later want to get rid of the basic timing functions from Arduino and start using advanced timing featuring better accuracy and avoid time consuming waiting loops. There are several approaches to achieve this goal. Firstly, you may explore the web and try to find some information of interest. […]

analogRead alternatives (Part1)

Part 1, 2 Long story short: I never met wizards before Valerio knocked on quai-lab‘s door. And we all committed to help him to ‘augment’ the experience of his magic puppets. However, it’s long road from puppets to bytes and bits. But Valerio is not this sort of person who gives up easily and this post is […]

Tips and Tricks (Part 25)

Previous T&T Burn Arduino bootloader… or burn your time ! Problem: When trying to burn the bootloader on any Arduino compatible board using the AVRISP mkII, Arduino IDE reports a “avrdude: usbdev_open(): did not find any USB device “usb“, “Error while burning bootloader.” smashing error message. Although many people faced this problem and many other tried […]