584,850 active members*
4,518 visitors online*
Register for free
Login

Search:

Type: Posts; User: mcm_xyz

Page 1 of 7 1 2 3 4

Search: Search took 0.00 seconds.

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

    Hello guys

    This thread has become a really nice mess... However, I have to state again, I can not work on this project anymore, I do not have time for this. The source code and schematic I made...
  2. Re: DIY BLDC / DC Motor Servo Drive - ARM MCU (STM32F103C8T6)

    Hello Dale

    Yes I am stupid and I live in an under developed country where we are all stupid. Please do not download my code as it is stupid, you better write your own.
    Please stop attacking me....
  3. Re: dsPIC based Open Source DC Servo Driver in Brushed and BLDC.

    You are almost correct, except that the encoder resolution is not hardcoded, but can be changed with the program I also provide for servo tuning.
    ...
  4. Re: dsPIC based Open Source DC Servo Driver in Brushed and BLDC.

    Well, I did complete and tested the initial schematic, it still lays on my desk at home and works. But I never did design a board (I started but stopped). So I just build it using test PCBs (the ones...
  5. Re: dsPIC based Open Source DC Servo Driver in Brushed and BLDC.

    As requested here are quite all my files on the ARM project (stm32f103)

    As an addition to the provided schematic the pin PB1 can be connected to +3.3V to enter in boot mode, maybe you should add a...
  6. Re: dsPIC based Open Source DC Servo Driver in Brushed and BLDC.

    PD2 and PD3 were together because in my learning curve I used 2 interrupts, one for falling one for raising. In the latest code only Int0 is used, so only PD2. This is explained somewhere in the...
  7. Re: dsPIC based Open Source DC Servo Driver in Brushed and BLDC.

    Hello again!

    I must tell you that you are talking to the author of both the AVR and the later STM32F103 projects with no HALL inputs. And I was not asking for any feature, I was just making a...
  8. Re: dsPIC based Open Source DC Servo Driver in Brushed and BLDC.

    Very nice! Keep up the good work.
    However if I may suggest... You should start with driving the BLDC first. If you will make a DC drive only it's gonna be a little obsolete as BLDC's are way more...
  9. Re: DIY BLDC / DC Motor Servo Drive - ARM MCU (STM32F103C8T6)

    elf and hex file is regenerated if you make some modifications. If you wish to regenerate the hex file do the folowing:

    Delete all contents of Release or Debug folder (depending on what are you...
  10. Re: DIY BLDC / DC Motor Servo Drive - ARM MCU (STM32F103C8T6)

    :)

    I think you got the right baud rate in putty... but the MCU is not running at the right speed. The fuse bits of the AVR do that. They configure how the internal clock of the MCU works. Out of...
  11. Re: DIY BLDC / DC Motor Servo Drive - ARM MCU (STM32F103C8T6)

    There is an eagle schematics. Please check my previous posts, you will find it. but there is no finished board (pcb) from my side. I have no interest in building this servo yet. so no PCB... sorry
  12. Re: DIY BLDC / DC Motor Servo Drive - ARM MCU (STM32F103C8T6)

    PA11 and PA12. I suggest you play a little with STM32CubeMX software... It will give you lots of clues, even source code if you know how to use it... :)
  13. Re: DIY BLDC / DC Motor Servo Drive - ARM MCU (STM32F103C8T6)

    Hello

    Checking the right PPR is easy. Reset mcu, connect to servo tuner software, rotate the motor shaft about 1 complete rotation and you will see the PPR (or a pretty close value there)
    The...
  14. Re: DIY BLDC / DC Motor Servo Drive - ARM MCU (STM32F103C8T6)

    Hello Tandel

    If you got the board to communicate via USB with the Servo Tuner Program it's all ok. Of course it seems there are several methods to flash the stm32. But you did just fine!
    In the...
  15. Teoretically 33A. Vmax that can be measured is...

    Teoretically 33A. Vmax that can be measured is 3.3V multiplied by 0.1 ohms. You do not need any additional current convertor.

    The max error parameter does what you asked for. When encoder counter...
  16. Re: DIY BLDC / DC Motor Servo Drive - ARM MCU (STM32F103C8T6)

    Yes, RC brushless motors can be used... However I've seen they are basically build for high rpm speeds...

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

    New firmware 1.2 (Zip contains source and hex file, bootloader binary file, and dfu firmware update file for those who want to upgrade via Servo Drive Tuner program)
    Thanks to Pekkas suggestion, PID...
  18. Re: DIY BLDC / DC Motor Servo Drive - ARM MCU (STM32F103C8T6)

    Every binary is included. All answers in my previous posts. Please do not ask me how to setup eclipse and stuff... Thanks for understanding.

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

    I think you were quite right. I was about to move the PID update method to a timer. The idea of it running freely is is to check the best possible speed for executing it and to improve the code.
    ...
  20. Re: DIY BLDC / DC Motor Servo Drive - ARM MCU (STM32F103C8T6)

    Congrats on your project Pekka! I've looked in the code and I've seen many improvements. I think you have increased the PID frequency a bit...
    I still think it's a good idea to add USB support. I...
  21. Re: DIY BLDC / DC Motor Servo Drive - ARM MCU (STM32F103C8T6)

    I think using a dedicated encoder buffer is a good idea.
    Just tell me what u need changed in the code. But why do you need the 100pin mcu? You need more timers or?

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

    Do you have access to an oscilloscope? Even a very slow pocket one like mine... Please check how the signal from the encoder looks like on the pins on the MCU (after opto or whatever circuitry you...
  23. Re: DIY BLDC / DC Motor Servo Drive - ARM MCU (STM32F103C8T6)

    Plenty of examples on the net on how to setup eclipse or other C environment in order to compile... setting up stlink is easy. Install STLink utility and plug it in. Connect the 4 wires from the...
  24. Re: DIY BLDC / DC Motor Servo Drive - ARM MCU (STM32F103C8T6)

    Just to be clear... I do not think you can use the L6203 to drive a BLDC that is triphasic still.
    Current sensing is very important. Without it you will blow circuit tracks, fuses and eventually...
  25. Re: DIY BLDC / DC Motor Servo Drive - ARM MCU (STM32F103C8T6)

    Well with a 4000 PPR encoder I was able to achieve about 3000RPM (counting both channels of the encoder) for the motor... That means about 200KHz input from the encoder... I would say the step input...
  26. Re: DIY BLDC / DC Motor Servo Drive - ARM MCU (STM32F103C8T6)

    You are correct! That is in fact what they are selling with the name DC Servo Motor.
  27. Re: DIY BLDC / DC Motor Servo Drive - ARM MCU (STM32F103C8T6)

    Hello again!

    The PID algorithm is very very simple. The output of the PID will be the duty that will be applied to PWM channels (basically the power applied to motor. Below is the basic algorithm....
  28. Re: DIY BLDC / DC Motor Servo Drive - ARM MCU (STM32F103C8T6)

    Hello guys!

    Firmware 1.1 is here! We have support for both BLDC and DC motors now. Check the video with my new(used) DC servo in action.

    https://www.youtube.com/watch?v=A_AaGMXA27Y

    You have...
  29. Re: DIY BLDC / DC Motor Servo Drive - ARM MCU (STM32F103C8T6)

    You will have to respect the value of the crystal when using a precompiled firmware. If not all things that are time dependent will not work (like UART - serial communication).
    From what I...
  30. Re: DIY BLDC / DC Motor Servo Drive - ARM MCU (STM32F103C8T6)

    Hello Tandel

    I do not think you broke any ATTiny2313... You probably put them in a state that they wont talk to your programmer... you probably need an oscillator and to power applied to the...
Results 1 to 30 of 191
Page 1 of 7 1 2 3 4