• Far Inside The Arduino
  • Arduino Nano Every
  • PDP-8
  • All About This Site

Tom Almy's Blog

More Dynamic Than His Almy.us Website!

tom
https://almy.us

Arduino Nano Every

Infrared Barrier: Modulating a 38kHz carrier at 1kHz with an Arduino Nano Every

By tom on Friday, May 14, 2021

I recently received a request from a reader of my Far Inside The Arduino: Nano Every Supplement. He needed to create a 38kHz carrier modulated at 1kHz for a project he was building with the Arduino Nano Every and was thwarted by available code for the Uno which would not compile on the Nano Every. …

Continue Reading
0
Arduino Boards Far Inside The Arduino

One Wire and the DHT11/DHT22 sensor

By tom on Friday, April 30, 2021

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 …

Continue Reading
0
Far Inside The Arduino Meta

Two steps forward, two back, then forward again…Maybe some sideways…

By tom on Wednesday, April 21, 2021

While writing a chapter on packet data transfer over the USARTs I realized that I could easily aim it more toward a future chapter on MODBUS with a little rewrite, so I did so. It now has timeouts and still works using callback functions, if desired. It makes for really slick demonstration programs! And while …

Continue Reading
0
Uncategorized

Serial Differences Among Arduino Boards

By tom on Tuesday, March 30, 2021

I’ve been writing about the USARTs and one might first think that all AVR based Arduino boards can be treated the same. However that is not the case. And since some of the example programs in the (future) book involve two boards communicating with each other, there are a large number of combinations I need …

Continue Reading
0
Arduino Boards Far Inside The Arduino

I2C Operation as a Slave Device

By tom on Saturday, March 6, 2021

When considering communication between or among microcontrollers, I’ve discouraged use of the SPI interface because of its lack of a buffered interface in all but the ATmega4809 Ardruino AVR-based boards. However the handshaking protocol built into the I2C standard interface makes I2C communication a safe, reliable choice. (The I2C interface is called TWI in the …

Continue Reading
0
Arduino Boards Far Inside The Arduino

A better approach for transaction based I/O

By tom on Wednesday, February 24, 2021

Most I/O in a microcontroller (like in an Arduino board) consists of transactions. The microcontroller sends a command or a command plus data to a peripheral device and then, perhaps after a short delay, the device sends a response of status and data back to the microcontroller. The Arduino library tends to have only blocking …

Continue Reading
0
Arduino Boards Arduino Nano Every Far Inside The Arduino

An Adventure in FreeRTOS

By tom on Monday, February 15, 2021

My final dice game example for the new book uses FreeRTOS. There are three independent (non communicating) tasks, to keep things simple, rather than breaking down the game itself into multiple communicating tasks. There is the game task, a flashing light (“blinky”) task, and a background task used to measure performance, like I did with …

Continue Reading
0
Far Inside The Arduino

Interrupt Driven Designs Are Efficient

By tom on Tuesday, February 9, 2021

In the new book I’m writing I’ve implemented a dice game in multiple ways, starting with all the code in-line, with blocking routines and no interrupts. This is the typical Arduino approach. I’ve just completed an interrupt driven version. In this version, the function loop is: Because everything happens in interrupts! Many people think that …

Continue Reading
0
Far Inside The Arduino

Back Writing Again

By tom on Sunday, January 24, 2021

OK, I’ve been taking time off the past few months, but now I’m back writing again. Maybe I’ll get that next book finished! Meanwhile I am disheartened by the lack of review on the two Far Inside books. They won’t make the New York Times Best Sellers list, but they are selling more recently and …

Continue Reading
0
PDP-8

Errata in The PDP-8 Class Project

By tom on Saturday, December 26, 2020

An error was discovered by a discerning reader and experimenter in the sieve.pal example program shown in the book and provided in the download. There were two missing CLA instructions. The errors have been fixed in the download, so if you wish to try out the example program please download it again from the website. …

Continue Reading
0

Posts pagination

← Previous 1 … 5 6 7 8 9 … 12 Next →
Recent Posts
  • A Small Programming Adventure in Java
  • Saving Memory with Integer Scaling
  • FreeRTOS Implementations On Newer Arduino Boards
  • FreeRTOS Scheduling in the Arduino Uno R3
  • Effective Interfacing of Pushbuttons to Arduino Boards
Book Titles

I have no advertising. Please support this site by buying my books, available as paperbacks or in Kindle format:

Making Sense of 37 Sensors

Still Far Inside The Arduino

Far Inside The Arduino

Far Inside The Arduino: Nano Every Supplement

The PDP-8 Class Project: Resoling An Old Machine

The following is available only as a paperback book:

Designing with Microcontrollers — The 68HCS12

Archives
  • January 2025
  • October 2024
  • June 2024
  • May 2024
  • February 2024
  • January 2024
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • December 2021
  • November 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • March 2020
  • February 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
About Tom

Now retired, Tom Almy, has written applications for microcontrollers throughout their history, worked in the electronics industry for 43 years and taught courses in digital design and programming for 25 years. He is now looking at electronics from a hobbyist point of view. Tom holds eleven patents, most pertaining to digital and analog circuit design. He received a MSEE degree from Stanford University and a BS with Distinction in Electrical Engineering from Cornell University.

Categories
  • 37 Sensor Kits
  • Arduino Boards
  • Arduino Nano Every
  • Arduino SAMD21-based Boards
  • Far Inside The Arduino
  • Meta
  • PDP-8
  • Still Far Inside The Arduino
  • Timer/Counter
  • Uncategorized
Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Pages
  • All About This Site
Theme by Scissor Themes Proudly powered by WordPress