<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — HC-05]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1815&amp;type=atom" />
	<updated>2024-06-09T13:32:55Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=1815</id>
		<entry>
			<title type="html"><![CDATA[HC-05]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5576#p5576" />
			<content type="html"><![CDATA[<p>hello everyone,<br />im new here and i just learned about this app. <br />i am using and arduino uno with HC-05. they have to control 9 relays.<br />when i use 1 switch button relay 1 switches, but when i use 2 switch buttons all 9 relay&#039;s switch. anyone knows what could be the problem here?<br />lots of thanks for the one who can help me solve the problem!!</p><p>code:<br />/*<br />&nbsp; &nbsp;-- gip bluetooth --<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 3.1.13 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.13.13 or later version;<br />&nbsp; &nbsp; &nbsp;- for iOS 1.10.3 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>// you can enable debug logging to Serial at 115200<br />//#define REMOTEXY__DEBUGLOG&nbsp; &nbsp; </p><p>// RemoteXY select connection mode and include library <br />#define REMOTEXY_MODE__SOFTSERIAL</p><p>#include &lt;SoftwareSerial.h&gt;</p><p>// RemoteXY connection settings <br />#define REMOTEXY_SERIAL_RX 2<br />#define REMOTEXY_SERIAL_TX 3<br />#define REMOTEXY_SERIAL_SPEED 9600</p><br /><p>#include &lt;RemoteXY.h&gt;</p><p>// RemoteXY GUI configuration&nbsp; <br />#pragma pack(push, 1)&nbsp; <br />uint8_t RemoteXY_CONF[] =&nbsp; &nbsp;// 172 bytes<br />&nbsp; { 255,9,0,0,0,165,0,17,0,0,0,16,1,106,200,1,1,9,0,2,<br />&nbsp; 3,8,44,22,0,2,26,16,16,79,78,0,79,70,70,0,2,56,9,44,<br />&nbsp; 22,0,2,26,31,31,79,78,0,79,70,70,0,2,5,45,44,22,0,2,<br />&nbsp; 26,31,31,79,78,0,79,70,70,0,2,56,46,44,22,0,2,26,31,31,<br />&nbsp; 79,78,0,79,70,70,0,2,6,84,44,22,0,2,26,31,31,79,78,0,<br />&nbsp; 79,70,70,0,2,57,84,44,22,0,2,26,31,31,79,78,0,79,70,70,<br />&nbsp; 0,2,7,114,44,22,0,2,26,31,31,79,78,0,79,70,70,0,2,56,<br />&nbsp; 117,44,22,0,2,26,31,31,79,78,0,79,70,70,0,2,29,156,44,22,<br />&nbsp; 0,2,26,31,31,79,78,0,79,70,70,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 switch_01; // =1 if switch ON and =0 if OFF<br />&nbsp; uint8_t switch_02; // =1 if switch ON and =0 if OFF<br />&nbsp; uint8_t switch_03; // =1 if switch ON and =0 if OFF<br />&nbsp; uint8_t switch_04; // =1 if switch ON and =0 if OFF<br />&nbsp; uint8_t switch_05; // =1 if switch ON and =0 if OFF<br />&nbsp; uint8_t switch_06; // =1 if switch ON and =0 if OFF<br />&nbsp; uint8_t switch_07; // =1 if switch ON and =0 if OFF<br />&nbsp; uint8_t switch_08; // =1 if switch ON and =0 if OFF<br />&nbsp; uint8_t switch_09; // =1 if switch ON and =0 if OFF</p><p>&nbsp; &nbsp; // other variable<br />&nbsp; uint8_t connect_flag;&nbsp; // =1 if wire connected, else =0</p><p>} RemoteXY;&nbsp; &nbsp;<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_SWITCH_01 0<br />#define PIN_SWITCH_02 1<br />#define PIN_SWITCH_03 4<br />#define PIN_SWITCH_04 5<br />#define PIN_SWITCH_05 6<br />#define PIN_SWITCH_06 7<br />#define PIN_SWITCH_07 8<br />#define PIN_SWITCH_08 9<br />#define PIN_SWITCH_09 10</p><br /><p>void setup() <br />{<br />&nbsp; RemoteXY_Init (); <br />&nbsp; <br />&nbsp; pinMode (PIN_SWITCH_01, OUTPUT);<br />&nbsp; pinMode (PIN_SWITCH_02, OUTPUT);<br />&nbsp; pinMode (PIN_SWITCH_03, OUTPUT);<br />&nbsp; pinMode (PIN_SWITCH_04, OUTPUT);<br />&nbsp; pinMode (PIN_SWITCH_05, OUTPUT);<br />&nbsp; pinMode (PIN_SWITCH_06, OUTPUT);<br />&nbsp; pinMode (PIN_SWITCH_07, OUTPUT);<br />&nbsp; pinMode (PIN_SWITCH_08, OUTPUT);<br />&nbsp; pinMode (PIN_SWITCH_09, 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; digitalWrite(PIN_SWITCH_01, (RemoteXY.switch_01==0)?LOW:HIGH);<br />&nbsp; digitalWrite(PIN_SWITCH_02, (RemoteXY.switch_02==0)?LOW:HIGH);<br />&nbsp; digitalWrite(PIN_SWITCH_03, (RemoteXY.switch_03==0)?LOW:HIGH);<br />&nbsp; digitalWrite(PIN_SWITCH_04, (RemoteXY.switch_04==0)?LOW:HIGH);<br />&nbsp; digitalWrite(PIN_SWITCH_05, (RemoteXY.switch_05==0)?LOW:HIGH);<br />&nbsp; digitalWrite(PIN_SWITCH_06, (RemoteXY.switch_06==0)?LOW:HIGH);<br />&nbsp; digitalWrite(PIN_SWITCH_07, (RemoteXY.switch_07==0)?LOW:HIGH);<br />&nbsp; digitalWrite(PIN_SWITCH_08, (RemoteXY.switch_08==0)?LOW:HIGH);<br />&nbsp; digitalWrite(PIN_SWITCH_09, (RemoteXY.switch_09==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(), use instead RemoteXY_delay() </p><br /><p>}</p>]]></content>
			<author>
				<name><![CDATA[kobe asselberghs]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2798</uri>
			</author>
			<updated>2024-06-09T13:32:55Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5576#p5576</id>
		</entry>
</feed>
