This application note describes a fully working and highly flexible software application for using the dsPIC30F to control brushless DC (BLDC) motors without position sensors. The software makes extensive use of dsPIC30F peripherals for motor control. The algorithm implemented for sensorless control is particularly suitable for use on fans and pumps. The program is written in C and has been specifically optimized and well annotated for ease of understanding and program modification.