Topic: support fort esp32
are you going to make support for esp 32 . would greatly like to use 32 over 8266 tired of having to reconnect wifi connection all the time. Plus I would greatly like to use a hall effects sensor in my project.
You are not logged in. Please login or register.
RemoteXY community → Need help → support fort esp32
are you going to make support for esp 32 . would greatly like to use 32 over 8266 tired of having to reconnect wifi connection all the time. Plus I would greatly like to use a hall effects sensor in my project.
I use RemoteXY with ESP32 without problem.
tired of having to reconnect wifi connection all the time
It's most likely a problem in your program.
can you explain a little more in detail what you mean about its my program that's wrong. do u mean because I keep on having to reconnect my phone app to esp8266 or why I cant use esp32. I am under the impression that it having two processors that one will take care of wifi connection and the to run the processes of the code,where as the esp8266 only has one and therefor it cant keep a live long connection, I'm a newbie compared to a lot of Arduinoer's so please bare with me. and I hope u help me G. u seem very knowledgable and I thatI am not writing this for nothing.
this is my code. I can go into my phones wifi settings and connect butt in app it times out.
#include <ESP32_Servo.h>
//#include <ESP32_Servo.h>
/*
-- its all good --
This source code of graphical user interface
has been generated automatically by RemoteXY editor.
To compile this code using RemoteXY library 2.3.3 or later version
download by link http://remotexy.com/en/library/
To connect using RemoteXY mobile app by link http://remotexy.com/en/download/
- for ANDROID 4.1.1 or later version;
- for iOS 1.2.1 or later version;
This source code is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
*/
//////////////////////////////////////////////
// RemoteXY include library //
//////////////////////////////////////////////
// RemoteXY select connection mode and include library
#define REMOTEXY_MODE__ESP8266WIFI_LIB_POINT // possibly this is problem
#include <WiFi.h>
#include <RemoteXY.h>
// RemoteXY connection settings
#define REMOTEXY_WIFI_SSID "Aqua Force Unlimited"
#define REMOTEXY_WIFI_PASSWORD "binzer78"
#define REMOTEXY_SERVER_PORT 6377
// RemoteXY configurate
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
{ 255,3,0,14,0,158,0,8,6,1,
65,41,58,0,5,7,65,44,53,0,
5,7,1,8,9,79,12,12,36,134,
83,84,79,80,0,1,8,44,79,12,
12,132,31,83,84,65,82,84,0,67,
1,35,61,27,5,8,36,11,4,0,
8,17,14,52,26,26,66,132,38,36,
22,17,26,24,129,0,11,16,13,4,
187,82,97,98,98,105,116,0,129,0,
8,71,13,5,32,84,117,114,116,108,
101,0,130,1,32,12,30,5,27,130,
1,17,7,23,5,27,130,1,8,2,
18,5,27,129,0,9,2,15,5,24,
65,81,85,65,0,129,0,20,7,18,
5,8,70,79,82,67,69,0,129,0,
34,12,27,5,24,85,78,76,73,77,
73,84,69,68,0 };
// this structure defines all the variables of your control interface
struct {
// input variable
uint8_t stp; // =1 if button pressed, else =0
uint8_t strt; // =1 if button pressed, else =0
int8_t IDLE1; // =0..100 slider position
// output variable
uint8_t strtled_b_b; // =0..255 LED Blue brightness
uint8_t stpled_r_r; // =0..255 LED Red brightness
char rpmText[11]; // string UTF8 end zero
int8_t rpmLevel; // =0..100 level position
// other variable
uint8_t connect_flag; // =1 if wire connected, else =0
} RemoteXY;
#pragma pack(pop)
/////////////////////////////////////////////
// END RemoteXY include //
/////////////////////////////////////////////
Servo myservo;
#define PIN_STP 27
#define PIN_STRT 26
int servoPin =32;
void setup()
{
RemoteXY_Init ();
myservo.attach(servoPin,500,2500);
pinMode (PIN_STP, OUTPUT);
RemoteXY.IDLE1=0;
pinMode (PIN_STRT, OUTPUT);
// TODO you set/////////////////up code
}
void loop(){
digitalWrite(PIN_STP, (RemoteXY.stp==0)?LOW:HIGH);
RemoteXY.stpled_r_r = (digitalRead(27)==HIGH)?255:0;
digitalWrite(PIN_STRT, (RemoteXY.strt==0)?LOW:HIGH);
RemoteXY.strtled_b_b= (digitalRead(26)==HIGH)?255:0;
int ms = RemoteXY.IDLE1*20+500;
myservo.writeMicroseconds(ms);
// TODO you loop code
// use the RemoteXY structure for data transfer
}
Where is RemoteXY_Handler() ?
TY, That did it. Greatly appreciate it Guillaume.
RemoteXY community → Need help → support fort esp32
Powered by PunBB, supported by Informer Technologies, Inc.