1

Topic: RemoteXY online editor

Hi Everyone.

I started just today to play around with ESP01(ESP8266 WiFi) and got the basic switching of 2 relays working.

As I search on the net for new ideas I saw that some people is using a different version of the RemoteXY online editor.. meaning the they have more controls to choose from than what I got.

My next step is to display a analogRead value on my phone .. but I cannot find any control feature that can be configured as a Input and pin that to a analog input pin.

Thanks for any advice.

2

Re: RemoteXY online editor

You can use text string, https://remotexy.com/en/help/indications/text/

  // ADC is equal to 204.8 on volts when the supply voltage is 5 Volts
  double val = analogRead(A0) / 204.8; 
  dtostrf(val, 0, 2, RemoteXY.text_1); 

3

Re: RemoteXY online editor

Thanks.

I use a 1 to 11 divider on A0 and display the batt voltage.

The magic is this line .

 dtostrf(val, 0, 2, RemoteXY.text_1); 

4

Re: RemoteXY online editor

I'm trying to analogRead(A5) // Using a Tmp36 temperature sensor.
I cannot find how to send it to my phone using "RemoteXY.text_1"
If anyone can help or point me in the right direction would help a lot. Thanks



remotexy wrote:

You can use text string, https://remotexy.com/en/help/indications/text/

  // ADC is equal to 204.8 on volts when the supply voltage is 5 Volts
  double val = analogRead(A0) / 204.8; 
  dtostrf(val, 0, 2, RemoteXY.text_1); 

5

Re: RemoteXY online editor

I have this for Arduino: But I can't figure how to make it work with RemoteXY

  degree = analogRead(0);
  realDegree = (double)degree/1024;
  realDegree *= 5;
  realDegree -= 0.5;
  realDegree *= 100;
  realDegree = (9.0/5)*(realDegree) + 32;
  String output = String(realDegree) + String((char)178) + "F";

jfxxwave361 wrote:

I'm trying to analogRead(A5) // Using a Tmp36 temperature sensor.
I cannot find how to send it to my phone using "RemoteXY.text_1"
If anyone can help or point me in the right direction would help a lot. Thanks



remotexy wrote:

You can use text string, https://remotexy.com/en/help/indications/text/

  // ADC is equal to 204.8 on volts when the supply voltage is 5 Volts
  double val = analogRead(A0) / 204.8; 
  dtostrf(val, 0, 2, RemoteXY.text_1); 

6

Re: RemoteXY online editor

Try it:

  degree = analogRead(0);
  realDegree = (double)degree/1024;
  realDegree *= 5;
  realDegree -= 0.5;
  realDegree *= 100;
  realDegree = (9.0/5)*(realDegree) + 32;

  char stringDegree[9];
  dtostrf(realDegree , 0, 1, stringDegree);
  sprintf (RemoteXY.text_1, "%s °F", stringDegree);

Or you can place two elements on the screen, a text string and a label with static text "°F".