<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[M5stack Core and GoPlus Module dc motor connector adresses missing (Arduino)]]></title><description><![CDATA[<p dir="auto">Hello. I'm trying to configure my GoPlus module using the example codes which are very limited on the M5 documentation for GoPlus. I can't find the correct list of addresses to be used anywhere.</p>
<p dir="auto">I want to power my DC 3-6V gearmotors 1:120 using the code adding an extra 5V external powersupply (max 2A) through the XT30 connector.<br />
I found the max speed in example codes is 250 and min is -250 for the motor command but with other values in between this gives the same issue.<br />
So the code I used is following:<br />
void Motor(void){<br />
Serial.println("-------------------------MOTOR Sturing -------------");<br />
Serial.println(" motorspeed 200");</p>
<pre><code> M5.Lcd.setCursor(40, 60, 2);
 M5.Lcd.setTextColor(TFT_WHITE, TFT_BLACK);
  M5.Lcd.printf("Test MoTor motorspeed 250      \n "); 
goPlus.Motor_write_speed(MOTOR_NUM0, (uint8_t)0x80, 250);
goPlus.Motor_write_speed(MOTOR_NUM1, (uint8_t)0x00, 250);
delay(5000);

Serial.println(" motorspeed 0");
 M5.Lcd.setCursor(40, 60, 2);
 M5.Lcd.setTextColor(TFT_WHITE, TFT_BLACK);
  M5.Lcd.printf("Test MoTor motorspeed 0      \n "); 
 goPlus.Motor_write_speed(MOTOR_NUM0, (uint8_t)0x80, 0);
 goPlus.Motor_write_speed(MOTOR_NUM1, (uint8_t)0x00, 0);
delay(500);

Serial.println(" motorspeed -250");
 M5.Lcd.setCursor(40, 60, 2);
 M5.Lcd.setTextColor(TFT_WHITE, TFT_BLACK);
  M5.Lcd.printf("Test MoTor motorspeed -250     \n "); 
 goPlus.Motor_write_speed(MOTOR_NUM0, (uint8_t)0x00, -250);
 goPlus.Motor_write_speed(MOTOR_NUM1, (uint8_t)0x00, -250);
    delay(5000);
Serial.println(" motorspeed 0");
 M5.Lcd.setCursor(40, 60, 2);
 M5.Lcd.setTextColor(TFT_WHITE, TFT_BLACK);
  M5.Lcd.printf("Test MoTor motorspeed 0\n "); 
goPlus.Motor_write_speed(MOTOR_NUM0, (uint8_t)0x80, 0);
goPlus.Motor_write_speed(MOTOR_NUM1, (uint8_t)0x00, 0);
delay(500);
</code></pre>
<p dir="auto">}</p>
<p dir="auto">It just doesn't seem to be able to power the DC connectors. I get a -0.2V max out and a + 0,8V max which isn't enough to run the motor.</p>
<p dir="auto">Has anyone experience or documentation what adresses of code instructions are to be used to fix this issue?<br />
Or a link with the more complete documentation what commands and adresses to use for steering the servo and DC motor pins?</p>
<p dir="auto">Because I'm really blocked for weeks now.<br />
Thanks upfront.<br />
Wim</p>
]]></description><link>https://community.m5stack.com/topic/3969/m5stack-core-and-goplus-module-dc-motor-connector-adresses-missing-arduino</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 05:13:28 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3969.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 28 Jan 2022 11:28:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5stack Core and GoPlus Module dc motor connector adresses missing (Arduino) on Sun, 30 Jan 2022 12:27:54 GMT]]></title><description><![CDATA[<p dir="auto">In my railway project I use 12V in but only get 5V out max</p>
<p dir="auto">0xff stops the motors.</p>
<pre><code>Wire.write((speed &gt;&gt; 8)&amp;0x80);
</code></pre>
<p dir="auto">Needs to be</p>
<pre><code>Wire.write((speed &gt;&gt; 8)&amp;0x00);
</code></pre>
<p dir="auto">for the second channel.</p>
]]></description><link>https://community.m5stack.com/post/16421</link><guid isPermaLink="true">https://community.m5stack.com/post/16421</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sun, 30 Jan 2022 12:27:54 GMT</pubDate></item><item><title><![CDATA[Reply to M5stack Core and GoPlus Module dc motor connector adresses missing (Arduino) on Fri, 28 Jan 2022 14:02:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a>  Thanks for the fast response. I missed the 6,5V minimum input. I initially changed the power supply of 12V 500mA to a 5v 2A because I thought the power consumption would be bigger than 0.5A.  I tested again and it doesn't seem to work.<br />
I found a chinese doc on the GoPlus that contained another example after translation (thanks Deepl):<br />
uint16_t speed = 200;<br />
Wire.beginTransmission(0x5d); // adress GoPlus<br />
Wire.write(0x30);  //motor connection<br />
Wire.write((speed &gt;&gt; 8)&amp;0x80); // port 1 DC  and 0x00 = port 2 DC<br />
Wire.write(speed &amp; 0xff);  // no idea where 0xff comes from<br />
Wire.endTransmission();</p>
<p dir="auto">fingers crossed this will work. I have no way to test whether the GoPlus became defunct. The Servo steering doesn't work either. Maybe I need also a bigger power supply...<br />
Starting to think buying the GoPlus a while ago wasn't the best idea...</p>
]]></description><link>https://community.m5stack.com/post/16374</link><guid isPermaLink="true">https://community.m5stack.com/post/16374</guid><dc:creator><![CDATA[WBE]]></dc:creator><pubDate>Fri, 28 Jan 2022 14:02:15 GMT</pubDate></item><item><title><![CDATA[Reply to M5stack Core and GoPlus Module dc motor connector adresses missing (Arduino) on Fri, 28 Jan 2022 13:44:18 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/wbe" aria-label="Profile: WBE">@<bdi>WBE</bdi></a></p>
<p dir="auto">Note: I don't own the GoPlus module so my conclusions could be incorrect.</p>
<p dir="auto">The DCDC step-down converter (TPS54360) is, according to the <a href="https://docs.m5stack.com/en/module/goplus" target="_blank" rel="noopener noreferrer nofollow ugc">schematic</a>, setup to output 6.5 V. Normally step-down converter require a slightly higher input voltage than the output voltage to function properly. Also according to the GoPlus <a href="https://docs.m5stack.com/en/module/goplus" target="_blank" rel="noopener noreferrer nofollow ugc">description</a> the DC input range is 6.5 V - 24 V. So assuming nothing is wrong with your code (which I cannot say w/o testing, sorry) I have a feeling that 5 V at the DC input might be too low.</p>
<p dir="auto">BTW: have you tried to use UIFlow - might be helpful to verify whether your hardware setup is correct?</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/16372</link><guid isPermaLink="true">https://community.m5stack.com/post/16372</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 28 Jan 2022 13:44:18 GMT</pubDate></item></channel></rss>