[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 574: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 630: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5348: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3937)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5348: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3937)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5348: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3937)
Build Your Own SLA/SLS • Simple Light control
Page 1 of 3

Simple Light control

Posted: Sun Nov 16, 2014 10:31 pm
by DoctorProfessorGuy
Hello, I'm DoctorProfessorGuy, I'm terrible at names and I am new to SLA 3D printing. I'm trying to create a simple 3D printer based off of an LCD and UV lEDs, not unlike the ibox nano Kickstarter project. I've got almost everything down pat, I just need to get a way to control my light source. I will be using 1 3W to 50 small UV LEDs, whichever setup works best. Is there a way I could set up my teensylu board to directly control the LEDs (their circuit will be separate from the LCD, I don't want to mess with the LCD, also it is a limited cheap LCD). I'm guessing I should use custom g-code mapped to some unused pins, but I'm not sure. Also, anyone know how to set up Sprinter or Marlin for SLA properly with a teensylu?
Thank you.

Re: Simple Light control

Posted: Sun Nov 16, 2014 10:47 pm
by Phife
The way I do it with RAMPS is just to use the fan output pins to control a relay that turns the LED array on and off. With RAMPS and the Marlin Firmware I use command M106 to turn the array on and M107 to turn it off. Simple..

Looks like the Teensylu has a fan output, perhaps it works in a similar way. Other than that you will have to modify the firmware to use one of the output pins to turn a relay on and off.

Re: Simple Light control

Posted: Tue Nov 25, 2014 10:20 pm
by DoctorProfessorGuy
Nice. I don't suppose you could post some more specifics of what you did, or a screenshot of what you modified in the firmware? I'm not trying to be lazy, I just want to see what you did before I try and potentially blow my board or LEDs, I'm still a noob at programming and such. Thank you.

Re: Simple Light control

Posted: Tue Nov 25, 2014 10:26 pm
by DoctorProfessorGuy
OH, and would it be possible to do a similar thing with say the hotend pins in case the teensylu doesn't have fan pins? Or even power the LEDs off of the hotend pins? I mean, what sounds a lot simpler and convenient than doing some sort of relay setup for the LEDs.

Re: Simple Light control

Posted: Wed Nov 26, 2014 12:29 am
by PomeroyB
You'll need to find out the rating of the transistor/MOSFET that is used to switch the pins on the Teensylu. If your power requirement fits the rating, you should be able to hook it up directly.

If not, it's relatively trivial to set up a relay. There are boards ready made () that you just hook a 5v pin and power up to.

If you want to do PWM, you should look into using a SSR or getting a MOSFET rather than a mechanical relay.

Re: Simple Light control

Posted: Wed Nov 26, 2014 6:40 pm
by DoctorProfessorGuy
Perhaps the relay would be easiest. I'm only looking at a maximum 10W set of LEDs. No I don't plan on PWM, I'm trying to make this as simple as possible, maybe voltage dimming/control if I need it via a dial no software or anything. Also I cannot find consistent accounts of the mosfets on the teensylu, so that is a factor in the decision

But anyway, I'm still confused about the software. I'm not entirely sure how to do this as I'm not sure how it is normally done in projector SLA printers.For usual DLP projector printers, am I correct in my guess that the projector light is controlled directly via the computer and not the control board? What would be best approach to do what I am trying to do and use the fan pins instead?
Thank you again, you are most helpful.

Re: Simple Light control

Posted: Wed Nov 26, 2014 6:42 pm
by DoctorProfessorGuy
Stupid small screen, I couldn't see who the posts were from and I thought it was the same person again. Thank you to everyone who has replied. :)

Re: Simple Light control

Posted: Wed Nov 26, 2014 6:59 pm
by Phife

Re: Simple Light control

Posted: Thu Nov 27, 2014 12:45 am
by DoctorProfessorGuy
OK, well I already have some optics ordered for the LEDs, as well it is a very small LCD (around 3.5") and I will be removing some of its filters and anything unnecessary like back-light propagators of whatever they're called. I even have a non UV blocking polarizer to use as a replacement in case the one within the LCD blocks UV light. And if all of that fails I do have 50 regular size LEDs I could pack into a dense light source board, and I can always order LEDs of greater wattage. Would you recommend I do so? 400W seems much would 20W or 50W be reasonable?
Thanks.

Re: Simple Light control

Posted: Thu Nov 27, 2014 12:47 am
by DoctorProfessorGuy
Also, 21"? Nice. I was thinking that if I can get my miniature printer going and figured out all the kinks I could try something of that size eventually.