~/Projects

Automotive Fan Controller

2026-04-20

I have Bosch 1-137-328-163 ( Specifically Audi A8 ) Radiator fan and i was wondering if i could use it to swap the noisy clutch fan with it and i want to make it modular so i could swap into any car. Research i couldn’t find any documentation or anything related to the fan and how the control signal get sent, also i didn’t have the fan connected to the car, if i had it would’ve been so much easier by reading the control signal using an oscilloscope, so i opted to another method what i did was identifying the cables i there were two thick cables so it safe to assume those are power and ground and two thin cables.

STM32 UART Driver in C

2026-04-19

Overview A minimal UART driver written in C for STM32F4 microcontroller without HAL. Implementation #define USART1_BASE 0x40011000 #define SR (*(volatile uint32_t *)(USART1_BASE + 0x00)) #define DR (*(volatile uint32_t *)(USART1_BASE + 0x04)) #define BRR (*(volatile uint32_t *)(USART1_BASE + 0x08)) #define CR1 (*(volatile uint32_t *)(USART1_BASE + 0x0C)) void uart_init(uint32_t baud) { BRR = 84000000 / baud; CR1 = 0x0000200C; } void uart_putchar(char c) { while (!(SR & 0x80)); DR = c; } Results Works at 115200 baud.