Jeremy Cook Consulting

Articles related to Jeremy Cook Consulting
Software & OS

ATtiny85 Capacitive Touch Sensing (Sans External Resistors) - Blog

June 04, 2024

The ATtiny series of chips–specifically the ATtiny25, ATtiny45, and ATtiny85–are incredible microcontrollers, capable of extremely low-power operation and control via just eight pins. As I will describe here, you can even implement capacitive touch sensing on these chips’ ADC pins without any external components whatsoever.

IoT

Tasmota Breathes IoT Life Into Decades-Old Garage Door Opener - Blog

December 29, 2023

My house has a perfectly serviceable “Lift-Master” garage door opener, installed decades before I moved in. Before, in fact, “IoT” was even a term (or practically even “I”) as its manufacturing date reads as 02/94. Nonetheless, this device’s hardwire interface–a set of dry contacts–is refreshingly easy to modernize with the addition of an IoT-controlled relay and Tasmota.

Analog & Power

Make a Joule Thief: Three Inductor Options - Blog

March 24, 2023

Recently I’ve been considering how to run an LED for a really, really long time on a CR02032 battery, and eventually (re)stumbled upon the idea of a joule thief. The video below does a good job outlining how this circuit works.

Open Source

Raspberry Pi Pico CircuitPython MIDI Interface - Blog

February 13, 2023

In this article, I’ll first outline the basics of using MIDI with CircuitPython on the Pico for direct interface with a computer. I’ll then show how a Pi 4 (or 3/2) can be used as a host to pipe signals to a keyboard or other device.

Processing

Raspberry Pi Pico Turns Itself Off for Power Savings - Blog

January 24, 2023

While some microcontrollers use a tiny amount of power in shutdown mode–and even while running in some cases–e.g. the ATtiny series–others are more demanding. This can be especially true for dev boards with their additional overhead, and/or if you’re using sensors that never quite turn off power-wise.

Processing

Simple MP3 Audio Playback With Raspberry Pi Pico - Blog

December 12, 2022

The RP2040, with a processing speed of 133 MHz, is capable of decoding MP3 files, and the Pico RP2040 dev board includes 2 MB of Flash–enough to store a significant amount of compressed audio. At a list price of $4, the Pico therefore makes an incredible and cost-effective platform for embedded audio playback.