<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[RemoteXY community — Arduino2560 with HM-10 "DEVICE NOT REPLY"]]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=1132</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1132&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Arduino2560 with HM-10 "DEVICE NOT REPLY".]]></description>
		<lastBuildDate>Thu, 06 Aug 2020 13:01:47 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Arduino2560 with HM-10 "DEVICE NOT REPLY"]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=3259#p3259</link>
			<description><![CDATA[<p>Hi all!</p><p>I have been trying to connect my 2560 with a hm-10 to the remotexy app but can&#039;t get it to connect as i keep receiving the &quot;Error: Device not reply&quot; message. I have used TX to pin 51 and RX to pin 50. I have attached my code below which was made by RemoteXY. Thanks in advance for your help!</p><p>/ RemoteXY select connection mode and include library <br />#define REMOTEXY_MODE__SOFTSERIAL<br />#include &lt;SoftwareSerial.h&gt;</p><p>#include &lt;RemoteXY.h&gt;</p><p>// RemoteXY connection settings <br />#define REMOTEXY_SERIAL_RX 50<br />#define REMOTEXY_SERIAL_TX 51<br />#define REMOTEXY_SERIAL_SPEED 9600</p><br /><p>// RemoteXY configurate&nbsp; <br />#pragma pack(push, 1)<br />uint8_t RemoteXY_CONF[] =<br />&nbsp; { 255,3,0,0,0,40,0,10,8,0,<br />&nbsp; 2,0,21,13,22,11,2,26,31,31,<br />&nbsp; 79,78,0,79,70,70,0,1,0,66,<br />&nbsp; 42,12,12,2,31,88,0,1,0,31,<br />&nbsp; 36,12,12,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 switch_1; // =1 if switch ON and =0 if OFF <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_SWITCH_1 13<br />#define PIN_BUTTON_1 11<br />#define PIN_BUTTON_2 26</p><br /><p>void setup() <br />{<br />&nbsp; RemoteXY_Init (); <br />&nbsp; <br />&nbsp; pinMode (PIN_SWITCH_1, OUTPUT);<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; digitalWrite(PIN_SWITCH_1, (RemoteXY.switch_1==0)?LOW:HIGH);<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>]]></description>
			<author><![CDATA[null@example.com (donovanchew)]]></author>
			<pubDate>Thu, 06 Aug 2020 13:01:47 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=3259#p3259</guid>
		</item>
	</channel>
</rss>
