<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Not Able to control servo and motor at same time.]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=996&amp;type=atom" />
	<updated>2020-06-06T20:47:20Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=996</id>
		<entry>
			<title type="html"><![CDATA[Re: Not Able to control servo and motor at same time.]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=3050#p3050" />
			<content type="html"><![CDATA[<p>Welcome,</p><p>Sorry but this has nothing to do with remotexy. And I see nothing in your code about a servo or a motor... I suggest you ask on the arduino forum.</p>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2020-06-06T20:47:20Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=3050#p3050</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Not Able to control servo and motor at same time.]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=3029#p3029" />
			<content type="html"><![CDATA[<p>????</p>]]></content>
			<author>
				<name><![CDATA[admiringbear]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1352</uri>
			</author>
			<updated>2020-06-01T09:54:11Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=3029#p3029</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Not Able to control servo and motor at same time.]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2934#p2934" />
			<content type="html"><![CDATA[<p>I have the issue that i can control the motor and servo when they are in different codes. But when i merge the codes together only the servo works. the motor is connected to a L298N motorstiver. This is a project for school that needs to be done as fast as possible, so if you could help me you would be my hero.</p><p>/*<br />&nbsp; &nbsp;-- New project --<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;This source code of graphical user interface <br />&nbsp; &nbsp;has been generated automatically by RemoteXY editor.<br />&nbsp; &nbsp;To compile this code using RemoteXY library 2.4.3 or later version <br />&nbsp; &nbsp;download by link <a target="_blank" href="http://remotexy.com/en/library/">http://remotexy.com/en/library/</a><br />&nbsp; &nbsp;To connect using RemoteXY mobile app by link <a target="_blank" href="http://remotexy.com/en/download/">http://remotexy.com/en/download/</a>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;- for ANDROID 4.5.1 or later version;<br />&nbsp; &nbsp; &nbsp;- for iOS 1.4.1 or later version;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp;This source code is free software; you can redistribute it and/or<br />&nbsp; &nbsp;modify it under the terms of the GNU Lesser General Public<br />&nbsp; &nbsp;License as published by the Free Software Foundation; either<br />&nbsp; &nbsp;version 2.1 of the License, or (at your option) any later version.&nbsp; &nbsp; <br />*/</p><p>//////////////////////////////////////////////<br />//&nbsp; &nbsp; &nbsp; &nbsp; RemoteXY include library&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br />//////////////////////////////////////////////</p><p>// RemoteXY select connection mode and include library <br />#define REMOTEXY_MODE__ESP8266_HARDSERIAL_POINT</p><p>#include &lt;RemoteXY.h&gt;</p><p>// RemoteXY connection settings <br />#define REMOTEXY_SERIAL Serial<br />#define REMOTEXY_SERIAL_SPEED 115200<br />#define REMOTEXY_WIFI_SSID &quot;RemoteXY&quot;<br />#define REMOTEXY_WIFI_PASSWORD &quot;12345678&quot;<br />#define REMOTEXY_SERVER_PORT 6377</p><br /><p>// RemoteXY configurate&nbsp; <br />#pragma pack(push, 1)<br />uint8_t RemoteXY_CONF[] =<br />&nbsp; { 255,2,0,0,0,23,0,10,28,0,<br />&nbsp; 1,0,37,16,24,24,2,31,88,0,<br />&nbsp; 1,0,68,32,22,22,2,31,88,0 };<br />&nbsp; <br />// this structure defines all the variables and events of your control interface <br />struct {</p><p>&nbsp; &nbsp; // input variables<br />&nbsp; uint8_t button_1; // =1 if button pressed, else =0 <br />&nbsp; uint8_t button_2; // =1 if button pressed, else =0 </p><p>&nbsp; &nbsp; // other variable<br />&nbsp; uint8_t connect_flag;&nbsp; // =1 if wire connected, else =0 </p><p>} RemoteXY;<br />#pragma pack(pop)</p><p>/////////////////////////////////////////////<br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END RemoteXY include&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br />/////////////////////////////////////////////</p><p>#define PIN_BUTTON_1 9<br />#define PIN_BUTTON_2 8<br />#define enA 10</p><br /><p>void setup() <br />{<br />&nbsp; RemoteXY_Init (); <br />&nbsp; <br />&nbsp; pinMode (PIN_BUTTON_1, OUTPUT);<br />&nbsp; pinMode (PIN_BUTTON_2, OUTPUT);<br />&nbsp; <br />&nbsp; // TODO you setup code<br />&nbsp; <br />}</p><p>void loop() <br />{ <br />&nbsp; RemoteXY_Handler ();<br />&nbsp; <br />&nbsp; analogWrite(enA, 200);<br />&nbsp; digitalWrite(PIN_BUTTON_1, (RemoteXY.button_1==0)?LOW:HIGH);<br />&nbsp; digitalWrite(PIN_BUTTON_2, (RemoteXY.button_2==0)?LOW:HIGH);<br />&nbsp; <br />&nbsp; // TODO you loop code<br />&nbsp; // use the RemoteXY structure for data transfer<br />&nbsp; // do not call delay() </p><br /><p>}</p>]]></content>
			<author>
				<name><![CDATA[admiringbear]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1352</uri>
			</author>
			<updated>2020-05-06T14:53:33Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2934#p2934</id>
		</entry>
</feed>
