Use RemoteXY for Android communication

Hi friends! Added a new feature that allows you to control a remote device via Wi-Fi. Primarily added supports ESP8266 module in access point mode . Your smartphone or tablet can connect to an access point directly. Connecting to Wi-Fi access point is supported by a mobile app version 3.3.1 or more. To support the new features updated RemoteXY library for Arduino. New library version 2.1.0 available for download by link http://remotexy.com/en/library/ The library has a hightly modernization, making the work even better. RemotrXY compiled sketches even less, communication speed even higher. The new library is implementing an updated communication protocol, which is supported by a mobile application version 3.3.1 or more. Using ESP8266 as Wi-Fi access points will increase the communication range compared to the Bluetooth module. Access point mode as well as Bluetooth does not depend on the network infrastructure or the Internet, and allows connect device and smartphone directly. How to connect the ESP8266 to Arduino can be found in the documentation section by link http://remotexy.com/en/help/esp8266/ |500x352

RemoteXY added a new feature that allows you to control a remote device via the network. Support of Ethernet W5100 shield and ESP8266 module in client mode connect to the access point. With the correct configuration of the router an opportunity to control the device via Internet. |500x381

Hi Guys, I have just tried the RemoteXY apps, it is rather user friendly tools, but I had troubles when connecting with the HC-06 modules, it is just not stable and sometime it gives out message "Connection is established, but device does not reply", does any body came acrossed with this?

Hi, Shev, may I use a temperature sensor LM35 instead thermistor 1K in projekt "Температурный датчик с выводом значения на Android смартфон"? & is it possible to get the temperature on the screen with four points simultaneously? Thanks.

@shev

If friends buy the pro version can we share our projects with them without the need for them to actually create the project i.e. can we just provide them with a copy of our Arduino sketch?

pieman: @shev

If friends buy the pro version can we share our projects with them without the need for them to actually create the project i.e. can we just provide them with a copy of our Arduino sketch?

Yes, you can!!!

+++ Vertical orientation! +++ Multi pages!

RemoteXY project continues to evolve. Two new features have been added: support for the vertical orientation of the screen and support multi pages of graphical interface. http://remotexy.com/en/blog/feature_orientation_and_pages/

Great app! Managed to get a nice display up and running via bluetooth on a tablet and a phone communicating with a Nano, brilliant! Really worth the pro fee/donation. ESP8266 next... Good work Shev, if a clunky old non-programmer like me can get this going, should be great for everyone!

+++ RGB-color control

Added new feature the RGB-color control element. New control allows to set a wide range of color and transmit data to the controller for each color component R, G, B. http://remotexy.com/en/blog/feature_rgb_color

+++ Edit field cotntrol in RemoteXY!!!

Control "Edit field" is intended to enter a text string or a number from the keypad in the GUI. Input field supports the input arbitrary text, integer and float values. The edit field will allow to make a more flexible management of your devices, allowing you to enter values from the mobile interface keyboard. These values can be the limit values, the coefficients of PID, the time intervals and other data. New features supported by the mobile app version 3.7.1 or up. Tutorial of Edit field by link http://remotexy.com/en/help/controls/edit/.

@shev,

How do I bailout of RemoteXY mid sketch, gracefully or otherwise?

I have tried things like:

    WiFi.mode(WIFI_STA);
    WiFi.begin(ssid, pass);

it drops the AP connection to RemoteXY but it fails to connect to the router in station mode.

pieman: @shev,

How do I bailout of RemoteXY mid sketch, gracefully or otherwise?

I have tried things like:

    WiFi.mode(WIFI_STA);
    WiFi.begin(ssid, pass);

it drops the AP connection to RemoteXY but it fails to connect to the router in station mode.

Try use:

WiFi.disconnect();
WiFi.softAPdisconnect(true);
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, pass);

and you need to deny the call to RemoteXY_Handler (); in loop() function

Now you can sharing your RemoteXY projects and your friends could work with it! Go to "My projects" list and press "Share" button.

|500x175

@shev sharing of projects is a very welcome feature, thanks.

The few lines of code below, in the right sections, are fine to stop RemoteXY running:

  bool softAPrunning = true;

  WiFi.softAPdisconnect(true);

  if(softAPrunning == true){  // only call Handler if softAP is still running
    RemoteXY_Handler ();   
  }

I just need to work out how to restart RemoteXY from within my sketch once I have stopped it. I can reset the ESP and that will restart RemoteXY but I would like to do it without a reset.

I have again tried various options, called RemoteXY_Init () and made RemoteXY_Handler() available but no joy.

Any pointers to restart RemoteXY?

Hi

I am trying to Control a ROBOT (simple robot with two motors) + NODEMCU (connected via wi-fi)

I managed to create the following code - however it does not do anything - any suggestions of what would be wrong (code is uploaded → robot is connected via wifi) - we have tried a simple code (with just two buttons for ON/OFF the motors) and it works fine.

/////////////////////////////////////////////
// RemoteXY include library //
/////////////////////////////////////////////

/* RemoteXY select connection mode and include library */
#define REMOTEXY_MODE__ESP8266WIFIPOINT_LIB
#include <ESP8266WiFi.h>
#include <RemoteXY.h>

/* RemoteXY connection settings */
#define REMOTEXY_WIFI_SSID “myrobot”
#define REMOTEXY_WIFI_PASSWORD “12345678”
#define REMOTEXY_SERVER_PORT 6377

/* RemoteXY configurate */
#pragma pack(push, 1)
uint8_t RemoteXY_CONF =
{ 2,0,10,0,6,5,0,5,41,34
,14,30,30,2 };

/* this structure defines all the variables of your control interface */
struct {

/* input variable /
int8_t joystick_1_x; /
=-100…100 x-coordinate joystick position /
int8_t joystick_1_y; /
=-100…100 y-coordinate joystick position */

/* other variable /
uint8_t connect_flag; /
=1 if wire connected, else =0 */

} RemoteXY;
#pragma pack(pop)
/////////////////////////////////////////////
// END RemoteXY include //
/////////////////////////////////////////////
/* defined the right motor control pins */
#define PIN_MOTOR_RIGHT_UP D1
#define PIN_MOTOR_RIGHT_DN D3
#define PIN_MOTOR_RIGHT_SPEED 10

/* defined the left motor control pins */
#define PIN_MOTOR_LEFT_UP D2
#define PIN_MOTOR_LEFT_DN D4
#define PIN_MOTOR_LEFT_SPEED 9

/* defined the LED pin */
#define PIN_LED 13

/* defined two arrays with a list of pins for each motor */
unsigned char RightMotor[3] =
{PIN_MOTOR_RIGHT_UP, PIN_MOTOR_RIGHT_DN, PIN_MOTOR_RIGHT_SPEED};
unsigned char LeftMotor[3] =
{PIN_MOTOR_LEFT_UP, PIN_MOTOR_LEFT_DN, PIN_MOTOR_LEFT_SPEED};

/*
speed control of the motor
motor - pointer to an array of pins
v - motor speed can be set from -100 to 100
/
void Wheel (unsigned char * motor, int v)
{
if (v>100) v=100;
if (v<-100) v=-100;
if (v>0) {
digitalWrite(motor[0], HIGH);
digitalWrite(motor[1], LOW);
analogWrite(motor[2], v
2.55);
}
else if (v<0) {
digitalWrite(motor[0], LOW);
digitalWrite(motor[1], HIGH);
analogWrite(motor[2], (-v)*2.55);
}
else {
digitalWrite(motor[0], LOW);
digitalWrite(motor[1], LOW);
analogWrite(motor[2], 0);
}
}

void setup()
{
/* initialization pins */
pinMode (PIN_MOTOR_RIGHT_UP, OUTPUT);
pinMode (PIN_MOTOR_RIGHT_DN, OUTPUT);
pinMode (PIN_MOTOR_LEFT_UP, OUTPUT);
pinMode (PIN_MOTOR_LEFT_DN, OUTPUT);
pinMode (PIN_LED, OUTPUT);

/* initialization module RemoteXY */
RemoteXY_Init ();

}

void loop()
{
/* event handler module RemoteXY */
RemoteXY_Handler ();

/* manage LED pin */

/* manage the right motor /
Wheel (RightMotor, RemoteXY.joystick_1_y - RemoteXY.joystick_1_x);
/
manage the left motor */
Wheel (LeftMotor, RemoteXY.joystick_1_y + RemoteXY.joystick_1_x);
}

Blink some lights, add some debug prints.
Use some code tags.
Don’t hijack threads.

hi friend i have a problem to use yor remotexy editor whit Wemos D1.

i create a simple code whit remotexy but does not work the wifi.
the setting is :
wifi
wemos d1
esp onboard
ide arduino
if i load the blink example of arduino ide he work correctly and i see the wifi signal

if ai load the code edited by your editor ,does not work

for example thie is very simple code i loading in wemos, but does not work:
//////////////////////////////////////////////
// RemoteXY include library //
// use library version 2.2.5 or up //
// use ANDROID app version 3.7.1 or up //
//////////////////////////////////////////////

/* RemoteXY select connection mode and include library */
#define REMOTEXY_MODE__ESP8266WIFIPOINT_LIB
#include <ESP8266WiFi.h>

#include <RemoteXY.h>

/* RemoteXY connection settings */
#define REMOTEXY_WIFI_SSID “RemoteXY”
#define REMOTEXY_WIFI_PASSWORD “”
#define REMOTEXY_SERVER_PORT 6377

/* RemoteXY configurate */
#pragma pack(push, 1)
uint8_t RemoteXY_CONF =
{ 2,0,21,0,6,5,0,1,0,68
,20,12,12,2,88,0,1,0,42,38
,12,12,2,88,0 };

/* this structure defines all the variables of your control interface */
struct {

/* input variable /
uint8_t button_2; /
=1 if button pressed, else =0 /
uint8_t button_3; /
=1 if button pressed, else =0 */

/* other variable /
uint8_t connect_flag; /
=1 if wire connected, else =0 */

} RemoteXY;
#pragma pack(pop)

/////////////////////////////////////////////
// END RemoteXY include //
/////////////////////////////////////////////

#define PIN_BUTTON_2 D4
#define PIN_BUTTON_3 D3

void setup()
{
RemoteXY_Init ();

pinMode (PIN_BUTTON_2, OUTPUT);
pinMode (PIN_BUTTON_3, OUTPUT);

// TODO you setup code

}

void loop()
{
RemoteXY_Handler ();

digitalWrite(PIN_BUTTON_2, (RemoteXY.button_2==0)?LOW:HIGH);
digitalWrite(PIN_BUTTON_3, (RemoteXY.button_3==0)?LOW:HIGH);

// TODO you loop code
// use the RemoteXY structure for data transfer

}

If I bought the remotexy pro in my phone can I share it with my tap and still pro?

@shev Hello....using a Nano with ESP01 as AP on cloud server to remote control a jacuzzi (few A and D I/O). Everything works fine for a time.... After 45 to 120 minutes, the communication between Nano and ESP fails. I think it.s the problem because : - the Nano keeps running (have tags in the sketch to follow it on the terminal and it's ok) - the ESP keeps registered on my router - a watchdog is running and never fire a reset of the sketch But if it's probably where the problem is situated I can't fix it want it's managed by Remote XY. Have you specific instructions to trace the problem ? Or other suggestions to solve it ? Tx JeanPaul

Hi everyone I have a basic question Can you tell me if any function is available in remote XY that allows us to have a notification on android phone like ringing or vibration or anything else

I'm going to make an anti robbery system and I want a notification on my phone when there is a person in place.