587,699 active members*
3,626 visitors online*
Register for free
Login
IndustryArena Forum > OpenSource CNC Design Center > Open Source Controller Boards > DIY BLDC / DC Motor Servo Drive - ARM MCU (STM32F103C8T6)
Results 1 to 20 of 490

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Posts
    115

    Re: DIY BLDC / DC Motor Servo Drive - ARM MCU (STM32F103C8T6)

    Quote Originally Posted by Holzwurm56 View Post
    Hi Punisher454,
    please show us your code and schematic.

    Hans
    Okay,
    here is a very simple test program I used to drive a brushless motor that was in an actuator for something I was working on. It had 3 hall sensors built in.
    To determine the order in which this thing operated I made a degree wheel and hot glued it to the motor shaft. then I read the hall sensors and turned the shaft by hand and recorded the beginning and ending positions of each sensors on-off states, next I applied power to the motor's coils in all combinations and recorded the shaft position of each combo.
    using this data I was able to come up with a commutation table.

    The program simply reads the hall sensors and generates a value based on the reading. there are 6 valid states and two invalid states. In testing an invalid state was never detected. The hall sensor state is checked against the table in a select-case method. I am using Infineron BTN79xx or BTS79xx fets which contain a p-channel and N-channel together with some protection logic. Extremely simple, definitely far simpler ,and also about the same final price high side driver schemes.
    I had this working with a pot on an ADC channel at one point, but this version is just using a fixed pwm value of 20 which IIRC was a very low speed rotation.
    This was written in Bascom and running on a mega168 at 8mhz. I'm sure this could be done much more elegantly in C++ (maybe even stm32duino) on a much faster 32bit ARM.

    I no longer have a schematic for this, but it's irrelevant. there were 6 basic outputs, 3 pwm's for the enable lines of the fets, and 3 lines to determine the polarity of the fets.

  2. #2
    Join Date
    Oct 2005
    Posts
    255

    Re: DIY BLDC / DC Motor Servo Drive - ARM MCU (STM32F103C8T6)

    nice work all!!
    Nice to see people that can work together.
    Is there any intention to have different control modes? eg possition - speed - torque.
    regards to all
    Paul

Similar Threads

  1. Replies: 3
    Last Post: 02-11-2015, 06:07 AM
  2. Replies: 0
    Last Post: 10-21-2014, 09:29 PM
  3. Servo Drive AC + servo motor for car steering wheel simulator
    By yusukeand in forum Servo Motors / Drives
    Replies: 6
    Last Post: 01-10-2014, 09:06 AM
  4. VCE-750 with BLDC Servo - X Axis Servo fault
    By kostner in forum Haas Mills
    Replies: 6
    Last Post: 10-23-2011, 08:09 PM
  5. Sell Servo Motor, Servo Drive by GSKcnc.com from China
    By salecnc@hotmail in forum News Announcements
    Replies: 0
    Last Post: 06-03-2008, 08:55 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •