schreibfaul1 / ESP32-MiniWebRadio

Internetradio with ESP32, I2S DAC and SPI TFT Display with Touchpad
https://www.youtube.com/watch?v=6QbPee2583o
290 stars 76 forks source link

platformio esp32-a1s upload #270

Closed newbee90 closed 5 months ago

newbee90 commented 11 months ago

leider bekomme ich die Software mit PlatfornIO nicht auf das Board, sagt beides mal es ist der falsche Chip

Arne65 commented 11 months ago

Hast du die Widerstände alle entfernt laut der Anleitung ? Das sollte zwar unerheblich sein für die Programmierung abermals weiß ja nie . Du bist auch auf dem UART ?

newbee90 commented 11 months ago

ich Depp, ich muß vor dem einstecken die boot Taste drücken, sonst läßt sich das Teil nicht programmieren kannst du mir dir Einstellungen für das Display geben für common.h ? Jetzt hat es einmal funktioniert, und nun nur noch upload error 2 gibt es eine spezielle boot Prozedur?

schreibfaul1 commented 11 months ago

Guck mal, ob unten in der Statuszeile Default (ESP32-MiniWebRadio) steht. Falls ja, ändere das bitte in env:esp32(ESP32-MiniWebRadio)

newbee90 commented 11 months ago

welche Parameter brauche ich für das Display

Arne65 commented 11 months ago

Da findest du alles was brauchst

https://github.com/schreibfaul1/ESP32-MiniWebRadio/blob/master/additional_info/AI%20Thinker%20A1S%20Board.pdf

newbee90 commented 11 months ago

da finde ich wie das Display angeschlossen wird aber nicht welche Werte ich für dieses Raspberry XPT2046 brauche für die common.h

Arne65 commented 11 months ago

Common.h Definition steht doch auf Seite 2

unten auf der Seite. Next

newbee90 commented 11 months ago

das meine ich, die Werte brauche ich

define DECODER 4 // (0)VS1053 , (1)MAX98357A PCM5102A... (2)AC101 (3)ES8388 (4)WM8978

define TFT_CONTROLLER 4 // (0)ILI9341, (1)HX8347D, (2)ILI9486a, (3)ILI9486b, (4)ILI9488, (5)ST779 (6)ST7796RPI

define DISPLAY_INVERSION 0 // (0) off (1) on

define TFT_ROTATION 1 // 1 or 3 (landscape)

define TFT_FREQUENCY 40000000 // 27000000, 40000000, 80000000

define TP_VERSION 4 // (0)ILI9341, (1)ILI9341RPI, (2)HX8347D, (3)ILI9486, (4)ILI9488, (5)ST7796, (3)ST7796RPI

define TP_ROTATION 1 // 1 or 3 (landscape)

define AUDIOTASK_CORE 1 // 0 or 1

define AUDIOTASK_PRIO 2 // 0 ... 24 Priority of the Task (0...configMAX_PRIORITIES -1)

define SDMMC_FREQUENCY 20000000 // 40000000, 2000000, 10000000, not every SD Card will run at 40MHz

Arne65 commented 11 months ago

define DECODER 4 hängt davon ab ab welcher Chip drauf ist bei mir ES8383

define TFT_CONTROLLER ILI9486a

define TP_VERSION ILI 9486

Alle anderen Werte kannst du erstmal so lassen

das Display hat mir nerven gekostet um es zum laufen zu bringen

newbee90 commented 11 months ago

Decoder habe ich alle Werte von 0 bis 4 durch, kein Ton auf der Kopfhörerbuches, Weboberfläche ist da und Musiktitel wird auch angezeigt auch im Terminal bei dir als 3, 2, 2 probier ich aus

Arne65 commented 11 months ago

Hast du in Common.h alles eingetragen alles auch -1 und pin 25,26 getauscht je nach verwendetem DAC ?

newbee90 commented 11 months ago

Danke schon mal für deine Hilfe Ton ist jetzt da nachdem ich ALLE Zahlen, so wie sie auf der Liste stehen, geändert habe, nur wenn ich das Display anstecke geht nichts mehr und im Terminal kommt, 11562][E][Wire.cpp:526] write(): NULL TX buffer pointer ziehe ich im Bertieb das Display ab kommt der Ton

newbee90 commented 11 months ago

Angeschlossen habe ich es so ESP Display
22 24 5 18 12 11 13 26 23 19 19 21 18 23

schreibfaul1 commented 11 months ago

Was hast du genau für ein Display, für Rasperrys gibt es verschiedene. Eigenartig ist die Meldung 11562][E][Wire.cpp:526] write(): die auf I2C hindeutet. I2C wird nur intern zwischen dem ESP und den Audiochip benötigt und ist nicht nach außen geführt. Verlinke bitte hier ein Bild des Displays.

newbee90 commented 11 months ago

IMG_7764 oder als Upload https://ibb.co/K2TbXMM

schreibfaul1 commented 11 months ago

Damit gibt es keine Probleme, hab selber dieses Diaplay won Waveshare. image

newbee90 commented 11 months ago

oben habe ich ja geschrieben wie ich es angeschlossen habe, es sind ja nur 7 Kabel plus Betriebsspannung, das habe ich schon 5x überprüft und Kurzschlüsse habe ich auch keine drauf, das Bild hast du mir schon geschickt weil ich danach gefragt hatte.

newbee90 commented 11 months ago

TFT_Controller 2 und TP_Version 3 jetzt habe ich im Terminal Connected! invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff ets Jul 29 2019 12:21:46

rst:0x10 (RTCWDT_RTC_RESET),boot:0x37 (SPI_FAST_FLASH_BOOT) invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff ets Jul 29 2019 12:21:46

Arne65 commented 11 months ago

Ich habe denke ich das gleiche Display wie Du

image

Das Einzige was ich geändert habe ist in

Ich hatte immer einen weißes Display

Common.h TP_IRQ =13 und TP_CS =12 und dann am Display getauscht dann hat es funktioniert ich nutze es aber derzeit nicht da mir Befestigungspunkte für das Display fehlen

Arne65 commented 11 months ago

Ich benutze ein Display mit dem ILI 9488 diese haben immer auf Anhieb funktioniert

image

mit der obigen beschriebenen Änderung auch am a1s

newbee90 commented 11 months ago

bringt bei mir keinen Unterschied, das andere Display ist halt größer, das rote habe ich nur als 2,8"

Arne65 commented 11 months ago

ungültiger Header: 0xffffffff sieht für mich so aus, als ob der Flash gelöscht ist oder leer

newbee90 commented 11 months ago

die Meldung kommt aber nur wenn die Verbindung von 12 und 13 zum Display gesteckt ist

steve6375 commented 11 months ago

Did you see the comment in common.h about a 1k resistor for pin 12?

newbee90 commented 11 months ago

define VS1053_SCK -1 // VS1053 (HSPI) (sometimes we need a 1k resistor against ground)

I have no VS1053, its a ES8388 I tried but its the same

Arne65 commented 11 months ago

Ohne 12 und 13 funktioniert es dann soweit ?

Arne65 commented 11 months ago

S4 und S5 sind ON ?

newbee90 commented 11 months ago

1,2,3 off 4.5 on geht gar nichts, SD nicht gefunden 1 off, 2-5 on invalid header: 0xffffffff

Arne65 commented 11 months ago

Und die Widerstände sind raus aus dem a1s ?

R66 liegt am IO 13

newbee90 commented 11 months ago

die Widesstände sind raus IMG_7766

schreibfaul1 commented 11 months ago

Es sieht aus, als wenn GPIO0 beschaltet ist, aber Reset nicht, RST wird mit dem Display verbunden und GPIO0 ist intern MCLK und bleibt frei

newbee90 commented 11 months ago

RST ist jetzt angeschlossen und es geht auch das Display, GIO0 ist nicht belegt, wenn 12 angeschlossen ist geht gar nichts,

Arne65 commented 11 months ago

kannst mal folgendes versuchen 12 trennen Rest drücken dann 12 wieder anschließen

12 während dem Boot anschließen

sollte es dann funktionieren 12 /13 tauschen und in Common.h

newbee90 commented 11 months ago

12 und 13 tauschen hast schon geschrieben, hat nichts gebracht, sobald die 12 angeschlossen ist geht nichts mehr egal ob 12 und 13 vertauscht sind oder nicht wenn der Startbildschirm erscheint kann ich die 12 aufstecken, dann geht auch touch wie müssen denn S1 bis 3 stehen? die Farben sind auch nicht so wie sie sein sollten, ich habe mal andere Displays bestellt

schreibfaul1 commented 11 months ago

GPIO2 und GPIO12 sind "strapping pins" die über einen internen Pulldown Widerstand des ESP beim Booten aul Low gezogen werden. Wenn beim Start GPIO12 (oder GPIO2) als High erkannt wird läuft der Bootvorgang nicht korrekt. Was ist, wenn du GPIO12 beim Start unbeschaltet lässt und danach erst verbindest (zeitlich kein Problem, ist nur der Eingang für TP_IRQ)? Falls es dann funktioniert, sind die vermutlich vorhandenen PullUps des Displays zu stark.

newbee90 commented 11 months ago

sobald das Startbild erscheint kann ich GPIO12 anschließem ich habe 10k als Pullup am Display gemessen, ich warte auf die neuen Displays

schreibfaul1 commented 11 months ago

Wahrscheinlich kannst du den Pullup mit einem gleichgroßen Widerstand gegen Masse kompensieren.

steve6375 commented 11 months ago

IO12 has R37 pullup and is connected to SD card. So maybe R37 is causing issues?

newbee90 commented 11 months ago

The problem is only when a display is connected, so I wait for different displays

steve6375 commented 11 months ago

The SD card has a pull up and the display has a pull up, so maybe that is too much. R37 could be removed to see what affect it has?

newbee90 commented 11 months ago

I see R37 in the datasheed but can´t find it on the board, I find R23, between 3,3V pin and GPIO12 its over 2,3M, so maybee R37 is missing

newbee90 commented 10 months ago

Perfect, thats all I need Now my new displays are arrived, but the colour look strange I tried every number from 0 to 6 at TFT_CONTROLLER IMG_7801 learned from issues #91 and changed freq to 20000000, work for Raspi display ILI9486 but not for the red ILI9488, I didn't find an alternative gamma curve

github-actions[bot] commented 6 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 5 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.