Optical encoders with DC motors

More
6 years 2 months ago #180185 by Skec
Is there a way to control DC motor without encoder using L298N?

There are enable pin, and 2 pins that determine rotation direction. Speed could be controlled manipulating enable pin..I suppose the majority is controlled with pulses. But still dare to ask..

Best!

Please Log in or Create an account to join the conversation.

More
6 years 2 months ago - 6 years 2 months ago #180198 by tommylight

Skec wrote: Is there a way to control DC motor without encoder using L298N?

Yes using PWM, but there would be no speed control.
Last edit: 6 years 2 months ago by tommylight. Reason: typo

Please Log in or Create an account to join the conversation.

More
6 years 2 months ago #180200 by Skec
Meaning motor would spin at MAX? or is it possible to set some constant velocity?

Please Log in or Create an account to join the conversation.

More
6 years 2 months ago #180202 by tommylight

Skec wrote: Meaning motor would spin at MAX? or is it possible to set some constant velocity?

No, it would adjust the speed OK but would not keep the sped when the load changes, and that speed would be dependant on the voltage supply to the drive depending on the motor KV value.

Please Log in or Create an account to join the conversation.

More
6 years 2 months ago #180204 by Skec
nice! That is sufficient for me. I want to drive small dvd rom dc motors, that pushes out the shelf for CD/DVD. I assume I could use Etch example from LinuxCNC library, and modify code so, that there is no more encoder part.(?)

Please Log in or Create an account to join the conversation.

More
6 years 2 months ago #180209 by tommylight
Using spindle PWM should be much easier. Set up a spindle using stepconf, wire the L298 inputs to the spindle parallel port output and it should run. You can also use the spindle-on pin to enable and disable the L298

Please Log in or Create an account to join the conversation.

Time to create page: 0.247 seconds
Powered by Kunena Forum