Welcome! Log In Create A New Profile

Advanced

Need advice before connecting TTL laser driver to prusa i3

Posted by Mister Fab 
Need advice before connecting TTL laser driver to prusa i3
April 08, 2016 01:05PM
Hi all,

I just received all I need to modify my prusa i3 into a laser cutter.

I bought a chinese laser on ebay to make my first tests, I will see next to buy a better one.

The laser is this the one on the attached photo

I tested my D9 output and it gives 12V. As the TTL input accepts 5V I built a regulator using a 7805 circuit as on the schematic attached.

Does everything seem ok? I wouln't like to burn the driver at first try.

Thanks in advance for your answers.
Attachments:
open | download - laser.JPG (60.1 KB)
open | download - Regulator.jpg (35.2 KB)
Re: Need advice before connecting TTL laser driver to prusa i3
April 08, 2016 02:51PM
I would not use the 12V mosfet-controlled outputs. They don't give a pulse between 12v and 0V
that can be used here. My understanding is that there is always +12V and the N-fet gives a path to GND.
This is a problem if your laser driver is already grounded.
Instead it is better to find an unused pin, such as one of the servo pins on the ramps.
Re-configure your software to have the fan use that pin.

I have that laser driver also and it works fine using PWM to the TTL port.
Fully adjustable between 0 and 255.
Re: Need advice before connecting TTL laser driver to prusa i3
April 08, 2016 03:04PM
I'm surprised about your answer.

I tested the output with my oscilloscope, and I got these results using the M106 command from 0 to 255
Attachments:
open | download - 20160318_172508.jpg (75.5 KB)
open | download - 20160318_172518.jpg (62.1 KB)
open | download - 20160318_172547.jpg (61.9 KB)
open | download - 20160318_172632.jpg (60.2 KB)
Re: Need advice before connecting TTL laser driver to prusa i3
April 08, 2016 03:19PM
There is no common ground, what is common is the high side, +12V,
It is only when mosfet is "on" that there is a common ground.
This is no problem when connecting the 12V to a heater, a fan or any
other free device. But when connected to an other device that already
has a path to ground, that most of the electronic devices have,
the mosfet has no effect since there is already ground.
Admittedly this is at the edge of my comfort zone.
Had it been a P-fet than it would have been possible.
With the N-fet I advice against it. And most if not all breakout
cards like ramps use N-fet.
Re: Need advice before connecting TTL laser driver to prusa i3
April 08, 2016 03:35PM
Ok, I understand better. Thank you.

I have been looking around a lot to find information on how to connect a laser on the ramps.

Could you give me any information, or any links so i would be able to modify marlin?

My idea is to make a double head so I can use the extruder or the laser.
Re: Need advice before connecting TTL laser driver to prusa i3
April 08, 2016 04:01PM
I think the easiest is to take one of the servo pins if you use RAMPS.
For example SERVO 4 uses D4. (Ref. [rigidtalk.com])
Connect signal and ground from SERVO 4/pin 4 to TTL on the laser driver.
Then you do M42 P4 S10 and the laser should give some light.
Switch off M42 P4 S0
You can use this in a program as well, but precede it with M400 like
M400
M42 P4 S230

If you want that M106 should control this pin 4, then you go into this file [github.com]
and search for FAN_PIN and set it to 4 for pin 4. Then M106 S123 control pins 4.

Sketchy, but should cover the important I hope.

Edited 5 time(s). Last edit at 04/08/2016 04:24PM by falwty99.
Re: Need advice before connecting TTL laser driver to prusa i3
April 08, 2016 04:25PM
Quote
falwty99
Connect signal and ground from SERIAL 4/pin 4 to TTL on the laser driver.

Do you mean ground and pin 3 (D4) to respectively ground and signal of the laser TTL?

Edited 1 time(s). Last edit at 04/08/2016 04:26PM by Mister Fab.
Re: Need advice before connecting TTL laser driver to prusa i3
April 08, 2016 05:08PM
yes.
Should be SERVO 4, sorry.
Re: Need advice before connecting TTL laser driver to prusa i3
April 09, 2016 02:00PM
See
[jtechphotonics.com]

not exactly your laser
but principles and electronic driver similar



wear your red goggles
you won't need a white cane

confused smiley
Re: Need advice before connecting TTL laser driver to prusa i3
April 10, 2016 09:02AM
Thank you cozmicray.
I already got information from this website, and that's why I wanted to use D9 as their driver uses that pin also.

I won't have much time to test during the weekend anyway, but I keep questioning myself about the differences between jtech driver and my chinese driver that couldn't use D9.
Re: Need advice before connecting TTL laser driver to prusa i3
April 10, 2016 09:13AM
Hehe, well you can always try.
I am not always sure of electronics stuff, but I found this on the jtech description of their laser driver.
Quote
jtech
The input connection provides an optically isolated input for control of the laser diode. The connection and the jumper settings were described in the previous sections. The voltage required to turn on the opto-isolator is 2.8 volts. The input can handle up to 36 volts at no more than 50 ma. The input can be cycled with no degradation up to 5KHz.
Optically isolated input = it's ok with a N-fet, no ground issues. I think they have realized the problem with D9.

What you can do is to check if one of the TTL inputs on your laser driver are connected to ground.
If not, then it should work with D9.

Edited 1 time(s). Last edit at 04/10/2016 09:25AM by falwty99.
Re: Need advice before connecting TTL laser driver to prusa i3
April 10, 2016 04:28PM
Thank you for you precision falwty99.

I just try to understand everything. I don't really have an high electronics skills, you seem to understand much better than me the TTL stuff. winking smiley

When you say to check if TTL inputs are connected to ground, am I right if I test the continuity between these wires and the minus of the 12V laser power input?
Re: Need advice before connecting TTL laser driver to prusa i3
April 10, 2016 06:12PM
I've looking for the same kind of answers: [forums.reprap.org] even same module

whats have you accomplished?
Re: Need advice before connecting TTL laser driver to prusa i3
April 12, 2016 03:21PM
Hi

Sorry I just saw your message.

I will be away from home for a few days so can't work on it.
I just had a look at your topic. You seem to be getting something interesting.
Re: Need advice before connecting TTL laser driver to prusa i3
April 13, 2016 03:01AM
Check if there is zero resistance between the TTL negative pin on the laer driver and ground on the ramps board,
if so they have a common ground: don't use D9.
If the multimeter reads like megaohms between ramps board ground and the TTL negative pin,
then you can use D9, if voltage also is ok.
Sorry, only registered users may post in this forum.

Click here to login