I am running an Adimlab Gantry S (ender 3 clone) with a Pandapi v2.5, raspberrypi4 2g and 4 tmc2208 in standalone with the newest version of the 64bit firmware. I think there may be a timing issue in stepper.h due to the increase in clock cycles from a change to 64 bit. The speed increase appears to be double but that is an estimate. Is there a way to calibrate the speed or is it a calculation in the firmware?
To see this working, head to your live site.
Search
Feb 1
With the new 64bit firmware, there seems to be an increase in stepper motor speed. This is not a change in esteps as the parts are correct
With the new 64bit firmware, there seems to be an increase in stepper motor speed. This is not a change in esteps as the parts are correct
4 answers2 replies
0
search "PANDAPI" marlincore.cpp as the following, you can change the value for calibrate the speed. e.g. increase the 42 to higher value will slow down the speed.
// PANDAPI int pi_n=read_version();// if(pi_n==-4)//pi4b step_motor_init(stepper.isr,42); // else if(pi_n==3)//pi3+ step_motor_init(stepper.isr,12); // else //if(pi_n==-3)//pi3b step_motor_init(stepper.isr,12); //
Ok will give it a try and will let you know what setting works for me.
Ok, Mark, I did a simple test item gcode and sent it to the 64bit and the 32bit cards. I timed the 32 bit as a baseline (this was from the start of the object to nozzle lift and did not include the skirt). I then tried a few different numbers for the stepper.isr (compiling after each change) and came up with 66 which printed the test file in the exact same time as the 32 bit did. I think I am now good to go. I will do a longer test later.
I am missing something (understanding). I only see three editable files when logged into my Pi' IP address; pins_PANDA_PI.h, Configuration_adv.h, and Configuration.h.
Using the example from Yue Mark in his post above, I did a search for "PANDAPI" marlincore.cpp, and I get no results, so it is not looking for the search phrase, or the fact that the image I am using is the latest 32 bit version. (Even with the documentation, I have no idea how to integrate components. It is well beyond my understanding) Editing Marlin is simple in the Arduino IDE, but the file structure isn't exposed even when I take the SD Card out of the Pi and attempt to edit it on the computer.
To test the Search capabilities, I did a search from Configuation.h, looking for "Servos" pins_PANDA_PI.h. I did not find it, and it does not find anything in another file using the example format.
What am I missing?
windows does not show the sdcard linux file partion by default. I have an old chromebook which I hacked to run ubuntu and I was able to access the files that way. You could download a "live" linux distro which you can load on an sd card and boot your computer from ( it does not install anything on your computer unless you ask it to) but gives you a linux desktop os unitil you reboot the computer. One option would be to download Rasperian with desktop onto a second sdcard and boot the rasperry pi from that and use a usb sdcard reader to mount the Panada pi sdcard. This will give you a linux desktop that you can view and edit the files. The other option would be to install the desktop one your raspberry pi and use a hdmi monitor , keyboard and mouse. Of course if you know linux command line, you can edit the files via ssh ( not for everyone). The 32 bit os ran fine so no editting should really be needed. I only had the increase in speed when I went to the 64 bit image.
Thank you very much David. I've downloaded the the Raspian Desktop, but haven't imaged an SD Card yet.
I have Putty installed, so I can use SSH, but I do not know Linux. I'm capable of following instructions I see here and there, but that's it.
Thanks again.