TheDIYGuy999
Autor
Danke für das Feedback. Gemäss meinen Messungen reichen 6V Eingangsspannung nicht. Im Bagger nehme ich auch die 6V vom ESC, erreiche aber so nur ca. 4.5V am Ausgang.Bei dem XM1584 Modul habe ich gemischte Gefühle.
Danke für das Feedback. Gemäss meinen Messungen reichen 6V Eingangsspannung nicht. Im Bagger nehme ich auch die 6V vom ESC, erreiche aber so nur ca. 4.5V am Ausgang.Bei dem XM1584 Modul habe ich gemischte Gefühle.
1. Check the TFT_eSPI config fileNew board, new processor.
No image on the display.
#include <TFT_eSPI.h>
TFT_eSPI tft = TFT_eSPI();
void setup() {
tft.init();
tft.setRotation(3);
}
void loop() {
tft.fillScreen(TFT_GREEN);
delay(300);
tft.fillRect(0,0,160,80,TFT_YELLOW);
delay(300);
tft.fillRect(0,0,70,70,TFT_BLUE);
delay(300);
tft.fillRect(20,20,30,30,TFT_RED);
delay(1000);
tft.setTextColor(TFT_WHITE, TFT_BLACK);
tft.setCursor(0, 0, 2);
tft.println("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
delay(3000);
}
Die Frage bzgl. Bluetooth habe ich mir auch gestellt, vor allem weil ich über Bluetooth später die Elektronik im Trailer steuern wollte. Aktiviertes WiFi zieht deutlich mehr Strom und ist eher uninteressant. Ein anderes Problem könnte sein, dass WiFi/Bluetooth einen Core vom ESP32 fast exklusiv für sich beanspruchen, was sich auf den restlichen zeitkritischen Code des Controllers auswirken könnte.hast du mal versucht Bluetooth einzubinden und darüber die Konfiguration (Servo Anschläge ...) zu machen?
Lassen sich überhaupt in deinen Code Bluetooth oder Wifi Bibliotheken einbinden?
Ich hab vor einer Weile mal Tests gemacht und bin zum Schluss gekommen, dass wireless den ESP32 zu stark belastet. Klar wäre es nett, BT zu haben, die Philosophie ist aber eine andere: Konfigurieren über das ressourcenschonende #define (was nicht benötigt wird, wird gar nicht auf den ESP geladen) vor dem Heraufladen.Die Frage bzgl. Bluetooth habe ich mir auch gestellt
Thanks.1. Check the TFT_eSPI config file
2. Check the wiring and the display itself. I ordered 2 LCDs - both were broken and not working. Had to order another one from another seller.
3. Try a simple sketch to test the display:.
LCD also needs GND and +3.3V (and CS connected to GND)Display on 17,18,19,23.
So, the same display works on a Nano? I assume it's the 16mHz / 5V version? Are you supplying it with 3.3 or 5V in case of the ESP32?the display works well.
Danke.Echt cool da steckt eine Menge Detailarbeit drin.
Das kann passieren, wenn die Maximaldrehzahl (uint32_t MAX_RPM_PERCENTAGE in der Fahrzeugdatei) zu hoch eingestellt ist. Der Prozessor ist dann mit dem Playback-Interrupt so stark ausgelastet, dass die Eingangssignale nicht mehr aktualisiert werden können. Es existiert zwar ein Limit, je nachdem welche Kommunikationsart verwendet wird, es kann aber sein, dass dies in der Zwischenzeit zu hoch ist, da ja einiges an zusätzlichem Code hinzu gekommen ist...bleibt jedoch bei vollgassound (500) hängen
YesCan I use the 3V3 from the Esp32 for the VCC of the display?
Yesterday you said it works?What else can I do?
/* DASHBOARD SETTINGS ************************************************************************************************
*
* for the Dashboard by Gamadril :https://github.com/Gamadril/Rc_Engine_Sound_ESP32
*
* Before you can use it:
* create the folder TFT_eSPI_Setups inside your Arduino TFT_eSPI library directory
* move/copy the file Setup43_ST7735_ESP32_80x160.h to TFT_eSPI_Setups directory
* replace the line #include <User_Setup.h> in the file User_Setup_Select.h inside TFT_eSPI library folder with #include <TFT_eSPI_Setups/Setup43_ST7735_ESP32_80x160.h>
* modify the Setup43_ST7735_ESP32_80x160.h file if you use other pins for the display connection
*
*/
#define SPI_DASHBOARD // A 0.96" SPI LCD is used as dashboard: https://www.ebay.ch/itm/174458054566?hash=item289e82a7a6:g:LpAAAOSwtL1fdDtI
// WARNING:
// Pins 18 (SCL), 19 (DC), 21 (RES) & 23 (SDA) are used for the dashboard in this case!
// The dispay CS pin needs to be connected to GND.
// Shaker, sidelights and both beacon flashers will not work!
uint8_t dashRotation = 1; // 3 = normal, 1 = upside down
#define MAX_REAL_SPEED 110 // max speed in km/h to show on the dashboard
int manualGearRatios[3] = {305, 165, 100}; // TAMIYA gear ratios: 1st 1:32.49, 2nd 1:17.66, 3rd 1:10.66, value div 100 (used for real shifting transmissions only!)
#define RPM_MAX 500 // always 500