• 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

Das war eigentlich nur für die "Micro RC" gedacht und wird gesendet, wenn keine Verbindung zum Sender besteht.
Ich habe die von TAMIYA montiert. Sie sind bei Schweighofer als Ersatzteil erhältlich.
Für Deinen RC-Transmitter und RC-Reciver gibt es keine Gerber.zip mehr?
Für den Receiver ja, für den Transmitter nicht. Die kannst du in Eagle selber erstellen.
1/4 Watt ist OK.
 

Nolethai

Mitglied
Danke!
An den Anschluß für den Tamiya Trailer können da auch andere LED`s angeschlossen werden? Also wenn man nicht das Lichtset verwenden möchte, oder wäre das sogar über Infrarot irgendwie möglich? Ich weiß das sind viele Fragen und Ideen die mir da im Kopf rum schwieren, aber ich kann zur Zeit ja noch nicht in den praktischen Teil gehen. Ich warte sehnsüchtig auf die Teile aus China.
Gruß Norbert
 

Cartman

Mitglied
Dann bist du schon sehr viel weiter! :thumbsup: Der Sound muss dann auch funktionieren, ausser du hast eines der folgenden Probleme:
  • Poti verstellt oder defekt. Du musst bei diesem mehrere Umgänge drehen. Ev mit Ohmmeter prüfen:
    • Gesamtwiderstand aussen 20 Kiloohm, Einstellung symmetrisch, das heisst von Aussen zur Mitte je 10 Kiloohm
  • Verstärker keine 5V Spannungsversorgung oder defekt
    • Mit Finger testen, ob er heiss wird. Darf sich nur ganz leicht erwärmen
    • 5V Versorgung am Verstärker messen. Muss zwischen 4.8 und 5.2V sein.
  • Board hat irgendwo keinen Durchgang
    • Mit Multimeter auf Stellung Diodentest die Verbindungen auf dem Board gemäss Schema testen
    • Optische Prüfung auf kalte Lötstellen
  • Lautsprecher defekt
    • Mit Multimeter den Widerstand am Stecker messen. Muss ca. 4 bis 8 Ohm haben
Vielen Dank für die Hilfe. Hab zuerst das Poti neu eingestellt, dann die Spannung am Verstärker gemessen und gefühlt, ob dieser warm wird. Soweit alles ok. Dann habe ich den Lautsprecher durchgemessen und nix. Kein Durchgang... Ich hatte allerdings zwei Stück bestellt und den anderen dann auch durchgemessen. Der hatte dann die gewünschten 4 Ohm und mit dem kam dann auch sofort Ton...
 

redpiperbob

Mitglied
Hi there can someone help please.


I have just received my sound and light boards from china.and have soldered all the connections in place I have done the short test and all is OK.


I put in the ESP board that I have installled the firmware. And modified the vehicle.h to the M35 definition and the Remote.h I have left at Flysky_FS_I6Xand removed the // from the SBUS_comunication line (I am going to use the Flysky Paladin EV Transmitter and the Flysky Fgr12B receiver) and powered the system up. At this point there is nothing else connected to the system except a wire from the 5V rail of the servo connectors to the 5 volt connector of the trailer socket. To power the ESP as in this video




I then checked the 5 Volt rail and get 5.1 volts.
I then installed the ESP and a RX
I then connected an an LED with resistor from the IL connector.
When I switch on the red led and the blue led on the ESP32 both light up and stay on . Also the led that I connected to the IL also lights and stays on. (No flashing).
Here are the messages I get from the Arduino IDE when I download the Firmware.





(In file included from C:\Users\PC\Documents\sound\Rc_Engine_Sound_ESP32\Rc_Engine_Sound_ESP32.ino:71:0:
C:\Users\PC\Documents\Arduino\libraries\FastLED-master\src/FastLED.h:14:21: note: #pragma message: FastLED version 3.004.000
# pragma message "FastLED version 3.004.000"
^


In file included from C:\Users\PC\Documents\Arduino\libraries\FastLED-master\src/FastLED.h:65:0,
from C:\Users\PC\Documents\sound\Rc_Engine_Sound_ESP32\Rc_Engine_Sound_ESP32.ino:71:
C:\Users\PC\Documents\Arduino\libraries\FastLED-master\src/fastspi.h:145:23: note: #pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged output
# pragma message "No hardware SPI pins defined. All SPI access will default to bitbanged output"


^


Sketch uses 486734 bytes (37%) of program storage space. Maximum is 1310720 bytes.
Global variables use 18704 bytes (5%) of dynamic memory, leaving 308976 bytes for local variables. Maximum is 327680 bytes.
esptool.py v3.0-dev
Serial port COM16
Connecting.....
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 7c:9e:bd:45:73:20
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 5041.2 kbit/s)...
Hash of data verified.
Compressed 18656 bytes to 12053...
Writing at 0x00001000... (100 %)
Wrote 18656 bytes (12053 compressed) at 0x00001000 in 0.2 seconds (effective 975.5 kbit/s)...
Hash of data verified.
Compressed 486848 bytes to 267581...
Writing at 0x00010000... (5 %)
Writing at 0x00014000... (11 %)
Writing at 0x00018000... (17 %)
Writing at 0x0001c000... (23 %)
Writing at 0x00020000... (29 %)
Writing at 0x00024000... (35 %)
Writing at 0x00028000... (41 %)
Writing at 0x0002c000... (47 %)
Writing at 0x00030000... (52 %)
Writing at 0x00034000... (58 %)
Writing at 0x00038000... (64 %)
Writing at 0x0003c000... (70 %)
Writing at 0x00040000... (76 %)
Writing at 0x00044000... (82 %)
Writing at 0x00048000... (88 %)
Writing at 0x0004c000... (94 %)
Writing at 0x00050000... (100 %)
Wrote 486848 bytes (267581 compressed) at 0x00010000 in 4.1 seconds (effective 941.5 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 128...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (128 compressed) at 0x00008000 in 0.0 seconds (effective 1536.0 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin... )
Can someone help please.
Thanks in advance

Bob
 
Zuletzt bearbeitet:
Flysky systems are using IBUS as default, so you may have to enable IBUS instead of SBUS. What does the serial monitor say? I assume "Initializing SBUS, check transmitter & receiver (sbusInverted true / false OK?)..."

For more informations have a close look at the chapter "interface type (communication mode) selection" of:
 

redpiperbob

Mitglied
This is what I get
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:10944
load:0x40080400,len:6388
entry 0x400806b4
Initializing SBUS, check transmitter & receiver (sbusInverted true / false OK?)...


Thanks
Bob
 
Dank den Inputs von @FrankenTrucker läuft die nächste Version sowohl wie bisher in Arduino IDE als auch in Visual Studio Code. Vorteile:
  • Als einziges muss die PlatformIO Erweiterung installiert werden.
  • Benötigte libraries (lib_deps) werden vollautomatisch von GitHub heruntergeladen
  • Es ist zum Betrieb des 80x160 SPI LCD kein Gebastel in der entsprechenden Library nötig, sondern es ist bereits über die "PlatformIO.ini" über "build_flags" vorkonfiguriert.
  • Das benötigte Board ist auch bereits vorkonfiguriert.
Soweit ich bisher getestet habe, läuft alles wie gehabt. Geändert haben nur Details (Fahrzeug- und Sounddateien sind völlig unverändert) und die Ordnerstruktur. Auf die vorgeschlagene weitere Modularisierung des Codes habe ich vorerst verzichtet. Kommt vielleicht später.
Bildschirmfoto 2021-10-20 um 21.05.45.png
 
So, hier etwas zum Spielen :D:
82.png

Bitte beachtet, dass die Ordnerstruktur geändert hat und der Sketch nun "src.ino" heisst und im Ordner "src" abgelegt ist! Dies erlaubt die Verwendung in beiden IDE's, ohne irgendwas zu ändern bzw. umzubenennen. In VS Code einfach die Erweiterung "PlatformIO" installieren und dann den von GitHub heruntergeladenen "Rc_Engine_Sound_ESP32" Ordner mit "Start" -> "Open..." öffnen:
open.png
Bin gespannt auf eure Rückmeldung. Nochmals vielen Dank an @FrankenTrucker für den Input.
 

GeeKaa

Mitglied
Looks nice. But I am getting this error message.:unsure:
Any idea where to look?

#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit
(D:\vs code\Rc_Engine_Sound_ESP32\src\src.ino).
 
Top Bottom