-
Notifications
You must be signed in to change notification settings - Fork 994
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
My Laser uses the RS 232C communication protocol and not G-Code #1398
Comments
Hi, |
I have Pronterface on an RaspberyPi4 my goal is the automation or the control of the different 3D Printer elements throw Pronterface. The Laser that i am using is called YLP-HP-A which uses the DB25 cable. |
|
This looks like a powerful fiber laser... |
The laser doesnt move the Motors (Snapmaker F350) move the plateau, where the object will be build on. Its called additive process. after the laser hits the powder the object will be build level to level. I contacte the Manufacturer and these is there respond: "There is no control via Ethernet for these older lasers. The lasers are usually controlled via the DB25 interface (e.g. via a programmable control card)." and provided a document for me |
Exactly its a powerful and a dangerous laser, therefore i cant be testing around with it. And i am short on knowledge to be honest. I am new to all of this |
Hello @Dalinaffeti You are building a laser cutter out of two incompatible closed source components. I'm sorry to say it so directly, but this will not work the way you imagine it. Because the laser pulses and the movement have to be synchronized, the EM signal of the laser has to be controlled by the printer firmware, and not by the Pi, otherwise you will shoot the laser in places where you don't want to. You will not be able to talk to the laser controller from pronterface (or any other printer control application). You will need to implement support for the laser synchronization somehow in the firmware. Because the Snapmaker firmware supports laser cutting, it should be possible to get this synchronization pulse from the Snapmaker electronics, but this is something that might require additional hardware or the snapmaker manufacturer's permission and support. Once you have the emission modulation signal, you can control the remaining functionality of the laser (power level setting, safety features, guide beam, sequencing) using raspberry pi GPIOs, but this is not something you can do with pronterface - you will need to implement a piece of software and a driver to do all this. With a laser as dangerous as this you also need to think about safety interlocks which need to be implemented in hardware. If you're new to all this, it's probably not the best project to be starting with because of the danger involved. |
We are working on on installing Klipper on the snapmaker. If you could realise that will it be achievable to connect my Laser and the other elements together with pronterface? |
I'm sorry to have to tell you this so harshly, but if that's the case, then it will probably fail. If you are not comfortable and experienced with writing drivers for unfamiliar hardware and implementing hardware interfaces then this is a significantly too complex project for a bachelor thesis. To put it simply, the laser does not speak the same language as pronterface, and there's no way to teach it a different language. You will need to write a driver for it, that does speak the same language, and then implement an interface that can be accessed from Python, and then call that from Pronterface. You will need to implement functionality for setting the laser power, enabling the laser, and handle all the safety interlocks. After that, you can drive the laser beam timing from Klipper using a configuration like https://www.klipper3d.org/Using_PWM_Tools.html However, I want to make this absolutely clear: We will not do your homework for you! We're not going to implement new functionality just so that you don't fail your bachelor thesis. If you have chosen a topic that is not manageable within the scale of a bachelor thesis, then you need to take responsibility for that. I'll give you some pointers to work from, but this is not an issue we can help you with:
This is as much as we can do for you here - you're on your own from now. I'll close this issue now. |
Thank you for sharing your knowledge with me. |
Can you please help me connect my laser to Pronterface. And if i change the function written in Pronterface, is there anything that i should be aware of? This is will be not an easy task so i would appreciate every help
The text was updated successfully, but these errors were encountered: