Roboter auto ansteuern mit esp32 board

hey,
ich muss ein Roboter auto ansteuern können welcher 2 Räder hat mit jeweils einem motor.
ich muss dieses auto nun mit remotexy ansteuern und habe leider gar keine Ahnung wie dies gehen soll. ein beispiellose hab ich schon aber es funktioniert trotzdem nicht. `/*
-- ESP2022_Slider --

This source code of graphical user interface
has been generated automatically by RemoteXY editor.
To compile this code using RemoteXY library 3.1.8 or later version
download by link RemoteXY library download page
To connect using RemoteXY mobile app by link Mobile App
- for ANDROID 4.11.1 or later version;
- for iOS 1.9.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__ESP32CORE_BLE
#include <BLEDevice.h>

#include <RemoteXY.h>

// RemoteXY connection settings
#define REMOTEXY_BLUETOOTH_NAME "ESP2022_Slider"
#define REMOTEXY_ACCESS_PASSWORD "esp2022"

// RemoteXY configurate
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] = // 94 bytes
{ 255,5,0,0,0,87,0,16,29,1,2,1,3,71,29,11,2,26,31,31,
83,101,110,115,111,114,0,80,104,111,110,101,0,10,48,38,74,19,19,4,
36,8,32,71,79,32,0,24,83,84,79,80,0,2,1,3,88,29,8,2,
26,31,31,77,111,116,46,79,78,0,77,111,116,46,111,102,102,0,4,48,
10,3,10,64,2,26,4,48,40,3,10,64,2,26 };

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

// input variables

uint8_t switch_1; // =1 if switch ON and =0 if OFF
uint8_t pushSwitch_Engine; // =1 if state is ON, else =0
uint8_t switch_2; // =1 if switch ON and =0 if OFF
int8_t slider_links; // =-100..100 slider position
int8_t slider_rechts; // =-100..100 slider position

// other variable

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

} RemoteXY;
#pragma pack(pop)

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

#define PIN_PUSHSWITCH_ENGINE 10
#define PIN_SWITCH_2 9

void setup()
{
RemoteXY_Init ();

pinMode (PIN_PUSHSWITCH_ENGINE, OUTPUT);
pinMode (PIN_SWITCH_2, OUTPUT);

// TODO you setup code

}

void loop()
{
RemoteXY_Handler ();

digitalWrite(PIN_PUSHSWITCH_ENGINE, (RemoteXY.pushSwitch_Engine==0)?LOW:HIGH);
digitalWrite(PIN_SWITCH_2, (RemoteXY.switch_2==0)?LOW:HIGH);

// TODO you loop code
// use the RemoteXY structure for data transfer
// do not call delay()

}
`

Im englischen Teil des Forum müssen die Beiträge und Diskussionen in englischer Sprache verfasst werden.
Deswegen wurde diese Diskussion in den deutschen Teil des Forums verschoben.

mfg ein Moderator.

Setze Deinen Code bitte in Codetags. Wie das geht, steht hier.

Wenn Du es machen musst, welche Arbeit ist es? Dir ist klar, dass die Aufgabensteller meist in den einschlägigen Foren mit lesen?

Gruß Tommy

Moin 1janotooflacko1!

Was hast Du bis jetzt weiter untersucht?
Was funktioniert nicht? Was funktioniert schon?

Was steck hängt an diesen etwas kryptischen pin defines?

PIN_PUSHSWITCH_ENGINE
PIN_SWITCH_2

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.