Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login
    1. Home
    2. Wurstkarton
    3. Posts
    • Profile
    • Following 1
    • Followers 1
    • Topics 4
    • Posts 34
    • Best 2
    • Controversial 0
    • Groups 0

    Posts made by Wurstkarton

    • RE: Filament force measurement system

      @zapta said in Filament force measurement system:

      @wurstkarton said in Filament force measurement system:

      The HX711 is supplied with 5V from the Pi and takes 80 samples per second

      It's not that difficult to increase the sampling rate up to 140 samples/sec by adding a crystal and changing a jumper. The data sheet has the necessary information. For example, I increased mine to 100Hz with a 13824000 HZ crystal.

      efa74041-fde9-470d-97e1-f9ecfec6d950-IMG-3196.jpg

      Thanks for the info, but I think also 140 samples/sec are not enough. I'd guess I need 1k samples a second to make a real difference for taking a closer look at e.g. retraction.
      Nothing that could not be solved with a reasonable DAC and instrumentation amplifier, but nothing that I'll do soon... 🙂

      posted in Tuning and tweaking
      Wurstkartonundefined
      Wurstkarton
    • RE: Filament force measurement system

      @o_lampe said in Filament force measurement system:

      @wurstkarton
      What would it take to integrate the loadcell readings into RRF?

      For now, I just use the webcam functionality of DWC to display the readings.

      Would it make sense to establish a constant pressure print mode? (like constant volume slicing)

      Not really, I do not think that it would help. At every corner or turn the nozzle takes, the pressure will not (and must not) be constant (you need to decelerate there and hence extrusion rate will reduce and hence pressure too).

      I also see opportunities to detect skipped extruder-steps and help tuning filament temp.

      Yes, this should work. 🙂

      posted in Tuning and tweaking
      Wurstkartonundefined
      Wurstkarton
    • RE: Filament force measurement system

      @zapta said in Filament force measurement system:

      @wurstkarton said in Filament force measurement system:

      For now, it helped me dial in retraction and pressure advance,

      Very interesting. Can you explain how you use these force measurements to calibrate pressure advance and retraction?

      Well, I am still trying to understand it myself. 🤓
      The idea is to perform the typical K-factor calibration test where you vary the speed on a straight line and check for the change in extrusion force. You want the force to change quickly to its next static value without much overshoot.
      For retraction it's similar (you want the force to disappear (it will be a bit negative) after retraction and be back at its static value after unretract), you can also check the Airtripper webpage. Something similar was done there, but for a bowden system.

      Also, would be nice to correlate the force vs time graph with the motor position, in microstep ('electrical' position) and with an actual rotational decoder ('mechanical' position).

      I guess you could do that, but I'd need some sort of information from the Duet to process in the Pi to align time with the motor position.

      EDIT: One more question, does the force correlate proportionally to the pressure at the nozzle?

      Yes, pretty much. This depends on how you apply the principle of intersection. The load cell is placed between coldend and extruder. You will see any force that can move the load cell:

      • The force required to "press" filament through the nozzle+heatbreak.
      • The force required to pull filament from the roll.

      What you will not see in the measurement:

      • The force from touching the heatbed with the nozzle. (in comparison the renkforce rf2000 fixture would see this)

      EDIT2: Is the force them same if you actually print or print in the air, with nozzle not touching the bed? (To understand the potential back pressure from the print itself)

      I think you can see a difference, but I did not pay attention to it (yet). If the nozzle is too close to the bed, then you need much more force to press the filament through. Hence, we should see that in the measurement (but you cannot measure the distance to the bed just by touching it with the nozzle).

      posted in Tuning and tweaking
      Wurstkartonundefined
      Wurstkarton
    • Filament force measurement system

      The idea
      Measure the force required for extrusion during transient.
      The approach is not new, we tackle the task similar to

      • Duet forum thread
      • Renkforce rf2000 uses a similar system

      How we do it - mechanics

      • Separate extruder from cold/hot end with load cells TAL220G
      • A first fixture is used to screw the extruder on top of the load cells. The extruder has a M7 thread wich is used with an aluminium tube to fix it to the fixture and with a short PTFE tube inside to guide the filament to the coldend.
      • A second fixture is an angled bracket used to screw the load cells on the MGN12H carriage.
      • A third fixture represents the cold end and aligns with the filament path from the extruder. The 4mm hole at the top is used to provide for another short PTFE tube that guides the filament to the heatbreak. A M7 thread at the bottom allows to attach a E3D V6 hotend.

      All three mentioned fixtures were manufactured by 3CTS and it became possible for me to realize this idea at all. Thanks guys!

      How we do it - electronics + software

      • One of the load cells is attached to a HX711, which in turn is connected to a raspberry pi zero w. There is four load cells, as I was not sure for how much force I needed to prepare for and the 1.5kg sensors were cheap and readily available (the 3kg option was not in stock at the time, so I went for it this way). I guess it could make sense to remove two of the four sensors and improve the sensitivity - but I find the result satisfying already.
      • Software readout is done according to Github link
      • The HX711 is supplied with 5V from the Pi and takes 80 samples per second, which seems to be sufficient for useful readings, but does not give insight if you want to see what is happening during a retract (which takes only ~10ms in my setup).
      • Display the readings at a webpage and embed it within the Duet Web Control.

      Gallery - first and second fixture
      1.jpg
      2.jpg
      3.jpg
      4.jpg

      Gallery - third fixture/coldend
      IMG_2796.jpg
      IMG_2797.jpg
      IMG_2798.jpg

      Gallery - full assembly
      full.jpg

      Exemplary reading
      Here you can take a look at the readings from an exemplary print with three retractions taking place. unit=grams
      webpageMeasurement.png

      Well, I am still playing with it trying to find out what information can be gained from this system. For now, it helped me dial in retraction and pressure advance, but in the end it does not waive calibration prints. Any suggestions welcome!

      posted in Tuning and tweaking
      Wurstkartonundefined
      Wurstkarton
    • RE: Firmware retraction question

      @deckingman said in Firmware retraction question:

      @Wurstkarton Yes. All parameters that are used in M207 apply to that tool and drives are assigned to tools. So it will apply to all drives.

      Thanks for this. Now I know that I must refrain from using the additional unretract length.

      The rationale for using extra length on the un-retract is that the hobbed bolt might grind the filament away slightly during the retraction, so the filament diameter would be reduced when the un-retract happens. Given that all filaments are retracted together, then it makes sense that they should all be un-retracted the same way.

      What do you do if you have extruders that behave differently? I am inclined to say that this is not the full picture why you would apply an additional unretract length. It could also be that you do not have oozing under control (and may never have depending on the material and hotend that you use). In that case, it may make sense to "refill" your nozzle with the lost material according to your mixing ratio.

      This could be something for a change request: Apply additional unretract length according to mixing ratio (when you specify an additional parameter in the M207)

      Anyways. Now that I know how it behaves, I can also do that in my gcode with a script.

      posted in Duet Hardware and wiring
      Wurstkartonundefined
      Wurstkarton
    • RE: Firmware retraction question

      @deckingman I understand that and I have 6 tools in total defined (I just copied a single tool for illustration, maybe I should have only put a single M207 command there for better understanding). This is not the question.

      The question is not about the P parameter, but the R parameter. Does the R parameter affect all drives involved for the respective tool?
      If yes, you will unintentionally mix a different color into your current tool.

      posted in Duet Hardware and wiring
      Wurstkartonundefined
      Wurstkarton
    • Firmware retraction question

      Lately, I have been experiencing some blobs after printing with my mixing hotend (e3d cyclops). It is known that for mixing hotends, it is beneficial to use firmware retraction, as you can retract from all inputs to take the pressure away.

      So my setup looks like this (RRF 3.1.1, Duet 2 Maestro):

      M563 P0 D0:1 H1 F0 S"MIDDLE_LEFT"                               ; define tool 0
      M567 P0 E1:0                                                    ; set mixing ratios for tool 0
      

      Lately, I have introduced an additional restart length:

      M207 P0 S2.1 F3000 T3000 R0.1 Z0                                ; firmware retraction settings
      M207 P1 S2.5 F3000 T3000 R0.3 Z0                                ; firmware retraction settings
      

      Now to the question:
      When firmware retraction is done, does the additional unretract length apply to all drives involved in the tool?
      If yes, this would be bad, as I am - at each G10+G11 - start to mix in another color. This could explain the behavior I am seeing.
      If not, I need to look somewhere else...

      Thanks!

      posted in Duet Hardware and wiring
      Wurstkartonundefined
      Wurstkarton
    • RE: Duet Maesto Stepper Driver Expansion Schematic

      @BotLawson said in Duet Maesto Stepper Driver Expansion Schematic:

      Looking at the layout render, it looks like the culprit is the Vin trace to C6. It cuts off the direct path to ground and forces current from R3 to loop around the outside of the pcb. Personally, I'd put R3 and R2 between the TMC chip and stepper connector and give them 2-4 vias to the ground plane and the thermal die pad of the TMC. The motor phase connections can then sneak under or around the 805 resistor.

      Exactly. There is this "unconnected" peninsula to the right of R3/C2. Great job to both of you guys. I guess this fixes it. 🙂

      posted in Duet Hardware and wiring
      Wurstkartonundefined
      Wurstkarton
    • RE: Duet Maesto Stepper Driver Expansion Schematic

      @dc42 Thank you for this analysis. At the moment, I do not have the need to try it out (as I have two P6). But I am sure that others may find it useful! 🙂

      posted in Duet Hardware and wiring
      Wurstkartonundefined
      Wurstkarton
    • RE: Duet Maesto Stepper Driver Expansion Schematic

      @dc42 from what I could tell, yes. But that really does not mean much.

      The layout of output 1 (which is the output that generates the problem) looks a bit different, but I am not sure if this really would be a problem. Would be easier to see with the actual layout in a design tool.

      posted in Duet Hardware and wiring
      Wurstkartonundefined
      Wurstkarton
    • RE: Duet Maesto Stepper Driver Expansion Schematic

      @BotLawson I think there is a flaw with the design of the expansion. Even P6 produces slightly worse results than the internal steppers.

      As for P5, there might be a way to fix it by comparing the layout of P5 with P6 and find the difference. Still missing this file though.

      From looking at the PCB, there is not much to observe between the two...

      posted in Duet Hardware and wiring
      Wurstkartonundefined
      Wurstkarton
    • RE: Duet Maesto Stepper Driver Expansion Schematic

      Okay. So I split up both of my expansions (one of which already had a groove and was easy, the other one was more work) and installed both "P6" to the Maestro.

      Everything is running fine now! 🙂

      Well, this concludes it for me. I have two leftover P5 - if someone is interested. 😏

      posted in Duet Hardware and wiring
      Wurstkartonundefined
      Wurstkarton
    • RE: Duet Maesto Stepper Driver Expansion Schematic

      @dc42 I just did the exercise and switched the expansion board. Same result.

      I thought that it might be the cables. So I decided to switch those too. Also, I twisted the pairs, but that also did not have an impact.

      Some more insight I have found: only one of the two current paths is affected. Output 1 of P5. Output 2 is fine. Somehow the upper (well, upper depends on your point of view, but it is clear what I mean 😉 ) part of the sine wave gets a bit chopped of output 1.

      Consequently, the two coils in the motor see a different current and hence are driven assymetrically. For me, it now looks like a bug (although it would be nice if someone else could try the same).

      https://duet3d.dozuki.com/Wiki/Dual_Stepper_Driver_Expansion_Module

      posted in Duet Hardware and wiring
      Wurstkartonundefined
      Wurstkarton
    • RE: Duet Maesto Stepper Driver Expansion Schematic

      @dc42 yes. P6 is as quiet as the internal ones (more or less). P5 ist causing a lot of vibration and noise.

      posted in Duet Hardware and wiring
      Wurstkartonundefined
      Wurstkarton
    • RE: Duet Maesto Stepper Driver Expansion Schematic

      I disconnected the cables from the motors and attached it to the same motor every time for the measurements.

      [Edit]: I'll try and set everything up on the weekend. I think I will be able to conclude if it is a problem with the expansion or with my setup.

      posted in Duet Hardware and wiring
      Wurstkartonundefined
      Wurstkarton
    • RE: Duet Maesto Stepper Driver Expansion Schematic

      I performed the analysis and checked the current fed by the drivers into the motors using a scope + current probe attached to a single wire of the motor.

      This is how a onboard driver performs (P4, TBL = 1, different feedrates):

      B1_f300.png
      B1_f1800.png
      B1_f3600.png

      As can be observed, the waveforms are very smooth. At 60mm/s, you can see that the sine wave gets jagged (which is fine for higher speeds).

      This is how P6 performs (TBL = 1):

      B1_f300.png
      B1_f1800.png
      B1_f3600.png

      This also looks pretty good. Although it is a touch less smooth as before.

      Now to the black sheep in the flock, P5 (5mm/s for TBL 0,1 and 2):

      B0_f300.png
      B1_f300.png
      B2_f300.png

      I found that setting TBL to 1 seems to yield the best result, which is why I also used this setting for the other drivers. Taking a look at higher velocities, we can see that this driver definitely performs worse:

      B1_f1800.png
      B1_f3600.png

      Interestingly, P5 is the driver, which has this hole in the PCB to allow for a mechanical spacer.

      To do for me: Split up the two expansion boards I have and insert both P6 steppers into the P5+P6 sockets on the Maestro. I'll see if I can manage on the weekend (although I am not sure how to do this exactly. Don't want to break anything).

      To do for you guys: Please try to get your hands on the layout. This rough floorplan in the .pdf does not show any traces or ground planes.

      posted in Duet Hardware and wiring
      Wurstkartonundefined
      Wurstkarton
    • RE: Duet Maesto Stepper Driver Expansion Schematic

      From the schematic, I do not really see any noteworthy difference. As @dc42 mentioned, it rather might be the implementation in the layout.

      Anyways, I'll use a current probe with an osci this week to assess the differences. I'll come back with what I find.

      posted in Duet Hardware and wiring
      Wurstkartonundefined
      Wurstkarton
    • RE: Duet Maesto Stepper Driver Expansion Schematic

      @T3P3Tony Thank you! That was quick.

      I'll take a look later.

      posted in Duet Hardware and wiring
      Wurstkartonundefined
      Wurstkarton
    • RE: Duet Maesto Stepper Driver Expansion Schematic

      @dc42
      Yes, I am using this command.

      M569 P0 S0 D3 V1000
      M569 P1 S0 D3 V1000
      M569 P2 S1 D3 V1000
      M569 P3 S0 D3 V1000
      M569 P4 S1 D3 V1000
      M569 P5 S0 D3 V1000
      M569 P6 S1 D3 V1000
      

      Same Motors. Same extruders. Same settings. I created a thread about it a while back (see this thread), but had other issues to fight with up to now.

      The conclusion at the time was:

      • tried 2 Maestros with same result
      • tried 2 Expansion boards with same result
      • tried different cables (same type though) with same result
      • tried different motors (same type though) with same result

      So it might be that the expansion cannot handle this type of motor well? Or the cable length is a problem (50cm)?

      Anyways, I would like to try and take a look at it myself. To do so, I want to see the schematic.

      posted in Duet Hardware and wiring
      Wurstkartonundefined
      Wurstkarton
    • RE: Duet Maesto Stepper Driver Expansion Schematic

      Thats what I am guessing, but I would like to verify it. I have still this strange issue that the expansion does not perform as well as the onboard steppers. The print results are identical, but the noise is worse.

      Schematic would help a ton. Thanks!

      posted in Duet Hardware and wiring
      Wurstkartonundefined
      Wurstkarton