Span2 captura de pantalla 2014 09 20 10.53.45

Miguel Sánchez

Activity

Commented on DC motor closed-loop control software almost 2 years ago
Hi @keyvin_23, Ten en cuenta que las expresiones tipo "PIN* & *" tienen que cambiar de unas placas a otras. El ESP8266 es mucho más rápido que el arduino y se puede emplear digitalRead o digitalWrite en vez de lo anterior, pero no dispone de PWM por hardware, lo que puede generar pequeños movimientos erráticos de cuando en cuando. El codificador de 5000ppr genera muchas interrupciones por segundo a elevadas revoluciones y eso puede ser un problema que limite la máxima velocidad de operación.
Updated Sous vide circulator storage support almost 2 years ago
Updated Sous vide circulator storage support almost 2 years ago
Updated Sous vide circulator storage support almost 2 years ago
Published Sous vide circulator storage support almost 2 years ago
Commented on DC motor closed-loop control software almost 3 years ago
Hi @naj_tan, This is a position control on one axis. Driving a car may require one position control for the driving wheel and a second control for the car speed (this latter may be done with a position control too). If you want your car to go straight and then turn you will need to change the reference for each one of the two control loops in a sequence that satisfies your needs (ie reaching a certain speed when going straight ahead and rotating where you need it to). No code changes are needed if both axis are position control loops.
Commented on DC motor closed-loop control software almost 3 years ago
I like to try things. That includes commercial brushless servos and hybrid (stepper) servos. The reason is that you need to know where the inflection point is: like the bread, there are things that your cheaper way to the product is to buy a commercial unit (a few people I know still bake their own bread, but they are a minority). Tinkering is fun but only if there is an edge. You can see here some tests with dcservo and s-curve motion http://fightpc.blogspot.com/2018/04/testing-sinusoidal-s-curves.html
Commented on DC motor closed-loop control software almost 3 years ago
@Khalid, If you use GRBL/Mach3/etc you do not need dcservo to have more features. S-curve on dcservo can perform a motion pattern by itself without the need of an additional motion controller. Not useful if you already have one.
Commented on DC motor closed-loop control software almost 3 years ago
A 192 CPR will cause 192*4=768 interrupts per revolution. You can meter a movement and check how long did it take and the initial and final location. The <difference in the encoder counts>/768 will tell you the number of revolutions. That divided by the elapsed time of the move will tell you the number of average RPS. Multiply that by 60 to get the RPM. Of course, that is an average value. Peak RPM is probably double than that. RPM depends on motor voltage, load, and motor Kv constant.
Commented on DC motor closed-loop control software almost 3 years ago
I was not concerned about braking but that may be needed for some use cases. You can enable a brake pin when error is below a given threshold.
Commented on DC motor closed-loop control software almost 3 years ago
Hi, @Khalid There are several delays in Processing code. These values worked ok for me, but they may be too short for your use case, thus preventing the data to be gathered and printed. Try make them longer to see if it helps.
Commented on DC motor closed-loop control software about 3 years ago
It is a position control, motor speed is only limited by the error magnitude and the proportional gain.
Commented on DC motor closed-loop control software about 3 years ago
The faster the board the more motors you can handle. El 18 mar. 2018 4:44, "YouMagine - Supercomputer" < supercomputer@youmagine.com> escribió:
Commented on DC motor closed-loop control software about 3 years ago
The UNO can handle a single motor, maybe two if they are not very fast. But the e coder you mentiob seems a resolver. I have not coded for that though it can do the job too. El 18 mar. 2018 4:44, "YouMagine - Supercomputer" < supercomputer@youmagine.com> escribió:
Commented on DC motor closed-loop control software about 3 years ago
@Eugene Nothing available at the moment. Connection info is listed on the source code. It is usually four signals, two for the encoder and two for motor controller (sometimes three depending on the controller).
Published Shower hair catcher over 3 years ago
Commented on DC motor closed-loop control software over 3 years ago
I have found a piece of Mega code for a particular setup but I guess you will easily find out how to adapt it to yours https://github.com/misan/dcservo/blob/master/cdservoMega_magneticEncoder_brushlessMotor.ino