Required Wiring
The HAT Motor Power will come from a USB cable that will be plugged into the battery pack.
- Green Arms Motor Wire to HAT M1 left side (1st terminal position)
- Orange Arms Motor Wire to HAT M1 right side (2nd terminal position)
- Yellow Mouth Motor Wire to HAT M2 left side (4th terminal position)
- White Mouth Motor Wire to HAT M2 right side (5th terminal position)
- Foot Button wire 1 to HAT GPIO #16
- Foot Button wire 2 to HAT Gnd
- HAT Motor Power + to External USB +5V
- HAT Motor Power - to External USB Gnd
Compact Build Additional Wiring
For the speaker wires, the order doesn't matter. Since it only has a single speaker.
- MAX98357 Vin to HAT 3V
- MAX98357 Gnd to HAT Gnd
- MAX98357 LRC to HAT GPIO #19
- MAX98357 BCLK to HAT GPIO #18
- MAX98357 DIN to HAT GPIO #21
- 100K Resistor to MAX98357 Gain
- Other side of 100K Resistor to MAX98357 Vin
- Speaker Wires to MAX98357 Speaker Output
Text editor powered by tinymce.