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 …
Month: September 2020
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 …