Control 5 volt relay
-
Hey I'm new to duet coming from smoothieware just wondering whats the best way to control a 5 volt relay to control my heated chamber fan, and multiple 12 volt fans that were previously installed on the printer (now using 24v supply)? In smoothie i just just assign gcode command and what the output pin is, is it a similar process in marlin. I just ordered a board, and wanna prepare for the intall.
-
What board did you order?
If a Duet 2
You can probably connect the fans directly. You can supply a separate voltage source (12v in your case) directly to the fan connectors via the V_Fan voltage selector pin. It can be provided by a separate PSU or a buck converter.https://duet3d.dozuki.com/Wiki/Connecting_and_configuring_fans
Duet 3 has a built in 12v regulator
-
Thanks for the reply. that would work great for the 12 v fans and any leds i need to power ( since i just want the leds on during the print anyway) . I also planned on powering my heated chamber with a gpio to leave room for another extruder, is that not doable?
-
There are a lot of options, but I still don't know what board you're going to be using, so I'll just say that in general anything is possible.
On the Duet wifi the pins are a bit more proscribed than they are on the duet 3 which has very generalized io pins, but they can still be repurposed rather broadly.
If you just want to trigger a relay for the heater that's easy enough to do.
-
Yea sorry i ordered a duet wifi . Yea sorry about all the questions just dont wanna burn up a board assuming i know something i dont lol. would i need to get a 3.3v relay or is 5 volt fine?
-
No worries, ask away, that's what the forum is for.
What exactly do you want to control? Perhaps it would be best to give us some detail on your hardware current setup and then when we have a general idea of what you want, we can give you suggestions on the best way to obtain that.
There is also a wealth of info to be found in the documentation.
-
@Phaedrux well i think i figured out a easier plan for the fans, ill just buy 24 volt fans and avoid all the complication and wires. My First real issue is turning on the chamber heater fan when i set the temp (same unit separate leads), i know there's a temp trigger option but i dont want it powered up without air flow, i know i can just hook it up to the always on fan output but i dont want it on 24/7. Second less important issue is sending a signal to the ssr for the chamber heater without using the e1 hookup incase i need add another hot end in the future. My third issue is powering leds, id like an independent command to power them using a 5v relay but i guess i can just hook them up to the third fan output and just use a m206 command to power them on and off.
-
@davidvh86 said in Control 5 volt relay:
would i need to get a 3.3v relay or is 5 volt fine?
Most 5V relay boards should work fine with a 3.3V control input. If your board doesn't, then there will be a resistor (the one in series with the control input) whose value you can reduce to make it work with 3.3V.
Most SSRs are specified to work with any input from 3 to 32V, so again can be driven directly from a 3.3V output.
-
@dc42 Thanks for the reply, how would i designate that pin as the output in the configuration files. Like i said earlier im used to smoothieware where i have one config file where i specify the pin output and whether its pwm or not.
-
@davidvh86 said in Control 5 volt relay:
@dc42 Thanks for the reply, how would i designate that pin as the output in the configuration files. Like i said earlier im used to smoothieware where i have one config file where i specify the pin output and whether its pwm or not.
For maximum flexibility in allocating pins, I suggest you use RepRapFirmware 3.01. This is close to release now and the release candidate is stable.
You can use the online configuration tool to specify which pins you want to use. It will generate M950 commands in the config.g file to assign those pins. See https://duet3d.dozuki.com/Wiki/Gcode?revisionid=HEAD#Section_M950_Create_heater_fan_or_GPIO_servo_pin.