Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login
    1. Home
    2. iptronica
    • Profile
    • Following 0
    • Followers 1
    • Topics 2
    • Posts 7
    • Best 0
    • Controversial 0
    • Groups 0

    iptronica

    @iptronica

    0
    Reputation
    6
    Profile views
    7
    Posts
    1
    Followers
    0
    Following
    Joined Last Online

    iptronica Unfollow Follow

    Latest posts made by iptronica

    • Direct Connect Spindle to Duet Board - Solution for SoftStart

      I'm using duet board to recorver old CNC machines. In some of my implementation I use heater or bed output to directly drive the spindle motor...

      So if spindle motor don't takes to much power when runing, if i start it imediatly at full power i'll notice some voltage drop in porwer source, and depending on power source maybe voltage can be lower then minimum voltage needed to get all working properlly.

      So one solution was put a "bigger" and more expensive power source. But makes no sense once it will only be necessary when I turn ON spindle.

      My solution, that i wanna share with all, is to implement a "soft start" spindle, by incresing PWM output until reach the speed requested.

      I just chenge SetRpm() function in Spindle.cpp file in firmware:

      void Spindle::SetRpm(float rpm)
      {
      	const float pwm = abs(rpm / maxRpm);
      	if (rpm >= 0.0)
      	{
      		spindleReversePort.WriteAnalog(0.0);
      		//add by IPTRONICA for soft start
      		for (uint8_t spindlestep=4;spindlestep > 0; spindlestep--) {
      			const float step_pwm=(pwm/spindlestep);
      			if ( step_pwm >= 0.20) {
      				spindleForwardPort.WriteAnalog(step_pwm);
      				delay((spindlestep)*200);
      			}
      		}
      	}
      	else
      	{
      		spindleForwardPort.WriteAnalog(0.0);
      		//add by IPTRONICA for soft start
      		for (uint8_t spindlestep=4;spindlestep > 0; spindlestep--) {
      			const float step_pwm=(pwm/spindlestep);
      			if ( step_pwm >= 0.20) {
      				spindleForwardPort.WriteAnalog(step_pwm);
      				delay((spindlestep)*200);
      			}
      		}
      	}
      	currentRpm = configuredRpm = rpm;
      }
      

      Hope this will contribute to project, and maybe someone can easy create a M??? P? parameter to define a soft start time to put in config.g

      posted in CNC
      iptronicaundefined
      iptronica
    • RE: Custom Duet Maestro Step Drivers Enable Pin allways off

      That is, just upload 3.2Beta4 and Enable Line in ON now...

      So in did MAESTRO Firmware expect to have 5 step drivers, or else it don´t turn it on....

      Another way, that should work, can be made by join E0 and E1 uart lines to X.

      Thank you for all support....

      Now is time for my contribution to project, I've added a simple feature to spindle in CNC mode and will publish it in the CNC forum section.

      posted in Hardware dev
      iptronicaundefined
      iptronica
    • RE: Custom Duet Maestro Step Drivers Enable Pin allways off

      @iptronica I only assembly 3 step drivers for X Y and Z...
      and left empty E0 and E1

      Here a picture showing a assembled PCB, and the green wire in middle to put EN line at low level

      IMG_20201210_110423.jpg

      posted in Hardware dev
      iptronicaundefined
      iptronica
    • RE: Custom Duet Maestro Step Drivers Enable Pin allways off

      @dc42 Yes M122 report correct voltage! Is there any way to know if drivers initialization over SPI or UART is successfully?
      e9153107-a3c1-4809-a9f1-ac4874d3571d-image.png
      573395d6-4c61-4502-b018-cf8974cf803e-image.png

      posted in Hardware dev
      iptronicaundefined
      iptronica
    • RE: Custom Duet Maestro Step Drivers Enable Pin allways off

      @bearer Ok thank you for your reply, i'll investigate "again" all solders... Was a bad luck have a solder issue in 5 pcbs... but we nwvwe know!

      posted in Hardware dev
      iptronicaundefined
      iptronica
    • RE: Custom Duet Maestro Step Drivers Enable Pin allways off

      @bearer yes I made pcb with kiCAD files in github... And I'm using original firmware... I build 5 pcb and all have same issue... In one pcb I cut the trace and solder a wire directly to GND and I get all Steppers working.

      So I was thinking if problem was in some first step I should make once it is a blank microprocessor.

      I remember when I program PIC in firmware there was a portion of code that was dedicated to define basic pins function, like input, output or communication. I don't now if the firmware file already have it inside or not...

      I've ordered a new duet maestro from a reseller and I'll try to replace the microprocessor to find the source of problem.

      About duet3 mini I'll look at it in near future, but also will need to keep some duet maestro for replacements and warranty proposals.

      posted in Hardware dev
      iptronicaundefined
      iptronica
    • Custom Duet Maestro Step Drivers Enable Pin allways off

      I made a few PCB Duet Maestro based in Kicad files provided in GitHub according to the terms of the CERL OHL 1.2.

      Everything works fine, but i check that step motors don't move because the ENABLE line is allways at 3V3.

      I have tested some firmwares 2.02, 2.05 and 3.1.1, and problem don't fix.

      I have check PCB for any issue, but when I cut the Enable line and connect it to GND i get all steppers working.

      So something is firmware is not enabling the pin 72 of ATSAM4S8C.

      I tried firmware flash by bossac, webinterface, and allways get the same result....

      As far i check in ATSAM4S8C datasheet pin 72 named PA1 have another function PGMEN1.

      My guess is that ASF in firmware is not put pin 72 as a GPIO, can anyone help me with it, because that must be a simple solution but i'm not getting there.

      NOTE: i'm building my own PCB because they are missing in stock some times, and i'm using PCB to rebuild and control old CNC machines, and will need to add/remove some features in PCB.

      posted in Hardware dev
      iptronicaundefined
      iptronica