Monthly Archives: March 2022

Drum sequencer using stm32l432kc, cmsis, #raspberrypi, #dlang

I’m on TikTok now. Go grampa! None of my videos will show loot unboxings like the young and beautiful people do, though. I wanted to share a little drum sequencer I made. There’s not much to look at, because hey, … Continue reading

Posted in Uncategorized | Leave a comment

A buffering DAC for #raspberrypi using #stm32

Rationale Linux is not an RTOS (real-time OS), so you can’t reliably use timers to produce music without creating distortions. It is possible to use libraries, such as portaudio, to produce music with proper music output. The problem is that … Continue reading

Posted in Uncategorized | Leave a comment

Sending data over I2C using bit-banging

This post shows how to send data from an STM32 using the HAL. Hints on adapting it to other mcus is also given. So it is useful for actually understanding the mechanics of sending data. CubeMX In CubeMX, set PA9 … Continue reading

Posted in Uncategorized | Leave a comment

A simple ring buffer for microcontrollers

The simplest thing that could possibly work: It assumes that data is of type uint32_t. Adjust it to suit your taste. Call cb_init() in your startup code. A discussion of circular (aka ring) buffers can be found here. I am … Continue reading

Posted in Uncategorized | 1 Comment

STM32L432KC SPI LL IRQ slave using

Assumptions: STM32L432KC SPI receive-only slave SPI1 Use of the CubeIDE Low-Level library Interrupt-handling of received data 16-bit data (easily changed) “The simplest thing that could possibly work” Let me first define an auxiliary function: Then call the following functions in … Continue reading

Advertisement

Posted in Uncategorized | Leave a comment

Bailed out of JRS

I decided to bail out of JRS (JPMorgan Russian Securities), at a massive 50% loss on my purchase price. Ouch. We shall see if I bailed out at the bottom or if there is much further to go.

Posted in Uncategorized | Leave a comment