New on openpnp, need help to setting openpnp with smoothiware

1,018 views
Skip to first unread message

manu f

unread,
Aug 11, 2021, 1:26:00 PM8/11/21
to ope...@googlegroups.com
Hello all,

I am Manu from France.
I just finish my pnp machine. It use a bigtreetech skr v3 with smoothieware.
Evrythings working outside openpnp. I have a top and down camera, and now I need to setting openpnp.

I start to read openpnp documentation and especially settup and calibration but I am very confuse with very basic step, ex axis setting, virtual axis .. etc.
For example I compiled smoothieware in cnc mode and 4 axis (I have a simple head), but when I googled I found outdated informations said that smoothie doesn't support rotationnal axis and must use extruder to bind with head rotational axis in openpnp..

Also with gcodedriver, I finaly understand that I need to put gcode command to settup the driver.. but I'm afraid to configure incorrectly .. all of this is very confused for me.

So if somebody have a "basic" machine.xml file set for smoothieware that will be a very nice point to start for me!

Sorry for "all this trouble"

Emmanuel
20210811_190234.jpg
Message has been deleted

Lance Endres

unread,
Aug 11, 2021, 7:18:35 PM8/11/21
to OpenPnP
Hi Emmanuel,

My "machine.xml" file is attached.  It is for a machine that runs a Smoothieware on a Smoothieboard.  It's obviously not going to work directly for your set up, but perhaps it will be useful to reference.  

-Lance

machine.xml

ma...@makr.zone

unread,
Aug 12, 2021, 2:10:09 AM8/12/21
to ope...@googlegroups.com

Hi Emmanuel

I assume you are the same Manu that commented on the blog:

https://makr.zone/smoothieware-new-firmware-for-pnp/500/#comment-292

You're on the right track, you best use my Smoothieware firmware.

Unfortunately I don't know about the "SKR 1.3 from bigtreetech". Is it the same hardware design as the original Smoothieboard, same MCU etc.?

Is the hardware properly Open Sourced? I won't help if not, I'm strict when it comes to Open Source violations.

If it is the same hardware, you can probably use my firmware. If not, you would have to port my changes over to the SKR firmware (assuming it is open sourced).

https://github.com/markmaker/Smoothieware/tree/feature/best-for-pnp

After you figured this out, you can use Issues & Solutions. Most is then set up automatically by OpenPnP including much of the G-code, regexes etc.:

https://github.com/openpnp/openpnp/wiki/Issues-and-Solutions

_Mark

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/CAGshWo2OxWWJUC8T88L0rOsDpFfroefvegb%2B-MgR%3Du7s77htPA%40mail.gmail.com.

Thorsten Wilmer

unread,
Aug 12, 2021, 2:45:23 AM8/12/21
to ope...@googlegroups.com
Hi

SKR 1.3 is shipped with Marlin. It uses the same chip as Smoothie board, but it's not aiming to be a clone.

As the smoothie authors woud like to see support through buying their hw I would not recommend to use smoothieware on this board - even if possible.

I am using my fork of a fork of Marlin 

which is quite self explanatory how to change the configuration.h. But I would not recommend you to take my fork as Marlin has mean while merged the 6 Axis support upstream.

If the machine is working with G-Code commands I would not mess with the firmware but just configure openpnp to send the "correct" commands.

Axis by axis - so at which point are you stuck?

Kind Regards
 Thorsten 



manu f

unread,
Aug 12, 2021, 7:48:11 AM8/12/21
to ope...@googlegroups.com
@Lance Endres, Thanks a lot I will check that!

@Mark, yes unfortunatelly it's me :-) As I know, for SKR 1.3 , shematic are public, so, hopes I will chock nobody, but it could being considered as opesource (really I dont want to go on this debate). I build my machine from different parts, as best as I can with with the means that I have..
Well, mark, the problem is with your version (even the original stock version you use for), I could not connect with pronterface or openpnp but if I try to connect with simplify3d's machine control panel it work!
If I use the last edge version of smoothie it work from scratch. I try to look to USBserial code library it's not the same code but kernel also not same..
For those interresting on I have these messages in pronterface console:
Connecting…Traceback (most recent call last):
File “printrun\pronterface.pyc”, line 1053,
in connect  File “printrun\pronsole.pyc”, line 720,
in connect_to_printer  File “printrun\printcore.pyc”,
line 46, in inner  File “printrun\printcore.pyc”, line 197,
in connect  File “serial\serialwin32.pyc”, line 31,
in __init__  File “serial\serialutil.pyc”,line 261,
in __init__  File “serial\serialwin32.pyc”, line 71,
in open  File “serial\serialwin32.pyc”,line 186,
in _reconfigurePortValueError: Cannot configure port, some setting was wrong.
Original message: [Error 31] Un périphérique attaché au système ne fonctionne pas correctement

(Of course I try to reboot my windows computer (sorry ;-)..
So if someboby have an idea?

Mark, I dont know if I could port your mods to the las edge version..

@Thorsten Wilmer, I have the last smoothieware working (stock edge). For the begining, in axis setting, I am well undertand the setting for X, Y and Z axis, for head rotation, I think I must use linear axis, not rotationnal. But if I well understand I must add "virtual" axis for up and down camera.. this is confuse for me.
Also I am not sure wich gcode command I must set in the gcodegdriver. but with the machine.xml file from Lance, I think I will understand better all of these.

Thanks all for helping, I will work and hope come back with more precise questions

Regards.

Emmanuel



Arthur Wolf

unread,
Aug 12, 2021, 7:51:52 AM8/12/21
to ope...@googlegroups.com
On Thu, Aug 12, 2021 at 8:45 AM Thorsten Wilmer <wilmer....@gmail.com> wrote:
Hi

SKR 1.3 is shipped with Marlin. It uses the same chip as Smoothie board, but it's not aiming to be a clone.

As the smoothie authors woud like to see support through buying their hw I would not recommend to use smoothieware on this board - even if possible.

We have no issue with Smoothieware being used on any board.
We just ask if you have an issue and you're using a non-smoothieboard, you ask the seller before you ask the community of volunteers.
We ask this just as a means to offload a bit of work from the volunteers.
If the seller doesn't answer or help (which is very common), asking the community is fine.
No limitation/issue otherwise.

ma...@makr.zone

unread,
Aug 12, 2021, 10:33:03 AM8/12/21
to ope...@googlegroups.com

> Well, mark, the problem is with your version (even the original stock version you use for), I could not connect with pronterface or openpnp

To understand correctly: What do you mean by "even the original stock version you use for"?

_Mark

Dave Park

unread,
Aug 12, 2021, 10:47:47 AM8/12/21
to ope...@googlegroups.com
BigTreeTech is an interesting company. As a Chinese company, they're a rare example of one participating in Open Source - even if they're not quite doing it right. They do publish all design files except the gerbers for their PCBs. This includes all schematics and code. They do state the files are open source and free to use, but they do not have any kind of formal license on their site.

Over the four years I've paid attention to them, they have acted 'responsibly' and not acted in a way that would be considered a violation.

Their Octopus board is what I'm currently using on my PnP. It's a quite well designed and built board. I chose it because: EIGHT stepper controllers.

Dave

manu f

unread,
Aug 12, 2021, 2:41:46 PM8/12/21
to ope...@googlegroups.com
Mark,

Sorry for my bad english. I mean even that the stock version where your apply your mod not working. I mean but this is evident, problem come not  come from your mods.
I check shematic skr 1.3 use lpc1768 and smoothieboard the lpc1769, but nothing special on usb schematic .. perhaps a subtlety on code or compiler ..

Arthur Wolf

unread,
Aug 12, 2021, 3:16:52 PM8/12/21
to ope...@googlegroups.com
On Thu, Aug 12, 2021 at 4:47 PM Dave Park <pla...@plasticuser.com> wrote:
BigTreeTech is an interesting company. As a Chinese company, they're a rare example of one participating in Open Source - even if they're not quite doing it right. They do publish all design files except the gerbers for their PCBs. This includes all schematics and code.

No they are not, no it doesn't.

They do not attach proper license with their files, you are *not* legally allowed to modify or distribute them, their current legal status is pretty much basic copyright, as far from open-source as you can be.
And last time I checked, they did *not* provide source files for their hardware, only jpegs and pdfs, which are *not* what open-source projects provide.

They *trick* a lot of people into thinking they are open-source, by saying they are when they aren't though.

manu f

unread,
Aug 12, 2021, 3:31:39 PM8/12/21
to ope...@googlegroups.com
heuu, I am sorry about this debate on bigtreetech who come and come each time, I have nothing to do with this problem !

You know I am just a 50 years old french electronician.. I need a pnp machine cause my eyes become old and it's difficult for me to put manualy smt components by hand and because I found openpnp project fantastic and could help me in mounting PCB prototype.

So I build a machine from scratch and sorry sorry I use a card who make debate... I will never do that again I promise!

I just ask some help from communauty, we talk about a serial port over usb who work with the last smoothieware edge version but not with the recommended smoothieware version for openpnp on a LPC1768 .. that's all.

Thanks for helping.

Emmanuel



Arthur Wolf

unread,
Aug 12, 2021, 3:54:17 PM8/12/21
to ope...@googlegroups.com
On Thu, Aug 12, 2021 at 9:31 PM manu f <e.fia...@gmail.com> wrote:
heuu, I am sorry about this debate on bigtreetech

there's no debate here, and nothing to be sorry about
btt pretends to be open-source when they aren't, sometimes people fall in the trap and repeat it, when that happens I point out that it's incorrect
not the first time this happens
it's easy for anyone to verify themselves (https://github.com/bigtreetech/BIGTREETECH-SKR-V1.3/tree/master/BTT%20SKR%20V1.3), so this really isn't a "debate" kind of thing

manu f

unread,
Aug 12, 2021, 3:58:50 PM8/12/21
to ope...@googlegroups.com
here error with ponterface:

image.png

but if I try with simplify3D machine control panel it work!

image.png
openpnp fail to connect

Arthur Wolf

unread,
Aug 12, 2021, 4:06:10 PM8/12/21
to ope...@googlegroups.com
Did you install the drivers? Can you try using a different computer?



--
勇気とユーモア

manu f

unread,
Aug 12, 2021, 4:17:57 PM8/12/21
to ope...@googlegroups.com, Arthur Wolf
@Arthur Wolf
as I understood no driver need under wnidows 10.
No, I will test on an other computer.
Thanks for your help Arthur.

ma...@makr.zone

unread,
Aug 12, 2021, 6:41:32 PM8/12/21
to ope...@googlegroups.com

> I mean even that the stock version where your apply your mod not working.

Ahh, ok, that's a good elimination test.

But if you say the edge version does work, then something the Smoothieware evolution since the 2019-05-16 version I used as base, has fixed an USB issue?

@Arthur, does this ring a bell?

Unfortunately, when I tried to port my mods to edge some time ago, it failed to boot, as soon as I used 6-axis endstop syntax (which I need!).

I will have to look at PRs since then  and cherry pick any USB fixes... but currently no time...

_Mark

manu f

unread,
Aug 12, 2021, 7:56:13 PM8/12/21
to ope...@googlegroups.com
@ma...@makr.zone : I thiink I port correctly your mod to the edge version : https://github.com/manuprendlair/Smoothieware-edge-openpnp

I compile it with make AXIS=5 PAXIS=5 CNC=1
and I am able to connect with ponterface and openpnp! :-))
BUT it is not recognize a the "good firmware" in openpnp :

image.png
Do I must change something in openpnp to correctly recognize it ? (or change something in the porting smoothieware openpnp edge version I did ?)

Regards.


manu f

unread,
Aug 12, 2021, 8:00:32 PM8/12/21
to ope...@googlegroups.com
Humm I must precise what I did .. I didnt take each mod code and port it individualy.. in fact I copy most of the source code of your version to the edge version and keep all usb / serial code from the edge version .. its  like an hybrid ( sorry soft guies..I know its bad, its quick and durty but it's solve my connection problem)

ma...@makr.zone

unread,
Aug 13, 2021, 2:23:09 AM8/13/21
to ope...@googlegroups.com

Hi Manu

That's great!

It seems you did not get all of it. My version adds the X-PAXES property to the M115 response, its presence is the tell-tale for OpenPnP. X-PAXES must also equal X-AXES.

All diffs (and the one highlighted) here:

https://github.com/Smoothieware/Smoothieware/compare/edge...markmaker:fix/scan-g-code-decimal#diff-a6050546c852f5aa99812f9e1e065615efd1cfa93afb524ad91f1329f0ac6145

_Mark

Arthur Wolf

unread,
Aug 13, 2021, 3:01:32 AM8/13/21
to ope...@googlegroups.com
On Fri, Aug 13, 2021 at 12:41 AM ma...@makr.zone <ma...@makr.zone> wrote:

> I mean even that the stock version where your apply your mod not working.

Ahh, ok, that's a good elimination test.

But if you say the edge version does work, then something the Smoothieware evolution since the 2019-05-16 version I used as base, has fixed an USB issue?

@Arthur, does this ring a bell?

There was one change to USB, but he tried porting that and nothing happened.
My main suspicion right now is he's running the lpc1768, and we code/test smoothie for the lpc1769.
We get reports of users with weird issues (crashes, missed steps, usb issues, etc ) with 68 board on a regular basis.
But no way to be sure.


--
勇気とユーモア

manu f

unread,
Aug 13, 2021, 3:54:50 AM8/13/21
to ope...@googlegroups.com
OK Mark, I see. This is beacause I take communication module from edge version but not compare much difference with you mods.. as much for me, I will correct this.

Thanks.


Arthur Wolf

unread,
Aug 13, 2021, 3:56:28 AM8/13/21
to ope...@googlegroups.com
Talking about it more on my side, the 68/69 bugs I'm talking about tend to be random, and your issue seems to be reproducible, so it's likely not that.



--
勇気とユーモア

manu f

unread,
Aug 13, 2021, 3:59:03 AM8/13/21
to ope...@googlegroups.com, Arthur Wolf
@Arthur Wolf
I try only to port difference in lib USBserial, not differences in communications modules code ( I saw there are). Nevermind, mixing version I made look like to work. I will add M115 Mark's mod.


manu f

unread,
Aug 13, 2021, 2:45:18 PM8/13/21
to ope...@googlegroups.com, ma...@makr.zone
@mark
I complete your mods to the edge version.
now I havent any error on gcodedriver in issues and solutions tab! :-)

I understood that with your firmware, gcode tab from gcodedriver was autocomplete with right command.. do I misunderstood or is ther another step for that ?

Thanks all for your suport.



manu f

unread,
Aug 13, 2021, 2:47:26 PM8/13/21
to ope...@googlegroups.com
For those interresting on this version, I will push it to my github as soon as I'm sur it work!

ma...@makr.zone

unread,
Aug 13, 2021, 3:42:18 PM8/13/21
to ope...@googlegroups.com

> gcode tab from gcodedriver was autocomplete with right command.. do I misunderstood or is ther another step for that ?

You need to use Issues & Solutions and accept each proposed command and regex explicitly.

Issues & Solutions will only propose some commands. But at least those are the most complicated, i.e. automatically adapted to the axis configuration of the machine.

You will still need to manually add other commands, especially all Actuator commands and regexes (Light/Vacuum). There is no way for OpenPnP to know how your actuator signals are wired.

_Mark

Edmunds Sprudzs

unread,
Jun 7, 2022, 7:40:23 AM6/7/22
to OpenPnP
Dear Manu,

I have the same problem with my board, which is MKS sBase V1.3 - I cannot connect with Pronterface and OpenPnP, but Simplify3D connects just fine. I tried to compile your code from github, but it is not cooperating with me in mbed studio and neither it is happy to do the classic smoothie compile with all the windows exe files. The latter results in errors like so:

Building src
make[2]: Entering directory 'C:/Users/Edmunds/Documents/Smoothieware-edge-openpnp/mbed/src'
Deploying cpp/BusInOut.h to drop
c:/users/edmunds/appdata/roaming/gnu mcu eclipse/build tools/xpack-windows-build-tools-4.2.1-2/bin/sh: copy: not found
make[2]: *** [makefile:82: ../drop/BusInOut.h] Error 127
make[2]: Leaving directory 'C:/Users/Edmunds/Documents/Smoothieware-edge-openpnp/mbed/src'
make[1]: *** [makefile:12: src] Error 2
make[1]: Leaving directory 'C:/Users/Edmunds/Documents/Smoothieware-edge-openpnp/mbed'
make: *** [makefile:7: all] Error 2

Could you maybe upload a compiled binary? Or maybe you know where the problem is with above?


Thank you,

Edmunds in Latvia

A disclaimer of sorts: While I do not know all the history about stolen smoothieboards, I tried my best to acquire a so called 'legit board' with zero success. I cannot wait 2+ years for a maybe v2 finally on kickstarter and there are no active sellers of v1 I could find.

Edmunds Sprudzs

unread,
Jun 7, 2022, 7:40:23 AM6/7/22
to OpenPnP
Dear Manu,

Thank you for your efforts! I'm battling the same issue with Makerbase SBase V1.3 board - no connection in pronterface or openPnP, while everything works fine for Simplify 3D. I'm trying to compile your code, but I'm failing somewhere with mbed that I'm still looking into and default smoothieware way fails with

c:/users/edmunds/appdata/roaming/gnu mcu eclipse/build tools/xpack-windows-build-tools-4.2.1-2/bin/sh: copy: not found
make[2]: *** [makefile:82: ../drop/BusInOut.h] Error 127
make[2]: Leaving directory 'C:/Users/Edmunds/Documents/Smoothieware-edge-openpnp/mbed/src'
make[1]: *** [makefile:12: src] Error 2
make[1]: Leaving directory 'C:/Users/Edmunds/Documents/Smoothieware-edge-openpnp/mbed'
make: *** [makefile:7: all] Error 2

Do you have a binary you could post, maybe? Or you know the source of my problem?


Thank you,

Edmunds

On Friday, August 13, 2021 at 2:56:13 AM UTC+3 e.fia...@gmail.com wrote:

Adam Tamimi

unread,
Jan 15, 2023, 6:48:06 PM1/15/23
to OpenPnP
Dear Wilmer 

I just want to let you know that the config file you suggest gives two or more error messages and doesn't compile.

I look forward to hearing from you 
Tamimi 
Reply all
Reply to author
Forward
0 new messages