New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: could not convert string to float: line 1995 pronterface.py #1393
Comments
Guess, you are running an old version of Pronterface. Please update to the latest version. |
I'm running 2.0.1 from the official site. x64 package. As for the Baud value I checked pretty much every possible one. It's 250000 in my firmware config (on the MKS SBASE system microsd card). |
Try lower the baud rate to 115200 on both, Smoothieware config and Printrun. You need to reboot the controller. Btw, I was never able to get this controller to run smoothly without errors at such a high baud rate. |
Thanks for chiming in. No luck though. I tested by setting values both in the config of the printer board as well as in Pronterface, always resetting the printer after config value change. This way I tested both 115200 as well as 9600 bits per second in combinations with both available USB ports (COM3 and COM4). Why 9600? Because I noticed that in Control Panel > Devices>...>Port settings the bitrate for the 3 and 4 ports keeps reverting to 9600. Still no luck. |
Well, scratch that. I have noticed something weird. After config edits my printer is paralyzed. So we won't even know if it isn't connecting due to comms problem or due to its paralyzed state. It boots and allows me to browse the LCD menus but won't respond to any commands. Motors quiet, bed and hotend temps at 0/0. Specifically it does that when I dare to touch ANYTHING in the port section of the config! Despite being able to succesfully change steps per mm for extruder. I even read the documentation on the touchyt nature of Smoothieware, didn't use Npp, saved as - ANSI encoding, everything. |
Smoothueware guys say the baud rate is irrelevant when connecting via USB |
Update: What I did: Run as Administrator My very first G-Command issued:
M115 still gives no return. |
Thanks for sharing your progress. It seems the firmware would not accept the |
That error prevented the printer from connecting. After using the Administrator mode for running the executable I am able to connect, use the printer and I do not get that "value error" anymore. M115 is not accepted due to ancient firmware version (early 2017 at best). |
Happy to hear that. Could we consider the issue as resolved then? |
In my opinion this kind of software should not require to be Run as Administrator for basic functionality. |
Hi, Why do I say this? Because of one of my self build printers has a MKS Sbase 1.3 as print controller and is doing the job quite well with all Pronterface versions so fare. I use this printer usually for big prints with up to 72 hours print time. Anyway, this won't help you. Best advice I can give you is updating your printer firmware and config file and in case your touch screen is from mks as well you should update the firmware and config file for this device too. Edit: Guess I need to explain how this works. We are talking about different things here:
Here as well: I would suggest don't use 250000. This speed is not reliable and you will notice that the screen module will sometimes crash during a print in an unpredictable way. You will have a bad day if that happen during long prints (Guess, why I know that...) |
Ad your remarks Updating firmware is risky, knowing that my printer is fully functional and, as of this week, finally connected and controled via USB! Hell, https://github.com/makerbase-mks/MKS-SBASE doesn't even provide firmware and smoothieware.org is down. Only by my guess this is supposed to be the right place for firmware https://github.com/Smoothieware/Smoothieware and this https://github.com/Smoothieware/Smoothieware/tree/edge/ConfigSamples/Smoothieboard for config file EDIT: EDIT2:
|
This seems to end in a MKS and Smoothieware session. :) Here you will find all TFT2.8/3.2 firmware releases: Btw, I saw, your MKS Sbase config files are ANSI coded. My files are all utf-8 coded and is the correct coding as fare I know. Had you open and save the file as txt in a text editor? You should not do that. This is a well known source of trouble. Use a coding editor like notepad++, VSC etc for editing the file. In addition you don't need the extension .txt. This will prevent to open the file with an normal text editor as well. "Looking into TFT config - do I even use Smoothieware?!" Regarding risky update: Regarding firmware for MKS Sbase from MKS: Regarding config file: Regarding smoothieware.org: So, I guess this is all I can do for you for now. |
@DivingDuck Please baer with me a litle bit longer :) Our firmware and config sources do match. What I did:
Unfortunatelly the printer seems to be config-zombified. It boots, doesn't respond to commands and shows 0/0 temps for bed and hotend - exactly as it behaves when it deems the config file as 'corrupted.' I'll try to fiddle with the encoding etc. but note that there are conflicting directives on editing of the config. Unix end of line format and ANSI is what I got form smoothieware.org wiki! Anyway, if you could take a look at the files and maybe share some tips in the meantime, that would be really awesome. config - copy clean from LUME manufacturer 2023-09 |
I've just tried saving as config.txt and UTF/ANSI plus EOL Win/Unix in all 4 combinations. No success. That's why I'd really appreciate if you could take a look at my files or share your config. |
I went a different route. Took:
Guess what. During the process I had to STAY AWAY from the section of the devil!
Even though the github file has its own equivalent lines touching anything in the section above zombifies the printer! So I went around that section, qiute literally. I think I've got 99% transfered. Beeper on the TFT killed with a screw :D I wish I could get rid of that useless RepRap splash screen logo during the TFT startup as well. |
Sorry for my late answer. Regarding UTF-8: I did this for you (hopefully I did not forgot an entry...). The zip file includes 3 files: You will find in the new config file remarks from me like: Edit: Regarding splash screen logo: |
@DivingDuck I don't know if you read my latest post before doing all that :) but except for the Satanic Serial section I got 99% done and working with the printer. My plan now:
Regarding splash screen logo: From what I've read getting rid of it only gives you blank screen, no additional boot info. Re the following: No, it's not the same. It's an SMD thermistor. I used the datasheet Beta 4120 value instead of the rt_curve because the smoothieware wiki listed the curve for a different EPCOS100K variant, i.e. not B57620C104J162 I'm using. I had to replace it after accidentally cracking the original one. One quality of life impro I'm after is having the hotend fan not spin all the time while not printing. I might hack it with an actual manual switch. EDIT: EDIT2:
. |
@DivingDuck Unfortunately, I ran into a problem with overzealous Smoothieware thermal runaway protection for the hotend. It keeps halting my prints on layer 2 or 3 (Z=0.5 at 0.2 layer height), some 60 seconds after the hotend cooling fan comes on. There is no way to disable that "feature" and testing with the following extreme values did not help a bit. Any ideas, Duck?
EDIT: EDIT:
|
You can deactivate the runaway protection by setting the timeout to 0. It is a bit risky, but for testing ok as long as you are near by your printer in case something goes really wrong. Better you find out why smoothie is thinking there is a thermal runaway fault. Here can you find some more details: |
I read the wiki and tried the 0 value already. This is what pisses me off to be frank. The entire module should be disablable for the exact reason of 0% of probability it will never need troubleshooting. It's sad that after all this work (yours and mine) I'm going to have to get back to the old firmware. On the other hand, I consider it a lesson. I also get why you asked whether I have the same type thermistors on hotend and heatbed. I accidentally changed the name of the hotend thermistor. The mistake only affected commented-out lines, so had no effect. No, Pronterface readings are smooth and the printer immediately goes zombie in cases where there's a disconnection of a cable. I know from experience. |
Wait. The error says Thermal runaway on B. Isn't it the heatbed?! |
Hm, |
Ha, cross posting. B is the bed thermistor then |
WTH?! There are no bed related thermal runaway settings in the config! Yes, I'm pretty sure. I used the 4120 Beta value for exactly the part number Most importantly, it worked before the firmware upgrade :) |
It is by default on for all kind of heaters.
Instead of "hotend" use "bed" |
We did it man! We fooken did it! I edidet the xyz cube G-Code and changed the second bed temp from M140 S30 to S55, then to S40 somewhere around line 1000. Yesss! L:D Thank you! I'll check the runaway section cloned for bed temp later. Now my problem is the same as pre-FW update. Changing E steps per mm has no effect (changed in MKS config). In fact, after comparing the 25 mm XYZ cubes of various E steps per mm, pre and post FW update, they are identical down to a ripple, down to a smidge. The printer is ready in general but in some detailed prints that slight underextrusion bites back. There are also small holes in infill and supports sometimes. Take a look Here are some photos with my 0.6 nozzle (please disregard the already fixed first layers problem) |
Congratulation! Well, Ripple can be introduce with temperature changes of the print bed. This is why I suggest not to change the bed temperature in general especially for those printers with thin beds. An other source for ripple is too fast printing for infill and only one outer wall. Wet filament can also introduce those effects. And so on. Regarding your cubes. There is a little bit ghosting. Try to play with acceleration and junction deviation settings. Top layer seems to have a little bit too much filament. There is a setting in Cura for reducing the flow in the material section (since Cura 5.6). |
Can you recommend an article on PID tuning? By ripples I meant the natural ripples (very slight variations in layering), present in even far more expensive printers. With the E steps, lack of response to changes is what worries me. Any hints? I mean going from the default 180 up to 196 should be well visible. I used the 200 mm extrusion feed method to obtain ~195, then I increased to 196. Tomorrow I'm going to slap it with 220 or something like that. I'll try an extreme value tomorrow, along with making sure it's not Cura's fault to some degree (I'll post on the forums). Ghosting on Y axis that's pretty much the only flaw there, isn't it? Acceleration and junction deviation settings is sometyhing I've never dived into. I'll put it on my to-do. For info: The bed on my printer is rather thick. EDIT: |
PID: E-step callibration: https://reprap.org/wiki/Calibration#Extrusion is a good source. Or: https://www.youtube.com/watch?v=0ImurmbV5pE Edit:
I have more than one bed, so my numerator is bed1, bed2 ... |
@DivingDuck Thanks for the PID examples. I'll get to it. In the meantime I confirmed changing E steps per mm has no effect, even with extreme values like 240 instead of 180. |
@DivingDuck I don't know how much more of babysitting do I get but posting my process anyway. FYI, I've got only one hotend, one bed, and one Z screw :D The hotend runs were pretty consistend. Not so much for the bed. Much bigger mass, maybe that's why. Anyway, I'm going with those values for now. I don't know how to decypher the return from M503 to compare to the original values:
EDIT:
|
again, this time with 3DBenchy, even with
One detail tells me this firmware is a no keeper. The bed temp dropped (as commanded) after the frist layers. At Z around 5mm it was already at stabilized 30 deg C. The error occured at Z around 22.5mm. EDIT: |
A remark on PID tuning have nothing to do with runaway conditions ;) |
I get that PID/noPID might have been a coincidence. As for the 63: How can it be when the default value is 20? Even the comment says it's allowable delta, not a threshold. |
because of: Edit: You may be correct. Please set the bed control values back to the default values (deactivate with #) and then make a new print with Pronterface. Observe the terminal window and check if there is a error message when the print stops again. In addition you can take a look in the log file of Pronterface In addition it is maybe worth checking the gcode file as well. I still wonder why you have those problems. I'm running the actual Smoothieware firmware w/o any problem. I guess there is something wrong with your configuration or hardware and we need to find out what the problem is. |
I think we got tangled in the conversation :) I don't claim it's the default. I claim that:
I'll stop disabling bed heating after first layers from now on. I don't know what else I could do apart from this and leaving the value at 63. |
Sorry, I was editing my comment above while you was answering. |
There's not much to expect from future occurrences. It's always like this |
What happen if you set You can measure, how long it take to cool down the bed from/to what ever temperature you want to set it and then take the values that matches with your bed under real conditions. A bit of trial and error :) |
I have it like that from the start (when I added the bed section), uncommented: |
-- deleted-- |
@otede, |
Pronterface still keeps shooting at me with this and siomilar errors but it works, so you tell me ;) I thank you again for your assistance before. All the best in New Year! |
Hi!
Since the Ethernet connection on my noname 3D printer is nonfunctional USB + Pronterface seems to be my last hope of getting any PC integration and control. When I tried it for the first time however I get the following errors in loop after hitting the connect button:
Windows 10 x64
LUME Plus printer based on MKS SBASE v1.3 and smoothieware
Smoothieboard shows up in my windows devices and I can see the files on the board micro sd card (the one that holds firmware and config).
The text was updated successfully, but these errors were encountered: