Hello, I'm a beginner and would like to make such a mini speaker on the Andruino but I don't know how to do it
You can't directly connect a 4 or 8-ohm speaker without stressing (and possibly frying) the Arduino. Minimum impedance/resistance for a regular Arduino is 125 Ohms.
Why does that speaker have 4-wires? If it's a powered speaker you can connect it to an Arduino.
Note the the regular Arduino also doesn't have a DAC (no true-analog output).
Welcome to the Arduino forum. Where did the speaker come from, and what are you wanting to make with the speaker and your Arduino?
Good post, that has probably kept you from frying the speaker. I always use a inexpensive audio amp to drive a speaker, they are available for a few dollars and the inputs do not fry Arduinos.
Without more information we cannot give you a good answer, so answering the previous questions is important.
@henri_name1
You can connect it with a 220 ohm resistor as shown in the circuit below but it will not be very loud.
If you want it loud then you will need an amplifier
Adafruit has a good selection of Arduino-compatible audio amplifiers, and excellent "getting started" tutorials.
Two are shadows.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.

