Use RemoteXY for Android communication

So you can - that’s great.

I am a lot more cautious about downloading an Android application in case of malicious code. How do we get around that problem?

Am I right to assume that the “Download Android Application” button provides a working Android app that includes the controls, etc that I place on the Android screen on your website? In other words every downloaded Android app will be different?

…R

I am not sure how this is working.

I tried making a new project in the editor. I get the files to use with arduino, works OK.

But when i click on the "Download android application" (on my phone) I am redirected to the Android play shop, where I can download the RemoteXY app.

But this app just does nothing, and are certainly not the app that I made in the editor:

What Android permissions will the downloaded app have?

…R

It do not need any permissions. That's the messages I get when downloading. I don't know if that's what you mean. Normally I don't pay much attention to these messages when downloading apps, maybe I should in the future.

Erni: Normally I don't pay much attention to these messages when downloading apps, maybe I should in the future.

Some of the permissions would allow it to spend your money - slightly less worrying if your phone is Pay-as-you-Go.

It could potentially also send illegal SMS messages or download offensive material.

It's an altogether different situation if you write the Android program yourself and you know exactly what is in it.

...R

No, no, you do not understand the meaning of the project.

  1. You get the source code for Arduino
  2. In the source code contains information about your controls of interface. See array in remotexy.cpp
  3. When connecting Android app, first reads the information about the controls directly from Arduino.
  4. After that, the Android app already knows which screen to show and how datas to communicate with Arduino.

This Android app is one same, and it can work with Arduino with absolutely any controls of interface

The source code for Arduino different for each interface The Android app is always one By analogy with the browser, Android app acts as a browser for Arduino.

Thanks for the clarification shev.

It sounds like an exciting project. However, I have a problem When I run your app on my phone and try to connect to my Arduino / bluetooth it makes a connection, but imidietly disconnect again.

I know that my setup works because if I use any other bluetooth app on the phone there is no problem.

Edit: My bad, I used the hardware serial, instead of pin 2 and 3. Now it works.

Developing our project, we have posted a few examples of how you can use the service RemoteXY for remote management.

  1. Robo car controlled from a smartphone via Blutooth. The car can be controlled even with the help of G-sensor. In addition, you can develop the functionality of the control, adding new features. In the example project has the full source code and electrical circuits.
    http://remotexy.com/en/examples/car/

  1. The second project is a fun cardboard robot. The project tells you how to control servo motors. As is pony the source code of the project.
    http://remotexy.com/en/examples/cardboardrobot/

And another example of the project for Arduino.
Temperature sensor output values on Android smartphone via Bluetooth, RemoteXY library used.

http://remotexy.com/en/examples/temperature/
and video: http://www.youtube.com/watch?v=lIHD_Najo68

Wow! This is AWESOME!! :)

It would be really cool if it is possible to upload your own graphics in the editor for each controls.

The project involves placing description of interface on the Arduino. This main feature of the project. Arduino does not have enough memory that to save the image of controls. But it can save the pointer of the control element as one of several pre-defined. In the near future, we plan to vary the of pre-defined skins of control elements.

RemoteXY is AWESOME! Works like a charm with The AirBoard now live on Kickstarter. The AirBoard is a thumb-size, Arduino compatible, wireless, ubiquitous computer designed to sketch Internet-of-Things, fast!

Hi !

Good idea! Works perfectly - see our robot http://www.youtube.com/watch?v=6lDL4_qh7KM .

Автору спасибо!

New example RemoteXY project - online GUI creator for remote control via smartphone. Smart power socket control from your smartphone via Bluetooth. Full version of project by site http://remotexy.com/en/examples/smartsocket/

And video http://www.youtube.com/watch?v=QaIM2r83iMA

sketch for the design as in the photo how? for materials arduino nano L298N module

please guide me.. :D

///////////////////////////////////////////// // RemoteXY include library // // use ANDROID app version 3.1.1 or up // /////////////////////////////////////////////

/* RemoteXY select connection mode and include library */

define REMOTEXY_MODE__SOFTWARESERIAL

include

include

/* RemoteXY connection settings */

define REMOTEXY_SERIAL_RX 2

define REMOTEXY_SERIAL_TX 3

define REMOTEXY_SERIAL_SPEED 9600

/* RemoteXY configurate */ unsigned char RemoteXY_CONF[] = { 5,0,110,0,2,0,2,0,41,13 ,18,7,6,79,78,0,79,70,70,0 ,2,0,41,31,18,7,1,79,78,0 ,79,70,70,0,2,0,41,48,18,7 ,2,79,78,0,79,70,70,0,4,48 ,7,8,9,54,1,4,48,83,8,9 ,54,1,129,0,41,10,17,3,9,76 ,69,68,32,100,101,112,97,110,0,129 ,0,41,28,18,3,9,76,69,68,32 ,116,101,110,103,97,104,0,129,0,42 ,45,15,3,9,76,69,68,32,98,108 ,105,110,107,0 };

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

/* input variable / unsigned char switch_1; / =1 if switch ON and =0 if OFF / unsigned char switch_2; / =1 if switch ON and =0 if OFF / unsigned char switch_3; / =1 if switch ON and =0 if OFF / signed char slider_1; / =-100..100 slider position / signed char slider_2; / =-100..100 slider position */

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

} RemoteXY;

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

define PIN_SWITCH_1 13

define PIN_SWITCH_2 8

define PIN_SWITCH_3 11

void setup() { RemoteXY_Init ();

pinMode (PIN_SWITCH_1, OUTPUT); pinMode (PIN_SWITCH_2, OUTPUT); pinMode (PIN_SWITCH_3, OUTPUT);

// TODO you setup code

}

void loop() { RemoteXY_Handler ();

digitalWrite(PIN_SWITCH_1, (RemoteXY.switch_1==0)?LOW:HIGH); digitalWrite(PIN_SWITCH_2, (RemoteXY.switch_2==0)?LOW:HIGH); digitalWrite(PIN_SWITCH_3, (RemoteXY.switch_3==0)?LOW:HIGH);

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

}

shev hello. I'm trying to set up a project using a arduino mega and remotexy. I managed to make it work with arduino UNO but I can not connect to the mega. connecting get the error: "connection is established, but device does not reply: time out error: no response" You know because it can be?

Hi,

Not all pins on the Mega and Mega 2560 support change interrupts, so only the following can be used for RX in SoftwareSerial: 10, 11, 12, 13, 14, 15, 50, 51, 52, 53, A8 (62), A9 (63), A10 (64), A11 (65), A12 (66), A13 (67), A14 (68), A15 (69). https://www.arduino.cc/en/Reference/softwareSerial

If you use MEGA and RemoteXY in SoftwareSerial, use the recommended RX pin. To do this, change the settings in the source code:

define REMOTEXY_SERIAL_RX 10 // change recommended pin for RX

define REMOTEXY_SERIAL_TX 11

define REMOTEXY_SERIAL_SPEED 9600

ifan:

sketch for the design as in the photo how? for materials arduino nano L298N module

please guide me.. :D

Please, see the example for L298N by link http://remotexy.com/en/examples/car/

I finally got around to trying RemoteXY and I am very impressed. It seems a very easy way to create an Android control screen for an Arduino project.

I had originally misunderstood how it worked and I thought that the Web design page would generate a different Android app for each screen design and I was cautious about downloading unknown Android apps. In the meantime I developed EzScrn as a simple project for generating a browsed-based interface for controlling an Arduino and without realizing it used a similar concept with all the screen design elements in the Arduino code. That made me understand how RemoteXY works.

Because it uses a Browser for its GUI EzScrn will work on an any device that has a browser which may make it more versatile but, of course, there needs to be a PC or a Yun to run the server. And, unlike RemoteXY, there is no drag-and-drop screen designer for EzScrn.

...R

Hello Shev,

Very excellent system you have created!

I am working on putting examples on http://ArduinoInfo.Info Maybe we can work together on this.

I am working with some schools and will be makiing kits for them with our Arduino derivative called YourDuino. The kits will be similar to THIS:, but have bluetooth module instead of nRF24l01.

Question: You show 2 products on Google Play. One is "Bluetooth Arduino control FREE" and the other is "RemoteXY Bluetooth control PRO". What is the difference? I need something free for a classroom of students, but some might buy the Pro version themselves. Can you provide an Educational version for a single price? Maybe we can work together on this. There will probably be 600 of these kits for the September school year.

Another Question: Are you planning an Iphone version? Android only would be a problem in a classroom.

Thanks for your work on this interesting idea..