You may not see this, but thank you for developing a safe system. Avoiding integral windup and having a cut-off throttle value has probably kept me out of dangerous situations while learning PID with a larger Quad Copter.
So awesome videos , but i have a question is why you use analogWrite for the brushless instead of using servo.write in servo.h , that can transmit the PPM to the motor ?
my drone motors do not turn nor do I hear the ESC. when I plug just the ESC to the receiver all motors work fine. The code is the exact same. What may be an issue?
Hi, I am using an Arduino Nano instead of the teensy. When I try the code, the IDE tell me that the function analogWriteFrequency and analogResolution are out of the scope. Is this due to the fact that the PulsePosition Library suits for Teensy only ? And if yes, how should I change my code to change the PWM frequency to 250 [Hz] for the Arduino Nano ? Thank you in advance and awesome video !
Instead of trying to control the motors with PulsePosition library, use the Servo library. It works with ESCs. You can use the write function to send pwm signals to the esc to spin the motor at different speeds. You can set the range to 1000-2000 in the attach method and then write values between 0 and 180 to the servo object
@carbonaeronautics appreciate the well organized and detailed approach you took in this project, the sheer amount of time & effort is admirable. I have a question regarding the values you choose for the clamping saturation limit for the integral, 400 & -400, how did you calculate this value? are those specific to the motors you use? Thanks in advance
First i want to thank you for all of this efforts, i just wanna ask about when you wanted to convert from deg/sec to micro sec you multiplied motorinputs with 1.O24 and i don't know from where did it comes?!
Cool project sir👍, I want to ask something. Where did you know the length of one iteration time in your loop is 4 ms (for Ts value of I and D term)? and also how to calculate it?
Hi! Can anyone please explain me why are the motor inputs multiplied by 1.024? I know 1024 is the range of 10-bit resolution but sir is saying that this multiplication converts it into 12-bit. 😮😮. Man!! And, I don't get to know from any equation in the world 🌍 that 1.024 i.e. 1024/1000 multiplied by your motor inputs in microseconds will result in a 12-bit resolution.
Yes that is possible with some small changes to the code, however it might be easier to use the Arduino nano in order to avoid cable connections as much as possible. Also know that the Arduino uno or nano are not powerful enough for the more complex flight controllers we will see later on.
You may not see this, but thank you for developing a safe system. Avoiding integral windup and having a cut-off throttle value has probably kept me out of dangerous situations while learning PID with a larger Quad Copter.
So awesome videos , but i have a question is why you use analogWrite for the brushless instead of using servo.write in servo.h , that can transmit the PPM to the motor ?
my drone motors do not turn nor do I hear the ESC. when I plug just the ESC to the receiver all motors work fine. The code is the exact same. What may be an issue?
I got the same issue. did you manage to solve it?
Hi ! I have a question. How can I change the rotation of the motors if I have alerady soldered them ?
I got a issue where after I bend the gyroscope it stops working any inputs
Hi, I am using an Arduino Nano instead of the teensy. When I try the code, the IDE tell me that the function analogWriteFrequency and analogResolution are out of the scope. Is this due to the fact that the PulsePosition Library suits for Teensy only ? And if yes, how should I change my code to change the PWM frequency to 250 [Hz] for the Arduino Nano ?
Thank you in advance and awesome video !
Same question here !
Instead of trying to control the motors with PulsePosition library, use the Servo library. It works with ESCs. You can use the write function to send pwm signals to the esc to spin the motor at different speeds. You can set the range to 1000-2000 in the attach method and then write values between 0 and 180 to the servo object
@carbonaeronautics appreciate the well organized and detailed approach you took in this project, the sheer amount of time & effort is admirable.
I have a question regarding the values you choose for the clamping saturation limit for the integral, 400 & -400, how did you calculate this value? are those specific to the motors you use?
Thanks in advance
First i want to thank you for all of this efforts, i just wanna ask about when you wanted to convert from deg/sec to micro sec you multiplied motorinputs with 1.O24 and i don't know from where did it comes?!
Cool project sir👍, I want to ask something. Where did you know the length of one iteration time in your loop is 4 ms (for Ts value of I and D term)? and also how to calculate it?
guess he just set the loop time as most ESCs run at 250Hz
And T=1/f
@@Tom-wd2ee Ohh I see, thanks
@@Tom-wd2eewhat is T=1/f mean?
@@steve00alt70 mathematical relation between frequency and the period
awesome tutorial
very detailed and informative,
thanks 👍👌
Hi! Can anyone please explain me why are the motor inputs multiplied by 1.024? I know 1024 is the range of 10-bit resolution but sir is saying that this multiplication converts it into 12-bit. 😮😮. Man!! And, I don't get to know from any equation in the world 🌍 that 1.024 i.e. 1024/1000 multiplied by your motor inputs in microseconds will result in a 12-bit resolution.
Could one disable the throttle and roll of a drone controlling system to make something move using just two degrees of freedom instead of 4?
I'm sorry if the question sounds a bit basic. I just need the info because toy car controllers have a very small distance range for the application.
awesome. Keep doing similar😃
Hi sir! Can i use Arduino Uno R3 instead of Teensy
Yes that is possible with some small changes to the code, however it might be easier to use the Arduino nano in order to avoid cable connections as much as possible. Also know that the Arduino uno or nano are not powerful enough for the more complex flight controllers we will see later on.
@@carbonaeronauticsThank you very much for your kind comments, best of luck to you 😁
hi can i use arduino uno to do the codes?
really apricate ur work
u got another subscriber and a true fan
Thanks a lot! 😀
Hi sir, i'm using ESP32-S. It's bad for this project ?
Never. I am using as well
i can't find the full code on github please someone help
Me too
please use a class for all of this instead of having 3 long difficult to follow lines in the same area
i use the teensy 3.2 output the motor it only works on pins 3 and 4, can other pwm pins really not work on teensy 3.2 ?
You can use pins 9 and 10 if you want to use teensy 3.2, instead of pins 1 and 2!
@@carbonaeronautics thanks
Can we replace brushless motor with brushed motor and esc with mosfets for controlling brushed motors without changing the code