• Hallo Zusammen, Aufgrund der aktuellen Situation setzten wir die Möglichkeit aus, sich mit Gmail zu registrieren. Wir bitten um Verständnis Das RCMP Team

Projekt ESP32 Arduino RC Sound und Licht Controller

D

Deleted member 1492

Gast
Versuchsbüro Südthüringen meldet Fehler, Drehzahl steigt nicht an.
 
D

Deleted member 1492

Gast
Keine Ahnung was los ist, Sound wird lauter, Drehzahl nicht höher.
 
D

Deleted member 1492

Gast
Gerade nochmal getestet, weil die I6 ausgestiegen ist, habe dann meine Ersatzfunke genommen.
Alles funktioniert, aber wenn man Gas gibt erhöht sich die Drehzahl nicht, der Sound wird etwas lauter.
Einstellungen im Sketch auf dieselben wie bei der alten Version, Einstellungen der Funke ebenso.
Alten Sketch aufgespielt, alles bestens.
 

Onkel_Tom

Mitglied
Wenn der Bengel später vorm PC weg ist, muss ich nochmal Lleinigkeiten ändern.
Türklappen ist wohl noch anstelle der Schweinchen und warum auch immer will er nicht Rückwärts. Sound ist da aber Motor dreht nicht.
Einstellung ist wie bei der vorherigen Funke mit Punch für Rückwärts bei 170.
Sonst läufts :thumbsup: :thumbsup: :thumbsup:
Wenn wieder alles zusammen ist, gibts ein neues Beweisvideo
 
Alles funktioniert, aber wenn man Gas gibt erhöht sich die Drehzahl nicht, der Sound wird etwas lauter.
Die virtuelle Motordrehzahl oder der richtige Motor / ESC? Habs soeben nochmals mit der FS-I6x und der Micro RC getestet. funktioniert einwandfrei. falls du den ESC meinst, der ist momentan nicht auf 500 (was voller Leistung entspricht) eingestellt
Bildschirmfoto 2021-06-19 um 16.30.29.png

Hast du den Gasstick auf Federzentrierung umgebaut? Das ist Voraussetzung. Falls nicht, hier "false" eintragen:
Bildschirmfoto 2021-06-19 um 16.32.52.png
Ich denke, bei Hermann ist es möglicherweise das selbe Problem.

Türklappen ist wohl noch anstelle der Schweinchen
Das ist "Sound1" und liegt bei der Flysky gemäss Excel auf Kanal 9 / Switch B. In Spalte A-D siehst du, dass es nur mit IBUS oder SBUS funktioniert
 
D

Deleted member 1492

Gast
Nur der Sound, kein ESC angeschlossen.
Beim alten Sketch funktioniert alles.
 

Onkel_Tom

Mitglied
1. Motor direkt. Fehler liegt aber wohl zwischen den Ohren, ich muss den 1080 nachher noch umprogrammieren. Noch hat der F B R. Bremse muss da noch raus denke ich.
2. FlySky ist auf Selbstzentrierung umgebaut
3. Auf SwB hab ich nur ein Klackgeräusch. Denke das ist Tür auf/zu. Irgendwie bekomme ich da keine Schweinchen drauf.
Noch was, auf CH4 li. Stick horizontal hab ich keine Funktionen.
Hab verschiedene Kanalbelegungen durch, hab jetzt wieder die von Hermann drauf.

Aux Kanäle:

5 = SWA
6 = SWB
7 = VRA
8 = VRB
9 = SWC
10 = SWD

Darauf achten, das die Funke unter RX-Setup auf "I-Bus/PWM" eingestellt ist.


Dazu passend die Einstellungen im Programm:

2._adjustementRemote.h

// Flysky FS-i6X remote configuration profile -------------------------------------------------------------------------------------------
#ifdef FLYSKY_FS_I6X

// Channel assignment (use NONE for non existing channels!)
// Remote channel ####### // Sound controller channel ##########################################
#define STEERING 1 // CH1 steering
#define GEARBOX 9 // CH2 3 position switch for gearbox (left throttle in tracked mode)
#define THROTTLE 3 // CH3 throttle & brake (right throttle in tracked mode)
#define HORN 7 // CH4 horn and bluelight / siren
#define FUNCTION_R 2 // CH5 jake brake, high / low beam, headlight flasher, engine on / off
#define FUNCTION_L 1 // CH6 indicators, hazards
#define POT2 NONE // CH7 pot 2
#define MODE1 6 // CH8 mode 1 switch
#define MODE2 NONE // CH9 mode 2 switch
#define MOMENTARY1 NONE // CH10
#define HAZARDS 10 // CH11
#define INDICATOR_LEFT NONE // CH12
#define INDICATOR_RIGHT NONE// CH13

Weiter unten, nicht aus versehen in die Spalte für die DiyGuy Funke rutschen:

// Automatic or manual modes -----
//#define AUTO_LIGHTS
//#define AUTO_ENGINE_ON_OFF
#define AUTO_INDICATORS

Hier kannst Du wählen welche Lichter angehen sollen:

6._adjustementsLights.h
//#define NO_CABLIGHTS // The cablights step in the lights sequence is skipped, if defined
//#define NO_FOGLIGHTS // The foglights step in the lights sequence is skipped, if defined
//#define THIRD_BRAKLELIGHT // if defined, pin 32 is used for a third brake light, otherwise for a trailer presence switch

Funktionen sind dann so:

SWA auf 1:

Gas mit Motorstart, Motor geht nicht automatisch aus.
Lenkung mit automatischen Blinkern.
Rechter Knüppel nach vorne = Lichthupe/Fernlicht
Rechter Knüppel nach hinten = Lautstärke & Jakebrake
SWB = Mode 1, z.B. Leerlauf, Gas geben ohne fahren wenn auf 2
VRA = Hupe oder Sirene/Blaulicht
VRB = nicht belegt
SWC = 3-Gang Schaltung
SWD = Warnblinker

SWA auf 2:
Rechter Knüppel nach vorne = nacheinander Lichter ein/aus
Rechter Knüppel nach hinten = Motor aus/Motor Start
 
Noch hat der F B R. Bremse muss da noch raus denke ich.
Klar, das muss raus
Ja, ist es. Vergleiche die Türdatei mit der Schweinedatei. Dann benenne die Variablen der Schweinedatei entsprechend um. Hab ich weiter oben mal genau beschrieben.
Noch was, auf CH4 li. Stick horizontal hab ich keine Funktionen.
CH 4 existiert bei dir nicht oder ich hab Tomaten auf den Augen. Warum nimmst du nicht einfach das vorgefertigte Flysky Profil von mir? du musst dann aber die Kanalbelegung im Sender ändern.
 
D

Deleted member 1492

Gast
Hast du Federzentrierung oder nicht? Siehe oben. Bei mir funktioniert es wie gesagt.
Die neue I6 ist exakt wie die alte I6 die Heute ausgestiegen ist.
Also natürlich auch mit Selbstzentrierung.

Der alte Sketch hat ja auf beiden Funken problemlos funktioniert.
Und tut es wieder, wenn ich ihn aufspiele.

Warum nimmst du nicht einfach das vorgefertigte Flysky Profil von mir? du musst dann aber die Kanalbelegung im Sender ändern.
Er hat meine Kanalbelegung übernommen, wobei Mode 2 (vom Sketch) eigentlich auf VRB könnte.
 
D

Deleted member 1492

Gast
Teste ich später, zu warm.
Habe gerade Mode 2 auf VRA und Horn auf VRB gelegt, aber beim alten Sketch.
Wie gewohnt alles bestens.
 
D

Deleted member 1492

Gast
War ungeduldig:
Arduino: 1.8.13 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 115200, None"

C:\Users\xxx\Documents\Arduino Dateien\Sketchbook\Rc_Engine_Sound_ESP32\Rc_Engine_Sound_ESP32.ino: In function 'void setup()':

Rc_Engine_Sound_ESP32:1111:41: error: 'pulseNeutral' was not declared in this scope

pulseMaxNeutral = pulseZero + pulseNeutral;

^

Rc_Engine_Sound_ESP32:1113:34: error: 'pulseSpan' was not declared in this scope

pulseMax = pulseZero + pulseSpan;

^

C:\Users\xxx\Documents\Arduino Dateien\Sketchbook\Rc_Engine_Sound_ESP32\Rc_Engine_Sound_ESP32.ino: In function 'void readPpmCommands()':

Rc_Engine_Sound_ESP32:1179:29: error: 'STEERING' was not declared in this scope

pulseWidthRaw[1] = ppmBuf[STEERING - 1]; // CH1 steering

^

Rc_Engine_Sound_ESP32:1180:29: error: 'GEARBOX' was not declared in this scope

pulseWidthRaw[2] = ppmBuf[GEARBOX - 1]; // CH2 3 position switch for gearbox (left throttle in tracked mode)

^

Rc_Engine_Sound_ESP32:1181:29: error: 'THROTTLE' was not declared in this scope

pulseWidthRaw[3] = ppmBuf[THROTTLE - 1]; // CH3 throttle & brake

^

Rc_Engine_Sound_ESP32:1182:29: error: 'HORN' was not declared in this scope

pulseWidthRaw[4] = ppmBuf[HORN - 1]; // CH5 jake brake, high / low beam, headlight flasher, engine on / off

^

Rc_Engine_Sound_ESP32:1183:29: error: 'FUNCTION_R' was not declared in this scope

pulseWidthRaw[5] = ppmBuf[FUNCTION_R - 1]; // CH5 jake brake, high / low beam, headlight flasher, engine on / off

^

Rc_Engine_Sound_ESP32:1184:29: error: 'FUNCTION_L' was not declared in this scope

pulseWidthRaw[6] = ppmBuf[FUNCTION_L - 1]; // CH6 indicators, hazards

^

Rc_Engine_Sound_ESP32:1185:29: error: 'POT2' was not declared in this scope

pulseWidthRaw[7] = ppmBuf[POT2 - 1]; // CH7 pot 2

^

Rc_Engine_Sound_ESP32:1186:29: error: 'MODE1' was not declared in this scope

pulseWidthRaw[8] = ppmBuf[MODE1 - 1]; // CH8 mode 1 switch

^

C:\Users\xxx\Documents\Arduino Dateien\Sketchbook\Rc_Engine_Sound_ESP32\Rc_Engine_Sound_ESP32.ino: In function 'void readSbusCommands()':

Rc_Engine_Sound_ESP32:1216:39: error: 'STEERING' was not declared in this scope

pulseWidthRaw[1] = map(SBUSchannels[STEERING - 1], 172, 1811, 1000, 2000); // CH1 steering

^

Rc_Engine_Sound_ESP32:1217:39: error: 'GEARBOX' was not declared in this scope

pulseWidthRaw[2] = map(SBUSchannels[GEARBOX - 1], 172, 1811, 1000, 2000); // CH2 3 position switch for gearbox (left throttle in tracked mode)

^

Rc_Engine_Sound_ESP32:1218:39: error: 'THROTTLE' was not declared in this scope

pulseWidthRaw[3] = map(SBUSchannels[THROTTLE - 1], 172, 1811, 1000, 2000); // CH3 throttle & brake

^

Rc_Engine_Sound_ESP32:1219:39: error: 'HORN' was not declared in this scope

pulseWidthRaw[4] = map(SBUSchannels[HORN - 1], 172, 1811, 1000, 2000); // CH5 jake brake, high / low beam, headlight flasher, engine on / off

^

Rc_Engine_Sound_ESP32:1220:39: error: 'FUNCTION_R' was not declared in this scope

pulseWidthRaw[5] = map(SBUSchannels[FUNCTION_R - 1], 172, 1811, 1000, 2000); // CH5 jake brake, high / low beam, headlight flasher, engine on / off

^

Rc_Engine_Sound_ESP32:1221:39: error: 'FUNCTION_L' was not declared in this scope

pulseWidthRaw[6] = map(SBUSchannels[FUNCTION_L - 1], 172, 1811, 1000, 2000); // CH6 indicators, hazards

^

Rc_Engine_Sound_ESP32:1222:39: error: 'POT2' was not declared in this scope

pulseWidthRaw[7] = map(SBUSchannels[POT2 - 1], 172, 1811, 1000, 2000); // CH7 pot 2

^

Rc_Engine_Sound_ESP32:1223:39: error: 'MODE1' was not declared in this scope

pulseWidthRaw[8] = map(SBUSchannels[MODE1 - 1], 172, 1811, 1000, 2000); // CH8 mode 1 switch

^

Rc_Engine_Sound_ESP32:1224:39: error: 'MODE2' was not declared in this scope

pulseWidthRaw[9] = map(SBUSchannels[MODE2 - 1], 172, 1811, 1000, 2000); // CH9 mode 2 switch

^

Rc_Engine_Sound_ESP32:1225:40: error: 'MOMENTARY1' was not declared in this scope

pulseWidthRaw[10] = map(SBUSchannels[MOMENTARY1 - 1], 172, 1811, 1000, 2000); // CH10

^

Rc_Engine_Sound_ESP32:1226:40: error: 'HAZARDS' was not declared in this scope

pulseWidthRaw[11] = map(SBUSchannels[HAZARDS - 1], 172, 1811, 1000, 2000); // CH11

^

Rc_Engine_Sound_ESP32:1227:40: error: 'INDICATOR_LEFT' was not declared in this scope

pulseWidthRaw[12] = map(SBUSchannels[INDICATOR_LEFT - 1], 172, 1811, 1000, 2000); // CH12

^

Rc_Engine_Sound_ESP32:1228:40: error: 'INDICATOR_RIGHT' was not declared in this scope

pulseWidthRaw[13] = map(SBUSchannels[INDICATOR_RIGHT - 1], 172, 1811, 1000, 2000); // CH13

^

C:\Users\xxx\Documents\Arduino Dateien\Sketchbook\Rc_Engine_Sound_ESP32\Rc_Engine_Sound_ESP32.ino: In function 'void readIbusCommands()':

Rc_Engine_Sound_ESP32:1278:39: error: 'STEERING' was not declared in this scope

pulseWidthRaw[1] = iBus.readChannel(STEERING - 1); // CH1 steering

^

Rc_Engine_Sound_ESP32:1279:39: error: 'GEARBOX' was not declared in this scope

pulseWidthRaw[2] = iBus.readChannel(GEARBOX - 1); // CH2 3 position switch for gearbox (left throttle in tracked mode)

^

Rc_Engine_Sound_ESP32:1280:39: error: 'THROTTLE' was not declared in this scope

pulseWidthRaw[3] = iBus.readChannel(THROTTLE - 1); // CH3 throttle & brake

^

Rc_Engine_Sound_ESP32:1281:39: error: 'HORN' was not declared in this scope

pulseWidthRaw[4] = iBus.readChannel(HORN - 1); // CH5 jake brake, high / low beam, headlight flasher, engine on / off

^

Rc_Engine_Sound_ESP32:1282:39: error: 'FUNCTION_R' was not declared in this scope

pulseWidthRaw[5] = iBus.readChannel(FUNCTION_R - 1); // CH5 jake brake, high / low beam, headlight flasher, engine on / off

^

Rc_Engine_Sound_ESP32:1283:39: error: 'FUNCTION_L' was not declared in this scope

pulseWidthRaw[6] = iBus.readChannel(FUNCTION_L - 1); // CH6 indicators, hazards

^

Rc_Engine_Sound_ESP32:1284:39: error: 'POT2' was not declared in this scope

pulseWidthRaw[7] = iBus.readChannel(POT2 - 1); // CH7 pot 2

^

Rc_Engine_Sound_ESP32:1285:39: error: 'MODE1' was not declared in this scope

pulseWidthRaw[8] = iBus.readChannel(MODE1 - 1); // CH8 mode 1 switch

^

Rc_Engine_Sound_ESP32:1286:39: error: 'MODE2' was not declared in this scope

pulseWidthRaw[9] = iBus.readChannel(MODE2 - 1); // CH9 mode 2 switch

^

Rc_Engine_Sound_ESP32:1287:40: error: 'MOMENTARY1' was not declared in this scope

pulseWidthRaw[10] = iBus.readChannel(MOMENTARY1 - 1); // CH10

^

Rc_Engine_Sound_ESP32:1288:40: error: 'HAZARDS' was not declared in this scope

pulseWidthRaw[11] = iBus.readChannel(HAZARDS - 1); // CH11

^

Rc_Engine_Sound_ESP32:1289:40: error: 'INDICATOR_LEFT' was not declared in this scope

pulseWidthRaw[12] = iBus.readChannel(INDICATOR_LEFT - 1); // CH12

^

Rc_Engine_Sound_ESP32:1290:40: error: 'INDICATOR_RIGHT' was not declared in this scope

pulseWidthRaw[13] = iBus.readChannel(INDICATOR_RIGHT - 1); // CH13

^

C:\Users\xxx\Documents\Arduino Dateien\Sketchbook\Rc_Engine_Sound_ESP32\Rc_Engine_Sound_ESP32.ino: In function 'void processRawChannels()':

Rc_Engine_Sound_ESP32:1317:11: error: 'channelAutoZero' was not declared in this scope

if (channelAutoZero && !autoZeroDone && (pulseWidthRaw > 1600 || pulseWidthRaw < 1400)) {

^

Rc_Engine_Sound_ESP32:1329:11: error: 'channelReversed' was not declared in this scope

if (channelReversed) pulseWidth = map(pulseWidthRaw, 0, 3000, 3000, 0); // Reversed

^

Rc_Engine_Sound_ESP32:1333:11: error: 'channelAutoZero' was not declared in this scope

if (channelAutoZero && !autoZeroDone && pulseWidth > pulseMinValid && pulseWidth < pulseMaxValid) pulseOffset = 1500 - pulseWidth;

^

exit status 1

'pulseNeutral' was not declared in this scope
 

LBtech

Mitglied
Sieht für mich auf den ersten Blick so aus als ob die remote config nicht richtig eingebunden ist, bzw. dort kein Profil aktiviert ist.
 
D

Deleted member 1492

Gast
Wenn mal ALLE nötigen Einstellungen vom alten Sketch 1:1 übernimmt und
wenn der alte Sketch genau mit diesen Einstellungen perfekt funktioniert, verstehe ich das nicht.

Dabei habe ich keine I6X und auch eine andere Belegung, kann aber die Einstellungen im Sketch entsprechend anpassen.
Im Moment ist das so, als wenn ich Sprit einer anderen Marke tanke und der Motor läuft nur noch im Standgas.
 

LBtech

Mitglied
Ich komme auf den Gedanken weil alle non declared in der adjustmentremote.h deklariert werden.
Wenn jetzt z.B die Profile in Zeilen 1-5?? alle auskommentiert sind ("//") dürfte genau die Fehlermeldung kommen.
Gleiches sollte passieren wenn der oben gewählte Name nicht genauso wie im Profil geschrieben ist.
 
D

Deleted member 1492

Gast
Ich hoffe es kühlt sich noch etwas ab, damit ich nochmal alles Schritt für Schritt durchgehen kann.

Im Moment habe ich einfach keine Lust.
 
Top Bottom