• 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

bobcc

Mitglied
1661057627108.png1661066334215.png1661068485656.png
i am a novice, it works fine.

Based on the code written by neo2001。

down code
1,connection line
tx------rx
rx------tx
GND---GND
2,Click Download on your computer, and at the same time。
3, Press key2 and keep it pressed。
4,Press rest once。
5,Release the key2 when the download is complete.
 

Anhänge

Zuletzt bearbeitet:

Francis

Mitglied
Netter Arbeitsfreund Bobcc! Ich habe über die gleiche Idee nachgedacht, aber nur Esp32 auf unserer Sound- und Beleuchtungskarte verwendet, ohne die Originalkarte. Dadurch wird das Projekt dünner und kompakter und es bleibt ein Anschluss für die Programmierung des Esp32 gemäß dem gewünschten Modell, aber ich habe mich noch nicht gewagt. Eine Frage, hat jemand von euch jemals die Esp und Pam direkt mit der vom Regler gelieferten Spannung gespeist und die 5-V-Quelle von der Platine entfernt? Ich denke darüber nach, da die LEDs meines Boards mit 8,4 V von der Batterie und nicht mit 5 V wie beim Original gespeist werden.
 

aattsani

Mitglied
Habe mir für meinen ersten Trailer ein ESP8266-basiertes Board etwas umgebaut. Servos o.ä. verwende ich keine, insofern reichte mir Licht und ein Schalter für die Kupplung (muss ich noch ausknobeln wie ich das genau mache).

Das Board kommt mit integrierter 18650-Akku-Halterung und Ladeelektronik, sowie Boost-Converter für 5V/1A max.. Das reicht locker für den Controller und die LEDs aus. Über den Micro-USB-Anschluss kann man den Controller programmieren und gleichzeitig den Akku aufladen. Den etwas mageren Schiebeschalter habe ich mit einem "externen" Schalter ersetzt.

Den Anhang 130149 betrachten Den Anhang 130150 betrachten Den Anhang 130148 betrachten Den Anhang 130147 betrachten

Den Trailer-Sketch für den ESP8266 habe ich etwas angepasst und erweitert (ohne Gewähr):
Hallo neo2001, ich habe den Firmware-Trailer von Ihrem GitHub heruntergeladen und ausprobiert, aber die Bibliothek konnte den Fehler TickerScheduler.h nicht kompilieren
 

FrikkieBester

Mitglied
Hello Martin, when you have some time, can you please test the 2nd trailer card again? I finally have my articulated cattle trailer done….but now cannot get the setup to function correctly:

Having both trailer cards uncommented (// removed) the trailers functions 100%, but the truck does not rev up.

if I then add the // back for the 2nd trailer, the front trailer works and the truck revs correctly.

I have tried with v9.7 that I used before, and functioned 100%, and also with v9.9 but they both do the same.

I have tried VSCode and also Arduino IDE (Flysky on iBus) with Scania 143 and also tried CaboverCat3408)76B2269F-7261-4E5F-A4B8-9202975F738D.jpeg
 
Zuletzt bearbeitet:

FrikkieBester

Mitglied
Your rig looks great, Frikkie! Sorry, I currently don't have much time. Did you try SBUS? It requires less resources. You could also try to increase this value to let's say 40 or 60:
Den Anhang 142483 betrachten
Hello Martin,

I have tried various settings now with no luck :(.

Various SW versions, using VSCode and Arduino to upload.

The Pollrate I took up to 120, but then I can see it starts to affect the indicators on the trailers, but still the truck does not rev up.

My Flysky FS-i6 does not have sBus, but I had an i6X new in the box...tried that on sBus, still no luck. (with various Pollrates and SW levels)

Will try tomorrow and see if I can install an older version of VSCode and see if that makes a difference...because I KNOW it used to work with V9.7 and iBus....
 
Zuletzt bearbeitet:

FrikkieBester

Mitglied
Hello Martin,

I have tried various settings now with no luck :(.

Various SW versions, using VSCode and Arduino to upload.

The Pollrate I took up to 120, but then I can see it starts to affect the indicators on the trailers, but still the truck does not rev up.

My Flysky FS-i6 does not have sBus, but I had an i6X new in the box...tried that on sBus, still no luck. (with various Pollrates and SW levels)

Will try tomorrow and see if I can install an older version of VSCode and see if that makes a difference...because I KNOW it used to work with V9.7 and iBus....
Hello Martin,

I have now tried all possible options (iBus/SBUS, various Poll rates, various SW versions, upload with VSCode or Arduino IDE, new ESP32), but the moment the 2nd trailer is selected, the truck does not rev up....

For now I will fit the 1st trailer card in the back trailer so I have tail lights working, and then look at wiring between the 2 trailers.

Regards,

Frikkie
 

tommy1992bk

Mitglied
Hello i am now moving on to the wireless trailer and after watching the youtube tutorial i have questions
If i only have the old version board(thru hole), what should i do if i want to power it by AA battery?
If i use a normal brushed esc to operate the tamiya leg( in the tutorial is a lesu leg), how should i wire it? The signal cable to ch1, the AA battery tray to the esc power and with a branch to the input of the board?
If i dont have the tools to mill the brass plunger any alternative method to do the switch?
Thanks a lot
 

FrikkieBester

Mitglied
Hello i am now moving on to the wireless trailer and after watching the youtube tutorial i have questions
If i only have the old version board(thru hole), what should i do if i want to power it by AA battery?
If i use a normal brushed esc to operate the tamiya leg( in the tutorial is a lesu leg), how should i wire it? The signal cable to ch1, the AA battery tray to the esc power and with a branch to the input of the board?
If i dont have the tools to mill the brass plunger any alternative method to do the switch?
Thanks a lot
Hello, I used the Tamiya legs and brushed ESC on my one trailer. I only power the ESC, and then the ESC (Ch1) powers the board.
You have to ensure that this option is uncommented in the "7_adjustmentsServos" for the trailer software. (#define LEGS_ESC_MODE // use this, if your legs are driven by an ESC instead of a servo)

1663052519991.png

I prefer the switch on the truck's 5th wheel and then connected to pin "32". You have to uncomment the #define TRAILER_LIGHTS_TRAILER_PRESENCE_SWITCH_DEPENDENT in the 10_adjustmentsTrailer for the main truck software. Depending on the 5th wheel you have, you can either use the Tamiya MFU switch or a small limit switch (wires connected between Common and Normally closed). I cut a small slot into the side and glue the switch into position (be careful of superglue, it tends to "pull" into the switch and ruin it!) and bend the arm a little.

1663053560082.png 1663053528796.png 1663052950392.png

Just not sure how long the AA's will last. I have a small 850MAH Lipo and when using the legs a couple of times while playing they go flat fast.
 

Anhänge

Zuletzt bearbeitet:

tommy1992bk

Mitglied
Hello, I used the Tamiya legs and brushed ESC on my one trailer. I only power the ESC, and then the ESC (Ch1) powers the board.
You have to ensure that this option is uncommented in the "7_adjustmentsServos" for the trailer software. (#define LEGS_ESC_MODE // use this, if your legs are driven by an ESC instead of a servo)

Den Anhang 143200 betrachten

I prefer the switch on the truck's 5th wheel and then connected to pin "32". You have to uncomment the #define TRAILER_LIGHTS_TRAILER_PRESENCE_SWITCH_DEPENDENT in the 10_adjustmentsTrailer for the main truck software. Depending on the 5th wheel you have, you can either use the Tamiya MFU switch or a small limit switch (wires connected between Common and Normally closed). I cut a small slot into the side and glue the switch into position (be careful of superglue, it tends to "pull" into the switch and ruin it!) and bend the arm a little.

Den Anhang 143203 betrachten Den Anhang 143202 betrachten Den Anhang 143201 betrachten

Just not sure how long the AA's will last. I have a small 850MAH Lipo and when using the legs a couple of times while playing they go flat fast.
Thanks for your demonstration and you also remind me that i can use the soft lipo pack for dancing rider in the trailer.
 

FrikkieBester

Mitglied
Good morning,

If anyone is uploading code and have some time to test...can I ask a big favour please :giggle:

You do not need the trailer cards or any new Mac addresses, all I want is that you uncomment like below, upload the code to your truck's card and see if the truck revs up normally. I just want to rule out my PC as a possible cause.

1663307437329.png

Thank you!

Frikkie
 

Benny

Mitglied
Hallo zusammen,

nachdem ich meinen Volvo Truck 2021 sehr schön mit Licht und Sound vorsorgt habe. Haben die letzten Regentage mich inspiriert die Lunch BOX mit ordentlich Sound zu versorgen. Möchte damit rumheizen GAS-BREMSE-GAS-... Doch leider bekomme ich die Bremse nicht dazu zu bremsen. Im Debug lann ich zwar brake=true lesen aber der ESC geht nicht ins bremsen. (Klar im ESC CRAWLER Moder bremst der in Neutralstellung).
Kann mir jemand helfen auf welchen Parameter ich schauen muss? Was muss ich AN oder Ausschalten?

Ich habe ein kleines Video gemacht (das Problem wird nicht so gut dargestellt, ist aber trotzdem cool :cool: )
 

Nolethai

Mitglied
Hello Frikkie

i have tested like you want. I use iBus and had the test result is that everything (incl. the reciver) is blinking and nothing worked. After I made the upload with only the first trailer it works.

Kindly regards Norbert
 
Zuletzt bearbeitet:
If anyone is uploading code and have some time to test...can I ask a big favour please :giggle:
Sorry for letting you waiting for so long, Frikkie! I just tested in Arduino IDE 1.8.16 and VS Code, using v9.10.0 and the attached settings. Everything works as expected. It is revving just fine, even with 2 trailers.

Doch leider bekomme ich die Bremse nicht dazu zu bremsen.
Was verwendest du denn? Einen Hobbywing 1080? bitte beachte, dass dieser immer mit den in 3_adjustmentsESC.h dokumentierten Parametern laufen muss. Natürlich muss er auch am ESC Ausgang des Soundcontrollers angeschlossen werden. Wenn du keine Anfahrt- und Bremsverzögerung willst, den Crawler mode verwenden.
 

Anhänge

Zuletzt bearbeitet:

Benny

Mitglied
Hallo Martin,

Danke für deine Antwort, ich habe den HW1060 (Setup F/R oder F/B/R kein Unterschied). Natürlich am ESC Ausgang angeschlossen! Ich möchte, dass bei FB Bremsbetätigung sofort auch die Verzögerung kommt. Habe mir deine Konfiguration angesehen, deckt sich ziemlich mir meiner.
Nach sehr vielen Versuchen, kann ich sagen, dass die Bremse ungefähr jedes 10.Mal bei Betätigung funktioniert, das ist aber viel zu unzuverlässig für ein schnelles Fahrzeug.
Bei meinem Volvo Truck und altem SW Stand 12/2021 funktioniert die Bremse zuverlässig mit gleicher Fernbedienung und gleichem Empfänger.

hmm.... hast du noch Ideen?
 

Anhänge

FrikkieBester

Mitglied
Sorry for letting you waiting for so long, Frikkie! I just tested in Arduino IDE 1.8.16 and VS Code, using v9.10.0 and the attached settings. Everything works as expected. It is revving just fine, even with 2 trailers.
No problem, thank you for testing it! I have tried this various times now on 2 different laptops (IDE 1.8.13/16 and IDE2.0 and VS Code).

I do not get it, I download a new version of v9.10.0, copy your setting into the folder replacing the files. I have to comment out the //#define BATTERY_PROTECTION as the Scania's card does not have it yet. I leave everything else as is...upload the code and the truck revs up! Then I only change the MAC addresses for my 2 cards, upload again and the truck does not rev up. (trailers work 100%, all lights and legs)

#define WIRELESS_TRAILER // Disable it, if no wireless trailer is used. It may cause noise in the speaker, if no trailer is detected.
#define TRAILER_LIGHTS_TRAILER_PRESENCE_SWITCH_DEPENDENT // wireless trailer lights are switched off, if truck mounted trailer presence switch on pin 32 is closed.

// IMPORTANT!! Replace the addresses below with your trailers MAC addresses!! --------------------------
// Trailer 1
//uint8_t broadcastAddress1[] = {0x4C, 0xEB, 0xD6, 0x7C, 0x02, 0x74}; // Bruder Low Loader
uint8_t broadcastAddress1[] = {0xAC, 0x67, 0xB2, 0x37, 0xF3, 0x7C}; // SCANIA S1
//uint8_t broadcastAddress1[] = {0x4C, 0xEB, 0xD6, 0x7C, 0x1E, 0x10}; // US flatbed
//uint8_t broadcastAddress1[] = {0xAC, 0x67, 0xB2, 0x12, 0x30, 0x28}; // white board
//uint8_t broadcastAddress1[] = {0xA0, 0x20, 0xA6, 0x10, 0x46, 0x3B}; // D1 Mini ESP8266

// Trailer 2
#define TRAILER_2 // Uncomment this, if you want to use a 2nd trailer
//uint8_t broadcastAddress2[] = {0x4C, 0xEB, 0xD6, 0x7C, 0x02, 0x74}; // Bruder Low Loader
uint8_t broadcastAddress2[] = {0x34, 0x86, 0x5D, 0x3A, 0xF1, 0x5C}; //SCANIA S2
//uint8_t broadcastAddress2[] = {0xA0, 0x20, 0xA6, 0x10, 0x46, 0x3B}; // D1 Mini ESP8266

Do you still use the Mac instead of a Windows PC?
 
Top Bottom