Monthly Archives: October 2020

#rakulang: yet another attempt at Basic/Asm

I just can’t seem to stop playing around with language creation. In a previous attempt, I emitted ARM assembler. I’m now thinking this is probably the wrong way to go. Instead, I’m experimenting with a stack virtual machine. So far, … Continue reading

Posted in Uncategorized | 3 Comments

Audio player using PWM, SD card, and #Arduino Nano

In this project, we will explore the use of low-level timer programmingon theNano to play a song stored on an SD card to a speaker using PWM output.An Arduino Uno will work just as well.TheArduino standard SD library is used … Continue reading

Posted in Uncategorized | Leave a comment

Tip for reading those near-invisible chip engravings

ICs (Integrated Circuits) come with identifications engraved on the top of them. Often, they are nigh-on impossible to read. What I found exceedingly helpful, even for the most unreadable engravings, is to rub the top of the chip with a … Continue reading

Posted in Uncategorized | Leave a comment

#stm32 blue pill: bare metal max7219 programming

I have now interfaced to a max7219 7 segment display using SPI and a blue pill. There’s not much for me to say about this. It worked first time! Working with I2C was something of a fight. SPI is significantly … Continue reading

Posted in Uncategorized | Leave a comment

Switched to Debian Stable

Ubuntu 20.10 is due to hit the interwebs today. It is no coincidence that I chose this precise moment to switch to Debian Stable. Two months ago I was contemplating the desirability of just sticking with a long-term distro rather … Continue reading

Posted in Uncategorized | Leave a comment

#stm32 blue pill: playing hard-coded audio using PWM

Keys: IRQ, PWM, audio, clock, timers In this project, we play a hard-coded voice recording. It builds onproject 12. You should review that project to learn about things like timer prescalers, channels, and preloading of timer resets. Skim through the … Continue reading

Posted in Uncategorized | Leave a comment

#stm32 blue pill approx. 440Hz wave using PWM

Dissatisfied with the offerings from elsewhere, I have decided to write my own STM32 bare metal library from scratch. It is shaping up nicely. I’ve gotten GPIO, delays, interrupts, PWM, I2C and SPI working, so I’m well on the way … Continue reading

Posted in Uncategorized | Leave a comment