<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Gen7 + Teacup: DC motor control</title>
        <description> Dear All,

I&#039;m looking into building drilling and milling head for my Prusa and need to control a DC motor. I&#039;m using Gen7 electronics and Teacup firmware for printing and my initial prototype of the head is driving the motor using heater2 (bed). I&#039;m just setting bed temperature to anything non-zero and off it goes with 12V raw power.

The problem is that I can&#039;t control the speed of the motor. This page gives an indication that Teacup firmware has &#039;untested&#039; DC motor control functionality. However, there&#039;s nothing about in on Teacup Firmware wiki page, nor does Google find anything interesting.

So two questions for the community:
1) What is &#039;DC motor control&#039; in Teacup firmware and how to put it into use? (Hey, I volunteer for testing!)
2) Is it possible to somehow use the function with Gen7 electronics without major modification?</description>
        <link>https://reprap.org/forum/read.php?146,139514,139514#msg-139514</link>
        <lastBuildDate>Sat, 13 Jun 2026 08:15:12 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?146,139514,140100#msg-140100</guid>
            <title>Re: Gen7 + Teacup: DC motor control</title>
            <link>https://reprap.org/forum/read.php?146,139514,140100#msg-140100</link>
            <description><![CDATA[ Thank you Traumflug, works perfectly. The only thing is that I need to use M140 instead of M104 as I drive spindle using bed MOSFET.]]></description>
            <dc:creator>Igor Lobanov</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Tue, 26 Jun 2012 18:24:36 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,139514,139961#msg-139961</guid>
            <title>Re: Gen7 + Teacup: DC motor control</title>
            <link>https://reprap.org/forum/read.php?146,139514,139961#msg-139961</link>
            <description><![CDATA[ With "DC motor" means an extruder with DC motor. Early RepRaps had these.<br />
<br />
To get an adjustable DC motor, you need to connect the motor to one of the PWM-able pins. Both heater outputs of the Gen7 do this. Then, uncomment #define TEMP_NONE in config.h and define a heater with thermistor type TT_NONE. I've attached a config.h which has no heaters, just a DC motor configured.<br />
<br />
To control the motor, use M104 S0 ... M104 S255.]]></description>
            <dc:creator>Traumflug</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Tue, 26 Jun 2012 07:19:40 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,139514,139514#msg-139514</guid>
            <title>Gen7 + Teacup: DC motor control</title>
            <link>https://reprap.org/forum/read.php?146,139514,139514#msg-139514</link>
            <description><![CDATA[ Dear All,<br />
<br />
I'm looking into building drilling and milling head for my Prusa and need to control a DC motor. I'm using Gen7 electronics and Teacup firmware for printing and my initial prototype of the head is driving the motor using heater2 (bed). I'm just setting bed temperature to anything non-zero and off it goes with 12V raw power.<br />
<br />
The problem is that I can't control the speed of the motor. <a href="http://reprap.org/wiki/List_of_Firmware#Teacup" target="_blank"  rel="nofollow">This page</a> gives an indication that Teacup firmware has 'untested' DC motor control functionality. However, there's nothing about in on Teacup Firmware wiki page, nor does Google find anything interesting.<br />
<br />
So two questions for the community:<br />
1) What is 'DC motor control' in Teacup firmware and how to put it into use? (Hey, I volunteer for testing!)<br />
2) Is it possible to somehow use the function with Gen7 electronics without major modification?]]></description>
            <dc:creator>Igor Lobanov</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Sun, 24 Jun 2012 09:17:54 -0400</pubDate>
        </item>
    </channel>
</rss>
