EMCO Compact 5 cnc Turret with dc motor and no feedback

  • hitchhiker
  • Away
  • Elite Member
  • Elite Member
More
02 Mar 2026 18:38 #343739 by hitchhiker
Hi guys

does someone done a retrofit of the compact 5 cnc with turret with dc motor and NO feedback?

my way would be:

add a pyvcp menu to make move from tool position to tool position.

if i reach tool 1 i set with a button that its now tool1.

every move from tool to tool would lock first back and then drive forward to next position... 

turret can rotate forward free. Backward would lock it.
after locking backward reducing power is needed.

i have here a l298n modul and a mesa 7i92 with bitfile adjusted to have pwm and 2 gpios for setting direction.

i cant find a custom library for it. But is this the correct way to do it or i am complete lost? Its not the issue to set tool 1 manual over buttons.

Forward u would use pwm 100%
Backward pwm 60%
and holding against the pawl about pwm 30%

any ideas or help?

thanks

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
03 Mar 2026 00:50 #343762 by tommylight


i have here a l298n modul and a mesa 7i92 with bitfile adjusted to have pwm and 2 gpios for setting direction.

You could start by having a look at the "etch a sketch" config included with LinuxCNC, it is for parallel port so needs changing pin names to Mesa, and it is for L298.
Probably doing some timing stuff in hal using timedelay and/or oneshot and maybe flip-flop ....

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

  • hitchhiker
  • Away
  • Elite Member
  • Elite Member
More
03 Mar 2026 04:27 - 03 Mar 2026 05:39 #343765 by hitchhiker
I got it work with a own component to make 1 move from position to position forwaes with lock backward and reduce pwm.

But the turret can only travel to next position in forward.

If i am on tool 5 and i want tool 1.. i need 2 times the move.
Is it possible to do this in the component with a abs function?

what i mean... i must handle the rollover=

presenttoolslots 6
currenttool is 6
calledtool is 1
Turretmoves = calledtool - currenttool = -5
Commandedmoves= presenttoolslots - (abs) turretmoves

next step is the to count every move.
moved = i++
if moved == commandedmoves
toolchange done

Sounds ok?!

I do the coordination of the forward and backward stuff with 2 time delays. On the end i set the pwm value lower to lock agoinst the pawl with lower current to not blow the dc motor.




Thanks
Last edit: 03 Mar 2026 05:39 by hitchhiker.

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

Time to create page: 0.210 seconds
Powered by Kunena Forum