11
votes
Accepted
Quadcopter PID Algorithm
The glaring issue I see at the moment is that you are forcing polarity on the I and D terms. In general, you are using a lot of sign checks, sign assignments, and conditional programming.
None of that ...
4
votes
Impact of using PID Output as a Change (Delta) vs Absolute
All PID controllers are relative in the sense that they act on a reference error, which is the difference between the reference signal and the sensed signal. Assuming the integral error starts at the ...
4
votes
Should I use an arduino to control my balancing robot's motors?
If you want to have a good balancing, PID loop timing is very important. Standard Raspberry OS, like Raspbian can't guarantee you any precise timing, so once your loop period may be 10ms, once it can ...
3
votes
Will a change of motor driver improve motor performance?
If you want to test the motor, just apply a DC source to it directly rather than using the l298.
A 12V car battery is a source you likely have access to that can supply enough current so you can test ...
3
votes
How can I increase the resolution of a PWM signal?
You won't ever get 'exactly' 2042.8878 RPM, so going with your measurement accuracy I will assume you mean 2042.8878 +/- 0.0005 RPM. This is approximately an error of 1 part in 4 million. So let's ...
2
votes
How to control a dc motor
Though most of this has already been answered, there are some other core concepts that are still important for you and future people to know, as well as some mistakes in the other answer despite ...
2
votes
Pulse Position Modulation as used in RC controls
Multiple channels are time sliced onto "one-wire". The real wire count is usually three. Typically there is a positive voltage wire (may not be there depending on whether both ends have their own ...
2
votes
Alternative to BeagleBone Black for Node.js based remote control project?
In addition to the RPi, as TobiasK suggests, the Arduino boards have:
PWM support;
USB support is possible with the addition of an inexpensive USB shield, and;
node.js is possible, see:
Arduino ...
2
votes
how to sync the timer in control system with ROS?
Your question kind of boils down to, what is real time ?
In the end real time is what you want/specify for your system to work, whether it be hard real time or soft real time.
In practice ROS is ...
2
votes
PID control brushed motors via PWM using Encoder Clicks at SetPoints/Measurements
A PID controller takes an error as input (the encoder ticks) and yields an output whose unit of measurement $O$ (the PWM percentage, usually) is uncorrelated with the unit of measurement $I$ of the ...
2
votes
What network protocol/control units are motor-based robots controlled with?
In modern industrial motion control, the communication between the controller (motion controller, robot controller, CNC contoller) is typically done with:
Profinet
CanOpen
Sercos
EtherCAT
2
votes
How to handle motor stall zones in differential drive point-forward go to goal algorithm?
For a similar problem (TT motors can't start the bot rolling on a carpet) I have been toying with the idea of setting up PID control for the angular velocity. If it stays stuck, the integral term ...
1
vote
Robotic arm simulation in MikroC
:EDIT:
Here's (I think) the solution. For servo control, typically you would want a 50 Hz frequency. For that, you'd want
PWM2_Init(50);
Then you'd want a range of ...
1
vote
Feed-forward controller with lookup table
I don't have time to read the paper right now, but yeah generally feed-forward just means providing the signal you expect will give you the output you want. That would mean you have some advance ...
1
vote
What is the noise in this PWM signal?
After a bit more reading and thinking, I think I’ll answer my own question. I’d like feedback on my logic if you have it.
My logic is this:
the PWM signal from the MCU is clean (evidenced by the ...
1
vote
PID control brushed motors via PWM using Encoder Clicks at SetPoints/Measurements
Output of a PID controller is a some kind of force ratio that will be applied to your motor. And the input of your PID is the error of what you are trying to control (velocity, position, torque etc.) ...
1
vote
How to control the speed of servo?
Vary the voltage to the servo.
If your servo operates full power at 5V at 2.5V it will operate at half speed.
If your FPGA can output an analogue signal you could use that to drive the motor speed, ...
1
vote
BBC Micro bit PWM link to CC3D quad controller
Ok I think I'm getting somewhere. Two issues found:
When the Micro:bit runs off two AA batteries the 3v output can drop significantly as the batteries run down. The CC3D wasn't liking the even lower ...
1
vote
Accepted
Arduino output SPWM using Matlab
It seems that all the code you wrote is in Matlab, and at each cycle it should communicate via the USB port with arduino to turn the pin on or off. This take a lot of time.
The fastest solution ...
1
vote
Alternative to BeagleBone Black for Node.js based remote control project?
You could also consider the ESP8266. It can be programmed directly with the Arduino Developers Kit (see ESP8266 Arduino). In that sense the developer community overlaps heavily with that of the ...
1
vote
Alternative to BeagleBone Black for Node.js based remote control project?
You will find only two boards with a larger developer community and one of them is supporting node.js, PWMs and USB-interfaces. It is the raspberry Pi.
1
vote
Controlling digital servos
I think people are getting their mS and uS mixed up! Generally it was always between 1mS and 2mS but to get the full range or extended range its said to be 0.8mS and 2.2mS (or 800uS to 2200uS) not 800 ...
1
vote
How can I increase the resolution of a PWM signal?
The PWM signal should not be the limiting factor in achieving the accuracy you seek. For some applications, PWM signals are chopped > 100 kHz, so, given the correct DSP or microcontroller output to ...
1
vote
Accepted
How to use specific ESC,BLDC motor through Arduino Uno R3?
An ESC needs to have the throttle limits adjusted before you can use it. While there are many options you can set from a programming menu (see page 4 of this PDF for reference), the throttle ...
1
vote
Quadcopter force/torques duty cycle conversion
Each axis input is a linear combination of the control input and the sensor (gyros and accelerometers) for that axis. Not necessarily answering your question, but add this to your matrix
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
pwm × 44motor × 16
arduino × 9
pid × 8
quadcopter × 6
servomotor × 6
control × 5
esc × 4
mobile-robot × 3
robotic-arm × 3
microcontroller × 3
rcservo × 3
ros × 2
raspberry-pi × 2
brushless-motor × 2
power × 2
kinematics × 1
kalman-filter × 1
inverse-kinematics × 1
imu × 1
wheeled-robot × 1
matlab × 1
irobot-create × 1
manipulator × 1
stepper-motor × 1