Jump to content

VzBot 330


TitusADuxass

Recommended Posts

1 hour ago, TitusADuxass said:

Are jumpers needed on the drivers themselves?

Yes, that's the way mine are configured.

As for you printer.cfg...

This is my Stepper X section. Beware... I might not be using the same connection on the Super8 Pro because I had wired mine per the old instruction that had the motors flipped and I had to correct it in the printer.cfg

All of the [tmc5160 stepper ?] sections are the same for all four except for the "cs_pin:" values

[stepper_x]
##	in M4 position
step_pin: PE15
dir_pin: !PE11
enable_pin: !PF2
rotation_distance: 40
microsteps: 16
full_steps_per_rotation: 200  
endstop_pin: PG11                #make sure to set the correct pin here.
position_endstop: 0
position_min: 0
position_max: 330
homing_speed: 50  
homing_retract_dist: 5.0
homing_positive_dir: false
second_homing_speed: 25

[tmc5160 stepper_x] 
#spi_bus: spi3
cs_pin: PE10
#diag_pin: PD7
interpolate: false
run_current: 1.9
sense_resistor: 0.033
spi_software_mosi_pin: PB5
spi_software_miso_pin: PB4
spi_software_sclk_pin: PB3
#driver_SGT: -64 # -64 is most sensitive value, 63 is least sensitive
driver_TBL: 1
driver_TOFF: 3
driver_DISS2G: 1
driver_DISS2VS: 1

 

  • Like 2
Link to comment
Share on other sites

My printer.cfg tmc5160 pretty much reflect yours.

The stepper setting reflect my motor configuration.

None of the stepper motor function when buzzed.

The tmc2209 on Z returns:

Unable to read tmc uart 'stepper_z' register IFCNT

The tmc5160 on X returns:

 

Unable to write tmc spi 'stepper_x' register GLOBALSCALER

The klippy log file relating to the steppers has this:

TMC stepper_x failed to init: Unable to write tmc spi 'stepper_x' register GLOBALSCALER
TMC stepper_x1 failed to init: Unable to write tmc spi 'stepper_x1' register GLOBALSCALER
TMC stepper_y failed to init: Unable to write tmc spi 'stepper_y' register GLOBALSCALER
TMC stepper_y1 failed to init: Unable to write tmc spi 'stepper_y1' register GLOBALSCALER
TMC stepper_z failed to init: Unable to read tmc uart 'stepper_z' register IFCNT
TMC extruder failed to init: Unable to read tmc uart 'extruder' register IFCNT

(I've attached the full klippy.log and my printer.cfg)

As it's common across all steppers my gut feeling is that it is a communication problem. Other than reflashing everything again I am stuck here.


 

 

 

klippy (16).log config-20240601-094330.zip

Link to comment
Share on other sites

From what I can remember - there is a conflict with the Max31865 chip. Mine was the display on the Octopus board.

Here is the thread I followed and saved:. Cannot find the actual link - has been some time ago.

Quote

 

Octopus Pro SPI fix:
I can confirm the shared spi is working, I do have BTT Octopus Pro with TMC5160Pro and Fysctec mini12864 connected.
At first after the mcu update, it didn't work (unable to write tmc spi 'stepper_x' register globalscaler).
I don't use the MAX31865 so when I added those two lines:

[static_digital_output disable_max31865]
pins: !PF8
It worked.

OK, so after buying a third 5160 driver and inserting it … it didn’t work.


But I found someone who was having problems getting their ez31865 to work and they had fixed it with a static output just on the sd card slot pin.
I tried that and the thing worked.
I then slotted in the two original 5160 drivers and they worked too.
I can’t believe it but we were on the right track, just narrowly missing it.

[static_digital_output my_output_pins]
pins:!PB12

A stupid exclamation point was all that stopped it working before with the static output suggested by jjarosz. I didn’t think to try that with it at the time.
Thankyou again everyone for helping.

 

My X-Section:

[tmc5160 stepper_x]
cs_pin: PG12
spi_software_miso_pin: PE13
spi_software_mosi_pin: PE14
spi_software_sclk_pin: PE12
interpolate: True
run_current: 1.6
#hold_current: 0.2
sense_resistor: 0.033
driver_TBL: 1
driver_TOFF: 3
driver_DISS2G: 1
driver_DISS2VS: 1
stealthchop_threshold: 0
#spi_speed: 8000000 #3500000

 

Link to comment
Share on other sites

Interesting.

I have no MAX31865 in my printer.cfg

 

[extruder]
## In M2 position
#   E (2209)         Driver_2                 PE4, PG0, PG1, PF15
### Vz-HextrudORT
step_pin: PE4
dir_pin: PG0
enable_pin: !PG1
microsteps: 16
#Alu VZhextrudort Moons 8T
rotation_distance: 22.2
Gear_ratio: 50:8
#Alu VZhextrudort Moons 10T
#rotation_distance: 22 
#gear_ratio: 50:10 
#VZHextrudort LDO 20mm
#rotation_distance: 4.71
nozzle_diameter: 0.5
filament_diameter: 1.750

heater_pin: PB0
sensor_type: PT1000
sensor_pin: PF4 #PF15

 

Link to comment
Share on other sites

Those are some really strange errors. Not the kind you normally fix in the printer.cfg. I'm a mechanical guy with a little electrical knowledge but, this looks to me like a possible power issue. I would double / triple check the power wiring. On the Super 8 pro you need to connect all of the power connections along the bottom of the board like mine. You also need to have a common neutral wire running between both power supplies and watch out for the bed power on the left, the polarity is opposite of all the others. I had an issue where my steppers wouldn't buzz and I went back over my wiring and yup, forgot to tie the two PSU's together with a neutral wire.

VZBot_RearElectronics-Closeup.thumb.jpg.5d00824aab9f1964f43368976b2c1e4e.jpg

Watch out for this guy...

image.png.3ee44ce50130624c312911e5281e8093.png

  • Like 1
Link to comment
Share on other sites

1 hour ago, Penatr8tor said:

Those are some really strange errors. Not the kind you normally fix in the printer.cfg. I'm a mechanical guy with a little electrical knowledge but, this looks to me like a possible power issue. I would double / triple check the power wiring. On the Super 8 pro you need to connect all of the power connections along the bottom of the board like mine. You also need to have a common neutral wire running between both power supplies and watch out for the bed power on the left, the polarity is opposite of all the others. I had an issue where my steppers wouldn't buzz and I went back over my wiring and yup, forgot to tie the two PSU's together with a neutral wire.

VZBot_RearElectronics-Closeup.thumb.jpg.5d00824aab9f1964f43368976b2c1e4e.jpg

Watch out for this guy...

image.png.3ee44ce50130624c312911e5281e8093.png

You nailed it!

Numb nuts here forgot to feed 24v to the Drive Power.

Some Eagle eye on discord saw it straight away.

Edited by TitusADuxass
  • Like 1
Link to comment
Share on other sites

Right!

First thing this morning is to check all the wiring - the fact that I complete missed wiring 24v to the driver side of the board rocked me. So I've got a litre of Earl Gray  and some relaxing classical music on low, the moggies are sleeping off their breakfast so I should be undisturbed for a couple of hours.

 

  • Like 2
Link to comment
Share on other sites

How about that! Congrats @TitusADuxass!

I added the classic extra bump on homing and a return to the center of the bed for my Z home.

Just add this to your [stepper_?] X and Y sections

homing_retract_dist: 5.0
second_homing_speed: 25

FWIW and your mileage may vary... I have my printing limits set as X=330 and Y=300. Moving all the way back to 330 really scrunches things up against the back of the printer. I have found 300 on the Y to be a good safe distance. My bed center is X=165, Y=150.

Another important thing to note is that, if you installed the screws in the back of the build plate to locate the PEI sheet... there will be a couple of M3 threads sticking up above the PEI sheet. If the screws you used are too long, they can potentially contact your beacon probe and if it does... you will not have a good day. Make sure that if you do install the screws as PEI sheet locator pins that they only stick up 1mm or so above the build plate, any more could be catastrophic.

  • Thanks 1
Link to comment
Share on other sites

23 hours ago, Penatr8tor said:

How about that! Congrats @TitusADuxass!

I added the classic extra bump on homing and a return to the center of the bed for my Z home.

Just add this to your [stepper_?] X and Y sections

homing_retract_dist: 5.0
second_homing_speed: 25

FWIW and your mileage may vary... I have my printing limits set as X=330 and Y=300. Moving all the way back to 330 really scrunches things up against the back of the printer. I have found 300 on the Y to be a good safe distance. My bed center is X=165, Y=150.

Another important thing to note is that, if you installed the screws in the back of the build plate to locate the PEI sheet... there will be a couple of M3 threads sticking up above the PEI sheet. If the screws you used are too long, they can potentially contact your beacon probe and if it does... you will not have a good day. Make sure that if you do install the screws as PEI sheet locator pins that they only stick up 1mm or so above the build plate, any more could be catastrophic.

I got mine to home in the bed centre with this:

[safe_z_home]
##    XY Location of the Z Endstop Switch
##    Update -10,-10 to the XY coordinates of your endstop pin 
##    (such as 157,305) after going through Z Endstop Pin
##    Location Definition step.
home_xy_position:165,150
speed:100
z_hop:10

I agree with you about max Y,  in my .cfg it was already limited to 315 but I tweaked it down to 310.

I haven't installed the PEI location screws.

I have got to sort out the extruder settings, mine thinks that filament costs nothing. It's whipping through 230mm when I ask for 50mm.

Edited by TitusADuxass
  • Like 1
Link to comment
Share on other sites

21 minutes ago, TitusADuxass said:

I have got to sort out the extruder settings, mine thinks that filament costs nothing. It's whipping through 230mm when I ask for 50mm.

I encountered some confusing stuff with my extruder. I eventually had to count gear teeth to confirm that I had the correct ratio. Just so you know... Motor is 10T and Extruder Gear is 50T. Microsteps is 16, full steps is 200. Try using my rotation distance as it will be very close to what you'll calculate with these settings.

Below is my extruder section, just double check the pins, mine might use a different port on the controller. I left the original values on the same line and commented them out like the uart_pin:

[extruder]
## In M1 position
### Vz-HextrudORT
# LDO 36STH2001994AHG 10T GEAR
step_pin: PE3
dir_pin: !PF13
enable_pin: !PF14
microsteps: 16
gear_ratio: 50:10 
rotation_distance: 21.127
nozzle_diameter: 0.4
filament_diameter: 1.750

heater_pin: PB0
sensor_type: PT1000
sensor_pin: PF4

#control: pid
#pid_Kp=28.737 
#pid_Ki=1.935 
#pid_Kd=106.684
min_temp: 0
max_temp: 400
full_steps_per_rotation: 200
max_extrude_only_distance: 1000.0
max_extrude_cross_section: 500
max_extrude_only_velocity: 200
max_extrude_only_accel: 10000
min_extrude_temp: 0
pressure_advance: 0.015
pressure_advance_smooth_time: 0.02

[tmc2209 extruder]
uart_pin: PF12                    #PC4
interpolate: false
run_current: 0.6
#hold_current: 0.3
sense_resistor: 0.110

 

  • Thanks 1
Link to comment
Share on other sites

33 minutes ago, TitusADuxass said:

I agree with you about max Y,  in my .cfg it was already limited to 315 but I tweaked it down to 310.

I haven't installed the PEI location screws.

Yeah, better safe than sorry. I would go to 315 but with the Beacon hanging under the print head I will err on the side of caution.

The PEI locator screws are nice to have mine are M3 x 12mm and only poke about ~1.5mm above the PEI sheet.

Also... here's my temp section in case you want to monitor more than just your hotend and bed.

[temperature_sensor FLY-Super8]
sensor_type: temperature_mcu

[temperature_sensor raspberry_pi]
sensor_type: temperature_host
min_temp: 10
max_temp: 100

and lastly... I don't know if you've used this before but you can combine pins in the printer.cfg. For example... If you have multiple fans or LEDs that that you want to control together you can use the following.

Fans:

[multi_pin RSCS_Pins]
pins: PD12, PB10

[fan_generic RSCS]
##  RSCS Fans - In FAN7 Positon
pin: multi_pin:RSCS_Pins
max_power: 1
shutdown_speed: 0
kick_start_time: 0.1
off_below: 0.10

LEDs:

[multi_pin LED_Pins]
pins: PA2, PA3

[output_pin LED]
#In FAN2 position if 12 or 5V
#When 24V use a heater pin like Heat4 PF6
pin: multi_pin:LED_Pins
pwm: false
value: 0.5
shutdown_value:1
### gcode command: SET_PIN PIN=LED value=0 to 1

 

  • Thanks 1
Link to comment
Share on other sites

22 minutes ago, Penatr8tor said:

I encountered some confusing stuff with my extruder. I eventually had to count gear teeth to confirm that I had the correct ratio. Just so you know... Motor is 10T and Extruder Gear is 50T. Microsteps is 16, full steps is 200. Try using my rotation distance as it will be very close to what you'll calculate with these settings.

 

Yes, the preconfig printer.cfg tries to cover all possiblities, I was chasing my tail for a bit.

Got it nailed down to 19.768

  • Like 2
Link to comment
Share on other sites

7 hours ago, Penatr8tor said:

I don't know if you've used this before but you can combine pins in the printer.cfg.

Thanks - learned something new today - implemented this on Caselights of V2 and RSCS Fans on VZBot

  • Like 1
Link to comment
Share on other sites

I assume you power cycled and are still getting that error. Check for dumb mistakes, that's where I usually find solutions. Hopefully your SD card didn't get corrupted.

I gifted my Switchwire to my nephew this past Christmas. I had to remove the SD card and modify the supplicant file via sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

The I pulled the SD card out of the reader instead of pulling the reader out of the USB and corrupted everything. I spent 2 days recreating everything from scratch. Believe it or not I was able to get everything reconfigured and running in a couple of hours, even the servo arm klicky probe.

  • Like 2
Link to comment
Share on other sites

I checked that the 2 USB out were in and the USB in was in.

I then disconnected the display.

Still no joy, 

The display was showing live temperature data and the CPAP cycles on power up.

But it's not showing up in my router. Fortunately I downloaded the cfg files just before I started working on the extruder.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...