In Far Inside The Arduino: Nano Every Supplement I made a late improvement to “A Better Timer Setup” that was not reflected back to the text description. The statement (page 69 of the printed book): This means with a 16MHz clock and the /8 prescaler we need 2000 counts per interrupt. With a 20MHz clock …
This book will be a catch-all for a number of topics on my mind. The family of Arduino boards. As basically revealed in previous posts, I want to address all of the AVR-based boards that are general purpose. Example programs will work on all boards (328P, 2560, 4809, or 32U4 based) even though programmed at …
Before considering the code, we need to consider what we are trying to accomplish. Commands for the TM1638 consist of a command byte followed by zero or more data bytes. Sometimes the microcontroller sends the data, other times it receives data, and in either case there is a single data wire used (MOSI and MISO …
For my next book I wanted an example program that had the need for lots of 7-segment display digits, buttons, and LEDs. I found what I wanted, at a low cost, in one of these: This has 8 7-segment (plus decimal point) digits, 8 LEDs, and 8 push buttons, and used a three-wire SPI interface. …
For those people unfamiliar with Pins.h, presumable those people who haven’t purchased Far Inside The Arduino or Far Inside The Arduino: Nano Every Supplement, this file describes a structure over the GPIO pin interface that is much more efficient than using pinMode, digitalRead, and digitalWrite. For instance, we can execute ddr.digital_2 = 1 to change …
This post was intended to compare the different general purpose Arduino boards. However I’ve been slowed down by the week of fires and hazardous air here in Oregon. I haven’t completed my investigation of the ATmega32U4 yet, and, in fact, my sample Arduino Micro, which uses this microcontroller, was delayed over a week in arrival. …
Basically, “General Purpose” means those consisting of little more than the microcontroller, USB interface, and voltage regulator. In my last post I mentioned the Uno as the base-line board, with the historical lineage from the original Arduino board. But today you can get many different boards differing in size and microcontroller. In my next book …
In looking at the different general purpose Arduino boards available today, I’ve been thinking of how to tie them all together. So I’ve delved as well as I can into the history of Arduino boards. Frankly, it isn’t particularly easy to do. But I did find what appears to be the starting point — the …
Note: this error has been corrected in all books currently available for sale, so only affects initial purchasers. Both original and corrected example programs are offered on the website. On the Arduino Nano Every board, the first two digital pins are labeled TX and RX, rather than their digital pin numbers. I had assumed these …
First I’m making a few corrections to the Far Inside The Arduino book. If you have the first edition, don’t worry. There are two small errors, both mentioned in the errata on the web page for downloading the program examples. And for the printed version the page headers have been made more meaningful. The new …