47 lines
752 B
Markdown
47 lines
752 B
Markdown
# HannaBox
|
|
|
|
## Microcontroller
|
|
|
|
D1 Mini ESP32
|
|
Due to mp3 playback it needs a multicore esp 32:
|
|
|
|
This library only works on multi-core ESP32 chips like the ESP32-S3. It does not work on the ESP32-S2 or the ESP32-C3 warning
|
|
|
|
## Pins
|
|
|
|
### Amplifier
|
|
```
|
|
26 -> DIN
|
|
27 -> BCLK
|
|
25 -> LRC
|
|
5V -> Vin
|
|
GND -> GND
|
|
```
|
|
|
|
### SD Card
|
|
|
|
```
|
|
CS -> 22 (D1)
|
|
MOSI -> 23 (D7)
|
|
CLK -> 18 (D5)
|
|
MISO -> 19 (D6)
|
|
```
|
|
|
|
## Buttons
|
|
|
|
```
|
|
Start / Stop -> 17 and GND
|
|
```
|
|
|
|
|
|
## TODOs
|
|
* Card Reader with SPI. Configure hspi, second SPI channel? Or does SD Card + RFID run at the same channel?
|
|
|
|

|
|
|
|
## Links
|
|
|
|
https://github.com/earlephilhower/ESP8266Audio
|
|
|
|
[Running two SPI devices at once](https://randomnerdtutorials.com/esp32-spi-communication-arduino/)
|