Wiring
Table of contents
Wire the circuit as follows
DFPlayer mini
- Connect VCC to the VIN (Unregulated Voltage) of the Photon, which will allow DFPlayer Mini to receive higher voltage than 3.3V.
- Connect Ground to Ground on Photon
- Connect TX to TX on Photon (Green)
- Connect RX to RX on Photon (Yellow)
Speaker
- Connect one side (Can connect any side) of the speaker to the DAC_R (Digital to Analog Converter Right) on DFPlayer Mini
- Connect the other side to the Ground of the DFPlayer Mini
Photocell
- Connect one side (Can connect any side) of the Photocell to the VIN or 3.3V. (VIN provide higher value for photocell)
- Create a with an 10k Ohm resistor
- Connect the remaining side of the Photocell to the 10k Ohm resistor on side of the resistor
- Connect the same side of the resistor to A0 (Analog 0)
- Connect the other side of the resistor to the ground.