MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.26k stars 19.23k forks source link

Electronic_scale_Z_probe: migrate from 1.0.3 #4138

Closed FoXxx87 closed 8 years ago

FoXxx87 commented 8 years ago

I have an older version of the firmware 1.0.3 it is written function ( 'Electronic_scale_Z_probe'). I want to upgrade to a newer version. Help rewrite the function 'Electronic_scale_Z_probe' from the old (my) firmware to a new version of the firmware (or teach me how to do it yourself). I tried to copy itself, I have neither of which did not work, the printer is working but the function 'Electronic_scale_Z_probe not work. Thank you.

Roxy-3D commented 8 years ago

The probe code has just gone through a major clean up to simplify it. But your changes are fairly small. It shouldn't be too difficult to cross that functionality over to the latest RC-BugFix.

FoXxx87 commented 8 years ago

I did, I did not work ((( (Google translete )

thinkyhead commented 8 years ago

@FoXxx87 It looks like you can just use the HX711.cpp and HX711.h files as they are.

Most of the changes from https://github.com/necdnk/Marlin/commit/6a23bcc800d5d5571a6bc297d2adafc9fbe0bdd8 should be straightforward to apply to the new code. Instead of st_synchronize we now have stepper.synchronize. It should be pretty obvious how to make the custom synchronize function for the scale probe.

The sanity check additions in https://github.com/necdnk/Marlin/commit/31f31bd4878a02864ce8f12ed53b26ff60604f17 will be similar. We now have several probe options, so regarding Configuration.h, Conditionals.h, and SanityCheck.h, simply integrate this probe by following the same style as the other probes in those files. (Search "PROBE" to find those instances.)

We now have a Z_PROBE pin and endstop bit. So for the code in stepper.cpp that is being adjusted by https://github.com/necdnk/Marlin/commit/9280719ad0df8a37f4b19682ef6fd1732333eb50, you should rewrite the endstop bit-setting part to work the same way as the other probes / endstops now do.

FoXxx87 commented 8 years ago

@thinkyhead Thank you ! I will try to do so.

jbrazio commented 8 years ago

Closing due to inactivity. Please re-open this issue if still valid.

Dennis02121978 commented 2 years ago

Here is the HX711 for Marlin and Klipper.

https://www.3dartmaker.de/forums/topic/platine-end-version/

Supported Nozzle as Probe for Klipper as Probe PIN or LoadCell per I2C with Klipper RF1000 Community Firmware. For Marlin supported all Version Nozzle as Probe.

Dennis

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.