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...
Type: Posts; User: mcm_xyz
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...
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....
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.
...
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...
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...
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...
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...
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...
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...
:)
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...
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
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... :)
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...
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...
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...
Yes, RC brushless motors can be used... However I've seen they are basically build for high rpm speeds...
Mihai
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...
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
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.
...
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...
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
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...
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...
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...
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...
You are correct! That is in fact what they are selling with the name DC Servo Motor.
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....
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...
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...
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...