Go Down

Topic: Use RemoteXY for Android communication (Read 25073 times) previous topic - next topic

shev

#15
Jan 17, 2015, 06:41 pm Last Edit: Jan 17, 2015, 06:44 pm by shev
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.

smartuino

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!


akurilev

Hi !

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

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

shev

#18
Mar 11, 2015, 05:03 am Last Edit: Mar 11, 2015, 05:05 am by shev
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

ifan

#19
Mar 18, 2015, 03:29 am Last Edit: Mar 18, 2015, 03:42 am by ifan



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 <SoftwareSerial.h>
#include <RemoteXY.h>

/* 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


}

skydge

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?

shev

#21
Apr 28, 2015, 07:04 pm Last Edit: Apr 28, 2015, 07:15 pm by shev
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
 

shev




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/

Robin2

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
Two or three hours spent thinking and reading documentation solves most programming problems.

terryking228

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..  
Regards, Terry King terry@yourduino.com  - Check great prices, devices and Arduino-related boards at http://YourDuino.com
HOW-TO: http://ArduinoInfo.Info

GoForSmoke

#25
May 03, 2015, 05:34 pm Last Edit: May 03, 2015, 05:35 pm by GoForSmoke
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.
Perhaps button faces, fonts and like could be on SD files plugged into the Android device? Plug in your own look and feel.

Will this also work for Android wifi tablets? I have Kitkat 4.4. 
1) http://gammon.com.au/blink  <-- tasking Arduino 1-2-3
2) http://gammon.com.au/serial <-- techniques howto
3) http://gammon.com.au/interrupts
Your sketch can sense ongoing process events in time.
Your sketch can make events to control it over time.

shev

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?
In FREE version of RemoteXY app is limited the connection via Bluetooth. This time is 30 seconds. Further there is a disconnection. Can to connect again. You can reconnect many times. The display shows the time-remaining counter. 30 seconds should be enough to test, and then go on to the PRO version. You can try and evaluate the application before using the PRO version. Other functional characteristics of the application are identical.

shev

Perhaps button faces, fonts and like could be on SD files plugged into the Android device? Plug in your own look and feel.
It is interesting idea. we will think how to do it.

Will this also work for Android wifi tablets? I have Kitkat 4.4.  
It is plan.

Robin2

@shev I think it would be a good idea if you modify your original post and change the title so it reads

Android communication over Bluetooth using RemoteXY


...R
Two or three hours spent thinking and reading documentation solves most programming problems.

ondraman

Hi,
your programs looks really nice, I would really like to buy the PRO version, but I have same problem as skydge has.

It can't be paired with bluetooth.
"connection is established, but device does not reply: time out error: no response"

Can you help me?

I tried using many boards /UNO, Nano/, many bluetooth modules /HC-05/, I also tried it on both KitKat and Lollipop devices

Pairing doesn't work even if I connect only VCC and GND, but other apps like Ardurdroid etc. can connect without problems.

Thank you for answer.

Go Up