Skip to content

Instantly share code, notes, and snippets.

View somebox's full-sized avatar
🪩
driving LEDs

Jeremy Seitz somebox

🪩
driving LEDs
View GitHub Profile
@somebox
somebox / teensy-41-guide.md
Created June 29, 2025 01:40
Teensy 4.1 Best Practices

Teensy 4.1 Microcontroller: A Community Reference Guide

This guide synthesizes practical knowledge, best practices, and known issues for the Teensy 4.1 microcontroller, based on extensive community discussions. It is intended for developers, hobbyists, and engineers designing circuits and software with the Teensy 4.1. The information was reviewed by a human, with summarization and structuring help from Gemini 2.5 Studio.

Getting Started: Development Environment & Toolchain

Arduino IDE & Teensyduino Setup

  • Best Practice: For reliable development, use the official Teensyduino installer with a supported version of the Arduino IDE.
    • For Arduino IDE 1.8.x, only specific versions are supported, with 1.8.19 being the most recommended. Teensy support must be added by running the Teensyduino installer and pointing it to the IDE's location.
@somebox
somebox / bq25895-notes.md
Created June 28, 2025 10:38
BQ25895 Supplemental Community guide

This is a supplemental reference guide for the bq25895, focused on practical advice, common problems, and information that goes beyond the core datasheet. It was created by summarizing forum and article posts and processed with a Gemini 2.5 pro documentation workflow.


bq25895 Supplemental Community Guide

For Circuit Designers and Firmware Engineers

A Note on This Guide

This document is intended as a companion to the official Texas Instruments datasheet, not a replacement. The datasheet provides the fundamental specifications and operational principles. This guide consolidates community knowledge, best practices, and lessons learned from real-world implementations to help you avoid common pitfalls and accelerate your design process.

@somebox
somebox / BQ25185-notes.md
Created June 27, 2025 23:26
BQ25185 Community Reference Notes

BQ25185 Community Reference Guide

This guide is a summary of collective knowledge, best practices, and troubleshooting tips for the Texas Instruments BQ25185 linear battery charger, based on community forum discussions. It is intended to supplement, not replace, the official datasheet.

1. Overview & Key Specifications

The BQ25185 is a standalone, single-cell (1S) Li-Ion/Li-Po/LiFePO4 linear battery charger. Its key characteristic is the integrated power path, which allows it to power a system load while simultaneously and independently charging the battery.

  • Charger Type: Linear Charger (standalone, resistor-configurable)
  • Battery Chemistry: Single-Cell (1S) Li-Ion, Li-Po, LiFePO4
@somebox
somebox / tps61033-notes.md
Created June 27, 2025 21:31
Guide to Using the TSP61033 Boost Converter IC

TPS61033 Community Reference Guide

This guide summarizes key design considerations, best practices, and common issues for the TPS61033 boost converter, based on collective notes from datasheets, application notes, and community discussions.

1. Overview and Core Functionality

The TPS61033 is a high-efficiency synchronous boost converter. It's frequently used in battery-powered applications to step-up a lower input voltage (e.g., from a Li-ion battery) to a stable, higher output voltage (e.g., 5V).

  • Key Application: Boosting 3.3V-4.2V inputs to a 5V output.
  • Performance: Capable of delivering up to 3A output current at 5V from a 3.7V input, provided the layout is optimal and the input supply is robust.
@somebox
somebox / LSM9DS1-ref.md
Last active June 19, 2025 14:17
LSM9DS1 IMU sensor I2C reference guide

This guide to the LSM9DS1 was written with help of the datasheet, offical STMicro driver source, and other libraries. It is for low level troubleshooting and use of this sensor. Gemini 2.5 pro was used to help summarize and cross-check.


The Complete Arduino I2C Guide for the LSM9DS1

(A Merged Technical Reference Based on the Official ST Driver and Community Examples)

This guide provides a robust, end-to-end technical reference for Arduino developers who wish to perform a direct I2C implementation of the LSM9DS1. It combines the safety patterns from the official STMicroelectronics C driver with practical code examples and register maps, creating a single, authoritative resource for your project.

1. Hardware Connection & Troubleshooting

@somebox
somebox / platform-engineering.md
Created June 5, 2025 22:13
Platform Engineering notes

Summary of a transcription from https://www.youtube.com/watch?v=tvU9A6hfuKM

A Short Guide to Navigating Platform Engineering Blind Spots

Platform engineering aims to scale DevOps principles, enabling developer velocity and a better developer experience. However, a common focus on the platform's internal tooling and workflows might overlook a crucial aspect: the provision of business-centric APIs that unlock broader organizational value and innovation. This guide explores potential blind spots and how to address them.

The Starting Point: A Potential Blind Spot

The conversation around platform engineering often centers on the efficiency of building and deploying software. But a critical question arises:

"My question to you was whether platform engineering as it is mostly portrayed today might have a little bit of a blind spot because there's not so much a focus on which APIs to provide throughout the organization to provide these options that new interesting things can happen."

@somebox
somebox / flyonui.md
Created May 31, 2025 14:26
FlyOnUI Condensed and LLM-Friendly Documentation

FlyonUI Developer Guide

This is a summarized and simplified on-page guide based on the FlyOnUI documentation, intended for use as context for LLM-assisted coding. It was created with a summarization workflow created in n8n and then summarized with Genimi 2.0 Flash, and the final document restructured and reformatted using Gemini 2.5-pro.

1. Overview

What is FlyonUI?

FlyonUI is an open-source Tailwind CSS component library. It provides semantic classes and JavaScript-enhanced components for building user interfaces.

Core Technologies

@somebox
somebox / platformio.md
Last active May 31, 2025 14:14
PlatformIO Condensed One-Page Reference

PlatformIO Reference Guide (LLM-Friendly)

This is a summarized and simplified on-page guide based on the PlatformIO documentation, intended for use as context for LLM-assisted coding. It was created with a summarization workflow created in n8n and then summarized with Genimi 2.0 Flash, and the final document restructured and reformatted using Gemini 2.5-pro.


Part I: Introduction & Core Concepts

Chapter 1: Introduction to PlatformIO

@somebox
somebox / deepseek-r1-dodecahedron
Created February 6, 2025 12:50
Deepseek R1 thinking about a Dodecahedron
>>> tell me about the angles of a dodecahedron
<think>
Okay, so I need to figure out the angles of a dodecahedron. Hmm, first off, what exactly is a
dodecahedron? I remember it's one of those Platonic solids, right? The prefix "dodeca" means twelve, and
since each face is a pentagon, it must be the regular dodecahedron with 12 faces. But wait, there are
different types, like irregular ones, but I think when people refer to a dodecahedron without specifying,
they usually mean the regular one.
Alright, so each face is a regular pentagon. That means all edges are equal in length and each internal
angle of the pentagons should be the same. I recall that the interior angles of a regular polygon with n
#include <Arduino.h>
#include "ESP8266WiFi.h"
#include "SPI.h"
#include <NTPClient.h>
#include <WiFiUdp.h>
/*
A large four digit 7-segment LED clock, controlled by an ESP8266.
The LED modules are quite large, 5" tall, and require high voltage to drive the many