• 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

doron_b

Neuer Benutzer
Hi
I try to compile your software as first step in using it
And I found a problem in StatusLed package . there is a change in Aurdino_esp32 package in ledc module
they remove the ledcSetup function and change the ledcAttach so it use 3 parameters and not 2 as in your cpp module
i think it is only in new version of Arudino
Regards Doron
 

neilb88

Mitglied
Hi, in the 7_adjustmentsServos.h file select a Servo profile that allows you to select the option (I use SERVOS_KING_HAULER) and remove the // in front of...

//#define MODE2_TRAILER_UNLOCKING // The mode 2 button is used for trailer 5th wheel unlocking by servo CH4 (sound1 triggering will not work!)

SwB (Ch9) then unlocks the 5th wheel servo, and also switches on the Hazards if you select it in the 6_adjustmentsLights.h

Den Anhang 148034 betrachten

In the 6_adjustmentsLights.h you also have to remove the // in front of...

//#define HAZARDS_WHILE_5TH_WHEEL_UNLOCKED // Hazards on, if 5th wheel is unlocked

Den Anhang 148036 betrachten
Hello Frikkie

Where do I plug the servo?
 

Ownnemesis

Mitglied
Hallo in die runde.
Ich habe ein kleines problem. ich lese die daten über sbus ein.
mit dem channel mapping tue ich mich ein wenig schwer.
so langsamm bekomme ich das hin aber wenn ich gas gebe wird es nur etwas lauter aber bleibt im standgeräusch. blinker und horn gehen.
 

u-l-s

Mitglied
I tried adjusting the servo on the web app and it worked. It doesn’t work via visual studio
This is correct, because this values are stored in EEPROM at first programming the ESP32. To override the EEProm with the parameter from the sourcecode you must change the eeprom_id. Otherwise are changes only on the web app possible.

Look in general_settings.h:

// EEPROM settings ---------------------------------------------------------------------------------------------------------------------------------
uint8_t eeprom_id = 10; // change this id (between 1 and 255, compare with serial monitor), if you want to restore EEPROM defaults (executed if different) <<------------- NOTE!
 

neilb88

Mitglied
This is correct, because this values are stored in EEPROM at first programming the ESP32. To override the EEProm with the parameter from the sourcecode you must change the eeprom_id. Otherwise are changes only on the web app possible.

Look in general_settings.h:

// EEPROM settings ---------------------------------------------------------------------------------------------------------------------------------
uint8_t eeprom_id = 10; // change this id (between 1 and 255, compare with serial monitor), if you want to restore EEPROM defaults (executed if different) <<------------- NOTE!
Ok thanks for this info
 

u-l-s

Mitglied
Yes, this is normal. It is the second possibility to open the 5th wheel. This only works if the vehicle stoppend in modus dual rate 75% (SWA) and long in position.

Commenting out MODE2_TRAILER_UNLOCKING only causes SWB to also turn on the hazard lights and open 5th weel.
@TheDIYGuy999 : I think, this can be set in the source code by querying the definition of MODE2_TRAILER_UNLOCKING so that only one of the two options is effective.
 

neilb88

Mitglied
Yes, this is normal. It is the second possibility to open the 5th wheel. This only works if the vehicle stoppend in modus dual rate 75% (SWA) and long in position.

Commenting out MODE2_TRAILER_UNLOCKING only causes SWB to also turn on the hazard lights and open 5th weel.
@TheDIYGuy999 : I think, this can be set in the source code by querying the definition of MODE2_TRAILER_UNLOCKING so that only one of the two options is effective.
So is it possible to use SWB to operate another servo? I have a lift axle I want to operate.
 

Txracer16

Mitglied
First, thank you to TheDIYGuy999 for coming up with this and making it available to everyone! Also, sorry for the English. I built several of these units a couple years ago and had no issues programing or getting them to do what I wanted. I am using them in scale RC boats with great results.

Now fast forward to now, new unit build with left over parts from my original builds, new laptop, so latest RC_Engine_Sound, Arduino IDE and Visual Studio Code (trying to use this) downloads. It looks like the upload to the ESP32 is working, I get no error messages and it says success. But I cannot get it to work in vehicle. Tried numerous remote and other changes, but it will never respond. In my boats I am just using receiver input (PWM) on sound controller's channel 3 and bridged output to ESC from controller channel 3. Sound controller is just for sound and not controlling ESC or any lights. ESC is working fine. I tried one of my old programmed ESP32 modules on this new board and it work fine, so I know my new board is working. But the new ESP32 module will not function. I have also tried programming two different ESP32 modules and have had the same results.

One question I do have, is anything to be done with the parameters that say "void", "these needed for Visual Studio Code" in src.cpp (I did rename src.ino to src.cpp)? See screen shot below.

Screenshot 2024-07-07 102713.png

Looking for any help or tips offered as I'm at a loss now.

Thanks,
Tom
 

FrikkieBester

Mitglied
First, thank you to TheDIYGuy999 for coming up with this and making it available to everyone! Also, sorry for the English. I built several of these units a couple years ago and had no issues programing or getting them to do what I wanted. I am using them in scale RC boats with great results.

Now fast forward to now, new unit build with left over parts from my original builds, new laptop, so latest RC_Engine_Sound, Arduino IDE and Visual Studio Code (trying to use this) downloads. It looks like the upload to the ESP32 is working, I get no error messages and it says success. But I cannot get it to work in vehicle. Tried numerous remote and other changes, but it will never respond. In my boats I am just using receiver input (PWM) on sound controller's channel 3 and bridged output to ESC from controller channel 3. Sound controller is just for sound and not controlling ESC or any lights. ESC is working fine. I tried one of my old programmed ESP32 modules on this new board and it work fine, so I know my new board is working. But the new ESP32 module will not function. I have also tried programming two different ESP32 modules and have had the same results.

One question I do have, is anything to be done with the parameters that say "void", "these needed for Visual Studio Code" in src.cpp (I did rename src.ino to src.cpp)? See screen shot below.

Den Anhang 197038 betrachten

Looking for any help or tips offered as I'm at a loss now.

Thanks,
Tom
Hello,

What does the Serial monitor say?

1720410618065.png

Do you hear any quick beeps through the speaker when you power up the sound card? Another quick thing to check is the battery monitoring. Not sure if you are aware of this addition to the sound card. If you have not installed the resistors needed for the battery monitoring to work, you need to comment the #define BATTERY_PROTECTION out.

1720410705086.png

Regards,

Frikkie
 

Anhänge

Zuletzt bearbeitet:

Txracer16

Mitglied
Hello,


What does the Serial monitor say?

Not sure, will have to look.

Den Anhang 197080 betrachten

Do you hear any quick beeps through the speaker when you power up the sound card? Another quick thing to check is the battery monitoring. Not sure if you are aware of this addition to the sound card. If you have not installed the resistors needed for the battery monitoring to work, you need to comment the #define BATTERY_PROTECTION out.

I have commented out battery protection, but will double check to make sure. No beeps are heard when powering up. Do hear a slight noise, wouldn't call it a beep necessarily, that is in synch with the flashing blue led on the card.

Den Anhang 197081 betrachten

Regards,

Frikkie
Thank you for the reply. Unfortunately, we have been dealing with aftermath of hurricane Beryl. With all the clean up and just getting power and internet restored I have not had the time to mess with RC stuff. We are leaving out of town today so it may be a couple weeks before I can do further testing.

What does the Serial monitor say?
Not sure, will have to look.

Do you hear any quick beeps through the speaker when you power up the sound card? Another quick thing to check is the battery monitoring. Not sure if you are aware of this addition to the sound card. If you have not installed the resistors needed for the battery monitoring to work, you need to comment the #define BATTERY_PROTECTION out.

I have commented out battery protection, but will double check to make sure. No beeps are heard when powering up. Do hear a slight noise, wouldn't call it a beep necessarily, that is in synch with the flashing blue led on the card.

Thanks, again
 
Top Bottom