Best posts made by t0bias
Latest posts made by t0bias
-
Y-Axis motors behave weird after some time of non-use
Hi,
I have not used my printer for some time (since we have had our first child) und now the Y-Axis behave very strangely; one of the two motors seems to have the belt quit violently slip one tooth every like 80mm or so of movement.
It's twice the exact same stepper, same stepper motor driver moving of the same signal, same length of gt2-belt, same tensioner (I carefully counted revoloutions to make sure, they are equally tensioned).
The Y-Axis with the whole printhead-assembly can move freely with almost no resistance at all when the motors are not engaged.
To be frank, I have no clue how this is even possible, or where to look.
I marked both gears with a Sharpie and compared the rotation of the two motors, and I think it's not the motors that are moving unequally.
Any suggestions on how to narrow down the cause of this issue? -
delay between i2c messages
Hi,
I am looking for a way to insert a delay between two I2C messages from within a macro, G4 seems not to affect macros, like if I have this in a macro
M260 A38 B1:0 G4 100 M260 A38 B1:1
both i2c messages get send consecutively without the delay?
Any ideas? -
RE: Additional outputs using a SX1509B Expander
Strange, the SX1509B is in fact detected:
FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 3.3beta1 ELECTRONICS: Duet WiFi 1.02 or later + SX1509B expander FIRMWARE_DATE: 2021-02-14 16:00:49
however the pins don't get driven high (or low) using the M42 commands.
I am confident the I²C-Wiring is correct, since I tried using a MCP23017 based relay board that responds to I²C-Commands just fine.Any suggestions or ideas are highly appreciated!
-
RE: Additional outputs using a SX1509B Expander
I upgraded to 3.3beta1 today, but it still doesn't work unfortunately
-
RE: Additional outputs using a SX1509B Expander
@dc42 thanks for your reply. I am using version 3.1.1, would a upgrade fix the issue?
yes, 20 would be sufficient, maybe a bit more would be even better still? -
RE: Additional outputs using a SX1509B Expander
I may be wrong, but I think pull-up resistors can only be enabled on ports of the Duet board itself.
There are source-files specifically for this expansion chip (here), however I have no idea what the "DuetNG" denomination is about to be honest. Also, this branch seems to be of the 2.x firmware only? -
RE: Additional outputs using a SX1509B Expander
Not that I was aware of..
However, I just checked the datasheet and according to it, all pins are configured as inputs upon power-on, so I think I would need to configure them as outputs. I don't really know what the duet firmware is doing internally here.. -
RE: Additional outputs using a SX1509B Expander
Good point!
Unfortunately no luck here either..I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
-
RE: Additional outputs using a SX1509B Expander
@alankilian true, but as far as I understand (see this note on the very same page this no longer works for RepRap Firmware 3.x
-
Additional outputs using a SX1509B Expander
Hi everyone,
I have wired up a Sparkfun SX1509 (BOB-13601) to my Duet 2 WiFi.
The SX1509 is set to use the 0x71 I²C address (I double-checked it is indeed using 0x71 using a Arduino).
In my config.g I assign Ports to the Output pins like so:; GPIO Ports ; Create GPIO Ports on SX1509B expander pins M950 P5 C"sx1509b.0" ; Assign P5 to pin 1 M950 P6 C"sx1509b.1" ; Assign P6 to pin 2 M950 P7 C"sx1509b.2" ; Assign P7 to pin 3 M950 P8 C"sx1509b.3" ; Assign P8 to pin 4 M950 P9 C"sx1509b.4" ; Assign P9 to pin 5 M950 P10 C"sx1509b.5" ; Assign P10 to pin 6 M950 P11 C"sx1509b.6" ; Assign P11 to pin 7 M950 P12 C"sx1509b.7" ; Assign P12 to pin 8 M950 P13 C"sx1509b.8" ; Assign P13 to pin 9 M950 P14 C"sx1509b.9" ; Assign P14 to pin 10 M950 P15 C"sx1509b.10" ; Assign P15 to pin 11 M950 P16 C"sx1509b.11" ; Assign P16 to pin 12 M950 P17 C"sx1509b.12" ; Assign P17 to pin 13 M950 P18 C"sx1509b.13" ; Assign P18 to pin 14 M950 P19 C"sx1509b.14" ; Assign P19 to pin 15 M950 P20 C"sx1509b.15" ; Assign P20 to pin 16
Now the first issue is the number of pins, according to the Gcode dictionary (link) the Duet only supports up to 10 pins.
Is there another way, I could use those pins?Secondly, by using
M42 P5 S1
or
M42 P5 S0
I would expect the first pin on the SX1509B Port Expander to toggle the state of said pin, however nothing happens.
Any ideas?
Thanks!