So we'll explained! It's almost therapeutic! Pitty that you haven't posted anything for over a year now. Hope to see you soon again cuz I really enjoyed this.
Hello, i have one of these cheap aluminium gimbals with 2208 motors and cant get them to smoothly rotate. it locks in their magnetic position while rotation, do i have to buy another motor?
instead of manually finding the offset could you have the arduino calculate the correct offset because you know at the start of the code the electrical revolution is at zero so you could measure the mechanical offset from the encoder and the difference between the two would be the offset, or have i got something wrong?
Lochlan bogaers yes! You can :) you can energize the coils at index = 0 and capture the value of the sensor and then apply it as offset or something similar, if you make this “automatic offseting” can you post it on the arduino forum for this thread? Link in description, would be awesome to have the community add to this project :) thanks for your great comment
hey thanks for the super informative series! i just noticed that in your code for the synchronizing part, if u add 18 as your offset, doesnt that add up to your phase A step count always? my question is, since you put the 18 as offset, for each loop, instead of moving one step in the sin table wouldnt you be moving 18 steps?
Correct! But it wraps around the maximum value of 48 so it is an offset that is consistent, as it makes up for the physical offset between the rotor and the sensor’s absolute zero. What I mean is that when the motor is assembled, the sensor used for providing shaft position feedback is not synced with a consistent position of the rotor, thus you need to account for that using a unique offset for each motor. Hope this is clear now :)
Hello I would like to know if I can control a brushless motor of about 2000kv at the same speed as you did or a speed close to that with this L6234 board?
Antonio Claudio I would think so, but im not too sure, you could try using the board we recommend on the link (see it in the latests videos), uses higher current MOSFETS, check the item on our ebay link...
Hello! One question. Can I know the exact position of the bldc motor shaft and give instructions of movement just with hall sensors? Or do I need an encoder?
well , i dont own any of the hardware , nor have i ever built something like in this video , but based on my few years of experience i can tell u that at least for slow precision movements a hall sensor would kinda be useless , at least cheap ones , because most of them only show u the N S pole and not really the intensity of the magnetic field such that u could measure the rotor position at weird angles between its magnets ... Soo...u could do something with it , but it makes more sense to have a live feed of the exact mechanical position of the shaft , without implementing , i dont know, some crazy ''counting the magnets ' function that ensures not skipping steps or something . U could actually use one for lets say rougher angle rotations , like if u control it kinda step by step (it is called trapezoidal control) and for example if u have a 6 pole rotor it will move 60 degrees per step and u could then count the steps or something with a hall sensor rather then spending money on an encoder , but an encoder can be used at a lot more things , so thats that .. and sorry for the long response :))
@@juanpablocanguro You are reading Angle sensor's PWM output through PulseIn function which is interrupt driven, I think. So I expect it to be pretty fast. In my experiment the sample rate from the SPI angle sensor was too low so the motor was oscillating. The speed of the motor was greater than the sampling speed in other words.
@@LiliumJSN hi. pulseIn() is not interrupt driven and will take as long as the pulse itself is. So, depending on the sensor, it may also be terribly slow
Your electrical angle is not shown correctly. Mechanical and electrical angle should have the same height. I built my own field oriented control from scratch Good video though!
Just read all the 3 parts, would like to thank you for all of this ; very clear, lot of time saved.
So we'll explained! It's almost therapeutic! Pitty that you haven't posted anything for over a year now. Hope to see you soon again cuz I really enjoyed this.
Brilliant videos, I have watched all 4 parts. Thank you for a very clear and detailed explanations. Cheers!
Where can I find the control code for the Arduino?
Simple foc
How to control servo pmsm sir with 46v and 5-10amper
actually, we can change the direct by changing the value of phaseB to phaseC and C to B.
3:26 Is there a link to the spread sheet and software used to fill in spreadsheet? looked through patreon and videos
Hello, i have one of these cheap aluminium gimbals with 2208 motors and cant get them to smoothly rotate. it locks in their magnetic position while rotation, do i have to buy another motor?
instead of manually finding the offset could you have the arduino calculate the correct offset because you know at the start of the code the electrical revolution is at zero so you could measure the mechanical offset from the encoder and the difference between the two would be the offset, or have i got something wrong?
Lochlan bogaers yes! You can :) you can energize the coils at index = 0 and capture the value of the sensor and then apply it as offset or something similar, if you make this “automatic offseting” can you post it on the arduino forum for this thread? Link in description, would be awesome to have the community add to this project :) thanks for your great comment
@@juanpablocanguro will do, thanks for this awesome resource
Can you please help me to make a code for DMX stapper motor with encoder
How about Bldc with hall sensor??
Why doesnt the motor heat up or burn when you hold it still? I burned my arduino earlier by stalling my dc motor lol
hey thanks for the super informative series! i just noticed that in your code for the synchronizing part, if u add 18 as your offset, doesnt that add up to your phase A step count always? my question is, since you put the 18 as offset, for each loop, instead of moving one step in the sin table wouldnt you be moving 18 steps?
Correct! But it wraps around the maximum value of 48 so it is an offset that is consistent, as it makes up for the physical offset between the rotor and the sensor’s absolute zero. What I mean is that when the motor is assembled, the sensor used for providing shaft position feedback is not synced with a consistent position of the rotor, thus you need to account for that using a unique offset for each motor. Hope this is clear now :)
Is it gimbal 80kv motor
Hello I would like to know if I can control a brushless motor of about 2000kv at the same speed as you did or a speed close to that with this L6234 board?
Antonio Claudio I would think so, but im not too sure, you could try using the board we recommend on the link (see it in the latests videos), uses higher current MOSFETS, check the item on our ebay link...
Hello! One question. Can I know the exact position of the bldc motor shaft and give instructions of movement just with hall sensors? Or do I need an encoder?
well , i dont own any of the hardware , nor have i ever built something like in this video , but based on my few years of experience i can tell u that at least for slow precision movements a hall sensor would kinda be useless , at least cheap ones , because most of them only show u the N S pole and not really the intensity of the magnetic field such that u could measure the rotor position at weird angles between its magnets ... Soo...u could do something with it , but it makes more sense to have a live feed of the exact mechanical position of the shaft , without implementing , i dont know, some crazy ''counting the magnets ' function that ensures not skipping steps or something . U could actually use one for lets say rougher angle rotations , like if u control it kinda step by step (it is called trapezoidal control) and for example if u have a 6 pole rotor it will move 60 degrees per step and u could then count the steps or something with a hall sensor rather then spending money on an encoder , but an encoder can be used at a lot more things , so thats that .. and sorry for the long response :))
Hello, how did you manage the DaQ on excell?
Christoforos Rekatsinas its a macro developed by Parallax, google it: PLX DAQ ;)
Beautiful work. What's the sampling rate of the position?
Dimitris Karapatis im not sure, i guess its affected by whether or not im reporting data to the debug terminal... how would you measure it?
@@juanpablocanguro You are reading Angle sensor's PWM output through PulseIn function which is interrupt driven, I think. So I expect it to be pretty fast. In my experiment the sample rate from the SPI angle sensor was too low so the motor was oscillating. The speed of the motor was greater than the sampling speed in other words.
Dimitris Karapatis ill try to monitor it!
@@LiliumJSN hi. pulseIn() is not interrupt driven and will take as long as the pulse itself is. So, depending on the sensor, it may also be terribly slow
Hello 600
Your electrical angle is not shown correctly. Mechanical and electrical angle should have the same height.
I built my own field oriented control from scratch
Good video though!