With an abundance of RAM memory and the availability of floating point in the latest microcontrollers, there is little concern about minimizing memory for data storage and optimizing computation time. However, smaller microcontrollers have limited memory and no floating point, and it may become necessary to optimize the usage of memory. Accuracy and Precision Let’s …
The Arduino website lists 27 different board models, with 5 currently marked as “sold out”. We will assume for these articles that the ones that are sold out will return. Of the 27, three use the very old, but not quite original for Arduino, ATmega328P microcontroller.. Two of these are the still popular, and widely …
While one usually thinks “ATmega328” when presented with “Arduino”, and that microcontroller does represent the highest volume of boards, more models use the SAMD21G18 microcontroller than any other. That’s 11 of 23 different Arduino boards. So having finished the 37 Sensors book, and taken some time off for other things, I am back to writing. …
I have done a few things related to the books. There is recently discovered errata for Far Inside The Arduino and Still Far Inside The Arduino. The errors are mild enough (?) that I’m not producing a revised edition at this time, but if you own one of these books go to the linked page …
Very pleased to look on Amazon and see this: It is the number one new release in Digital Design, like Far Inside The Arduino got two years ago. Doesn’t really mean much though, just like the last time. What I really need are purchasers of my Arduino books to write reviews, especially if you like …
So I just finished the Still Far Inside The Arduino book and am starting to consider a new project. The Arduino Nano 33 IoT caught my eye. While still a bit more expensive than clone Uno or Nano boards, it is the second lowest cost genuine Arduino board, second only to the Arduino Nano Every. …
My latest book has now become available on Amazon. Still Far Inside The Arduino continues the theme of Far Inside The Arduino and the Nano Every Supplement by using programming techniques and drivers more advanced than what Arduino promotes. Topics include: Distinctions among the various general purpose Arduino boards: ATmega328P based like the Arduino Uno …
Using a timer/clock interrupt, one that occurs at a regular rate, can be useful in managing tasks, providing a pseudo-operating system with essentially no overhead. The code for each task is laid out one after another in the ISR. For tasks that we want to execute at regular intervals we arrange the task like this, …
Arduino provides a USART driver for treating the data as a stream, basically a never ending sequence of bytes. This follows along a tradition of sorts, basically popularized by UNIX in the 1970’s. However traditional (at the time) computers did I/O by records, blocks or packets, of data. And this is the basic operating method …
The traditional Harris 1-Wire® bus has a protocol that works well for interfacing using timer interrupts. Every bit transferred is in a single time slot that is always initiated by the microcontroller “master”. And the spacing between bits can be as long as desired, in this case the time between timer interrupts, about 1ms. As …