Browse Source

Merge branch 'refactoring' of https://github.com/biologist79/ESPuino into refactoring

master
Torsten Stauder 4 years ago
parent
commit
3bf9126f46
  1. 5
      PCBs/Headphone with PCM5102a and TDA1308/README.md
  2. 4
      src/Wlan.cpp

5
PCBs/Headphone with PCM5102a and TDA1308/README.md

@ -2,5 +2,8 @@
This is a pcb, that was kindly provided by a user of my ESPuino. It makes use of a DAC named 'PCM5102A' with a TDA1308 as amp. PCM5102A supports I2S, so it can connected in parallel to MAX98357a to the I2S-pins BCLK, LRC and DIN. Of course, it needs 3.3V and GND, too. Please note that SMD-technique is used. <br /> This is a pcb, that was kindly provided by a user of my ESPuino. It makes use of a DAC named 'PCM5102A' with a TDA1308 as amp. PCM5102A supports I2S, so it can connected in parallel to MAX98357a to the I2S-pins BCLK, LRC and DIN. Of course, it needs 3.3V and GND, too. Please note that SMD-technique is used. <br />
The 6th pin of connector J1 is used to indicate whether there's a plug or not. That means if there is a plug, this pin is pulled to GND and therefore can be used to connect to MAX98357.SD. Doing so will mute MAX's amp and vice versa. Of course you need a special [headphone jack](https://www.conrad.de/de/p/cliff-fcr1295-klinken-steckverbinder-3-5-mm-buchse-einbau-horizontal-polzahl-3-stereo-schwarz-1-st-705830.html) to use this feature. Additionaly this 6th pin can be connected to the ESP32 in order to make use of the feature `HEADPHONE_ADJUST_ENABLE`. Doing so can optionally limit the headphone's maximum volume (configureable via GUI). <br /> The 6th pin of connector J1 is used to indicate whether there's a plug or not. That means if there is a plug, this pin is pulled to GND and therefore can be used to connect to MAX98357.SD. Doing so will mute MAX's amp and vice versa. Of course you need a special [headphone jack](https://www.conrad.de/de/p/cliff-fcr1295-klinken-steckverbinder-3-5-mm-buchse-einbau-horizontal-polzahl-3-stereo-schwarz-1-st-705830.html) to use this feature. Additionaly this 6th pin can be connected to the ESP32 in order to make use of the feature `HEADPHONE_ADJUST_ENABLE`. Doing so can optionally limit the headphone's maximum volume (configureable via GUI). <br />
Please note: the files in my GitHub-repository may be outdated regarding this PCB. Please have a look [here](https://u.pcloud.link/publink/show?code=kZjJVKkZOYso9U99qILNOMm5ehliaFtxldWX).
## Disclaimer ## Disclaimer
PCB-circuit is provided 'as is' without warranty. As previously stated it was kindly provided by a user and I only can give limited support to it. However: it runs fine without any problems in my ESPuinos.
PCB-circuit is provided 'as is' without warranty. As previously stated it was kindly provided by a user and I only can give limited support to it. However: it runs fine without any problems in my ESPuinos.

4
src/Wlan.cpp

@ -73,7 +73,7 @@ void Wlan_Cyclic(void) {
WiFi.begin(_ssid, _pwd); WiFi.begin(_ssid, _pwd);
uint8_t tryCount = 0; uint8_t tryCount = 0;
while (WiFi.status() != WL_CONNECTED && tryCount <= 4) {
while (WiFi.status() != WL_CONNECTED && tryCount <= 12) {
delay(500); delay(500);
Serial.print(F(".")); Serial.print(F("."));
tryCount++; tryCount++;
@ -166,4 +166,4 @@ void writeWifiStatusToNVS(bool wifiStatus) {
bool Wlan_IsConnected(void) { bool Wlan_IsConnected(void) {
return (WiFi.status() == WL_CONNECTED); return (WiFi.status() == WL_CONNECTED);
}
}
Loading…
Cancel
Save