{"title":"FAN Module for Stepmotor","handle":"fan-module-for-stepmotor","url":"/products/fan-module-for-stepmotor","description":"   Description STEPMOTOR&nbsp;is used for stepper motor control. It is perfect for any motion project as it can drive up to 3 Stepper motors with&nbsp;GRBL&nbsp;control. It is built with MEGA328P has been flashed&nbsp;GRBL&nbsp;firmware. The module comunicates with M5Core via I2C(0x70) Integrated 3 DRV8825, a simple but very powerful board that can control one bipolar stepper motor at the time and allows micro stepping up to 1/32 of a step.  Product Features  9-24V Power Input 3-way stepper motors&nbsp;(X, Y, Z)    Kit includes  1x Step Motor Module 12V Power (Optional) 1x 5V FAN Module for heat dissipation (Optional)   Applications  DIY 3D Printer Simple Robot Arm  &nbsp;&nbsp; Documents STEPMOTOR Firmware Learn Example  1. Arduino IDE The code below is incomplete. TO get complete code, please click&nbsp;here. /*     If Button A was pressed,     stepmotor will rotate back and forth at a time */  #include &lt;M5Stack.h&gt; #include &lt;Wire.h&gt;  #define STEPMOTOR_I2C_ADDR 0x70  // initialization M5.begin(); Wire.begin();  // Controlling Protocol: //  G&lt;n&gt; X&lt;distance&gt;Y&lt;distance&gt;Z&lt;distance&gt; F&lt;speed&gt; SendCommand(STEPMOTOR_I2C_ADDR, \"G1 X20Y20Z20 F500\"); SendCommand(STEPMOTOR_I2C_ADDR, \"G1 X0Y0Z0 F400\");  // Get Data from Module. Wire.requestFrom(STEPMOTOR_I2C_ADDR, 1); if (Wire.available() &gt; 0) {   int u = Wire.read();   if (u != 0) Serial.write(u); }  // Send Data to Module. while (Serial.available() &gt; 0) {   int inByte = Serial.read();   SendByte(STEPMOTOR_I2C_ADDR, inByte); }   2. UIFlow Wanna explore the easiest way of Servo programming?? Check out the Blockly Platform at&nbsp;UIFlow. To get complete code, please click&nbsp;here.  &nbsp; More information Schematic  ","vendor":"Little Bird","product_type":"physical","in_stock":false,"options":[],"variants":[{"id":4831,"title":"Default Title","sku":"M5-M013","price":9.48,"compare_at_price":0.0,"on_sale":false,"in_stock":false,"available_quantity":0,"option1":"Default Title"}]}