Intercept M140 and M190 GCODE to control relay for bed power #275

Open
opened 2019-12-06 00:50:52 +00:00 by DroneMang · 0 comments
DroneMang commented 2019-12-06 00:50:52 +00:00 (Migrated from github.com)

Hi,

I have a relay controlling the 24v psu on my printer, and a relay controlling the AC power going to the bed. I would like to trigger the relay for the bed to be on if M140 or M190 is sent to the printer, and the relay to shut off if the bed is commanded to be off. I have an SSR that the control board runs to actually run the bed, that works fine and is not part of this request. I just want to be able to control the AC power coming in from the RPi. Can this be done somehow?

Also, I would like to use a redundant thermistor in my hotend to monitor the hotend temperature directly from the RPi so that the tempfailsafe plugin could kill the power to the relays controlling AC power to the printer. Would it be possible to read the thermistor temperature using an ADC and normal hotend thermistor with this plugin?

Thanks!
DroneMang

Hi, I have a relay controlling the 24v psu on my printer, and a relay controlling the AC power going to the bed. I would like to trigger the relay for the bed to be on if M140 or M190 is sent to the printer, and the relay to shut off if the bed is commanded to be off. I have an SSR that the control board runs to actually run the bed, that works fine and is not part of this request. I just want to be able to control the AC power coming in from the RPi. Can this be done somehow? Also, I would like to use a redundant thermistor in my hotend to monitor the hotend temperature directly from the RPi so that the tempfailsafe plugin could kill the power to the relays controlling AC power to the printer. Would it be possible to read the thermistor temperature using an ADC and normal hotend thermistor with this plugin? Thanks! DroneMang
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Gandalf/OctoPrint-Enclosure#275