FSR Controller Module for Auto Bed Leveling
-
@snowcrash Yeah! great write up and application. I assume J1 is the output. What was the reasoning with not having that have same pinout as the Duet probe header?:
-
@t3p3tony said in FSR Controller Module for Auto Bed Leveling:
@snowcrash Yeah! great write up and application. I assume J1 is the output. What was the reasoning with not having that have same pinout as the Duet probe header?:
Thank you very much, @T3P3Tony!
J1 is indeed the output (or general I/O) of the module.
You're right that ideally the module would have had an identical pinout to that of the Duet header.
For the power lines, I considered using the 3V3 from the header, but eventually opted to go with the 5V provided by the adjacent header (Panel Due) as I'm not using it and wanted to have the Atmega328P's running at max speed (16MHz) which requires a 5V supply for the chip.
16MHz is almost certainly a total overkill and 8MHz would have most likely been more than enough for this application (though I haven't tested it in practice). Nevertheless, I figured it's a relatively easy tweak to switch from one supply to the other if the need arises, and the 5V supply was so close by I just couldn't resist
Regarding the z_probe_mod pin - that's a great point and a complete oversight on my part! I Thanks for bringing it to my attention! I read the description of that pin before, but for some reason, only the analog option stuck in my mind and I completely forgot it could have a digital output as well. If the z_mod_probe pin can be controlled with gcode like pin 50 on the expansion board, then it should definitely be used for the on/off control pin of the module.
Is it possible to use the M42 command to control this pin? And, if so, what would be its number?
M42 P? I0 - Turn module off M42 P? I1 - Turn module on
Btw, is there a table/diagram mapping the all the hardware pins and corresponding software numbers?
-
@snowcrash said in FSR Controller Module for Auto Bed Leveling:
Btw, is there a table/diagram mapping the all the hardware pins and corresponding software numbers?
I think you are looking for Duet 2 Pinout Table?!
-
@wilriker said in FSR Controller Module for Auto Bed Leveling:
@snowcrash said in FSR Controller Module for Auto Bed Leveling:
Btw, is there a table/diagram mapping the all the hardware pins and corresponding software numbers?
I think you are looking for Duet 2 Pinout Table?!
Yep, thanks @wilriker!
This table would make me think I'm looking to use pin 34 (z_probe_mod), but then I looked up the original pin I was planning on using and came across something strange:
I was basing my original choice of pin 50 (CS5) on the documentation here, which has this table:
But the table you referred me to seems to have an entirely different designation for that pin (24 instead of 50):
What am I missing here?
-
@snowcrash said in FSR Controller Module for Auto Bed Leveling:
What am I missing here?
Aaaand that's the point where I am completely out again. I just remembered that I saw this table once but I have not yet really needed it, so no clue on why there exist different tables with different combinations of pins and numberings, sorry.
-
@wilriker said in FSR Controller Module for Auto Bed Leveling:
@snowcrash said in FSR Controller Module for Auto Bed Leveling:
What am I missing here?
Aaaand that's the point where I am completely out again. I just remembered that I saw this table once but I have not yet really needed it, so no clue on why there exist different tables with different combinations of pins and numberings, sorry.
Ha! Thanks for sharing what you do know about this
@T3P3Tony, could you please help with the pin numbering in this context? especially, what numbers should I use to activate/deactivate pins 'z_probe_mod' and 'cs5' with M42 command's P parameter?
-
Looks like @T3P3Tony is busy.
Does anyone else knows the answer to the above question about the pin destination numbers?
-
-
@dc42 said in FSR Controller Module for Auto Bed Leveling:
See https://duet3d.dozuki.com/Wiki/Using_servos_and_controlling_unused_IO_pins.
Sorry, @dc42, but that's not really helpful - please read the last few posts and you'll see what I mean.
-
@snowcrash said in FSR Controller Module for Auto Bed Leveling:
@dc42 said in FSR Controller Module for Auto Bed Leveling:
See https://duet3d.dozuki.com/Wiki/Using_servos_and_controlling_unused_IO_pins.
Sorry, @dc42, but that's not really helpful - please read the last few posts and you'll see what I mean.
I added two rows to that table earlier today. You will be able to control the Z probe Mod pin via M42 in the next 2.01beta firmware, but bear in mind that it is driven automatically in some Z probe modes.
-
@dc42 said in FSR Controller Module for Auto Bed Leveling:
@snowcrash said in FSR Controller Module for Auto Bed Leveling:
@dc42 said in FSR Controller Module for Auto Bed Leveling:
See https://duet3d.dozuki.com/Wiki/Using_servos_and_controlling_unused_IO_pins.
Sorry, @dc42, but that's not really helpful - please read the last few posts and you'll see what I mean.
I added two rows to that table earlier today. You will be able to control the Z probe Mod pin via M42 in the next 2.01beta firmware, but bear in mind that it is driven automatically in some Z probe modes.
Thanks for this.
So, assuming I have version 2.01 of the firmware, I can use: M42 P60 S0/S1 to control pin CS5, and M42 P65 S0/S1 to control pin z_mod_probe? Is this correct?
-
@snowcrash said in FSR Controller Module for Auto Bed Leveling:
So, assuming I have version 2.01 of the firmware, I can use: M42 P60 S0/S1 to control pin CS5, and M42 P65 S0/S1 to control pin z_mod_probe? Is this correct?
Yes, but you will have to wait for 2.01beta3 to use M42 P65.