An automatic oil pump control system that monitors oil pressure and maintains proper levels in a crankcase
This project was developed to solve a real-world problem: maintaining proper oil levels in a crankcase. The system automatically activates an oil reservoir pump when the oil pressure light indicates low levels, while also providing a manual override option for maintenance or testing purposes.
At the heart of the system is an STM32 microcontroller that monitors the oil pressure sensor, controls the pump operation, and provides user feedback through status indicators. The design prioritizes reliability and safety for this critical mechanical system.
The first step in creating the Oil Pump Control System was designing the electronic circuit. This schematic incorporates the STM32 microcontroller, input sensing circuitry for the oil pressure light, and driver circuits for controlling the pump motor. The design also includes status indicators and a manual control interface.
Schematic design showing the complete circuit for the oil pump control system
The circuit design includes several key features:
With the schematic completed, I developed the PCB layout. The design needed to be compact, ruggedized for an automotive environment, and include proper thermal management for the switching components that control the pump motor. Special attention was paid to ground plane design and noise immunity.
PCB layout showing component placement and routing for optimal performance
The PCB design process addressed several important considerations:
The final design step was generating a 3D model of the PCB to verify component clearances, connector accessibility, and mounting options. This visualization helped ensure that the board would fit properly in its intended location and that all components would have adequate clearance.
3D visualization of the PCB showing component placement and board dimensions
The 3D modeling process helped identify and resolve several design considerations:
After completing the hardware design, I developed the firmware for the STM32 microcontroller. The software implements the control logic that monitors the oil pressure light, manages the pump operation, and handles the manual override functionality.
The control logic includes several key features:
The completed system provides reliable, automated oil level maintenance that reduces the risk of engine damage from low oil levels while requiring minimal user intervention.
The Oil Pump Control System has been successfully implemented and provides several key benefits:
This project demonstrates how custom electronics can provide elegant solutions to mechanical problems, improving reliability and reducing maintenance requirements.