so i'm trying to control a 8OHM,3W,YD66-2 speaker,and i'v heard a lot of people are saying "you can't control a 3w speaker without an amplifier,transistor or ICS" but i don't have an amplifier,transistor or an IC,so can i make an amplifier from capacitors,resistors,and potentiometer?i do have a 74HC595N-HYC2125Z microcontroller if that would do any difference?also i haev an arduino uno and i'm using the pcm library,if it's not possible,is there just any way to control a 3w speaker with no amplifiers?
No, all these parts only reduce voltage.
How comes that you have expensive potentiometers but no cheap transistors? Do you have electronic tubes?
Do you have electronic tubes?
nope
you know the weird thing is that i connected the speaker the same way i connected it now 2 weeks ago and it worked without nothing i just connected it to pin 9 and to GND and it worked but now it doesn't work for some reason
does the pin 9 still work? a speaker doesn't have enough resistance so you basically shorted the pin 9
i also tried all the pins on the arduino board(exept 13,12,11.because of the sdcard module i'm using )
i tried connecting the speaker to a 220ohm resistor but still nothing
you probably burned the arduino pin
What do you mean you don’t have transistors and IC?
Why not to buy them?
You were able to purchase an Arduino, so you have some stores nearby?
look the problem is that i don't have ANY ARDUINO STORES in my city(which is al-Gharbia in Egypt ) so i buy from other stores online from like cairo or alexandria(cities in Egypt),and the delivery price is alot so i don't wanna pay delivery for 1 cheap part but, i really don't want to buy anything else with it to make the delivery worth it,so each delivery i have to buy atleast 5-8 parts.
It is a common problem for many cities in world... but that's not change the fact that you need a something like an amplifier for your speaker...
Can you use an Aliexpress? Many lots from it has a quite cheap or even free delivery worlwide
Maybe the speaker went bad.
Stick on end of the 220 resistor into the UNO 5V pin.
Connect one of the speaker wires to GND.
Now tap the other speaker wire on the free end of the 220 resistor.
If you hear a click when you tap, then the speaker is good
yeah it did produce a sound when i connected it with resistor to 5v
Then the speaker is good but probably the UNO is bad.
Do you have any LEDs?
Do you have a DMM or voltmeter?
nah i don't think the arduino is bad i tried so much projects the pins are fine
wow it's actually really cheap it's just 0.30 cents!!!!!!
Well if the speaker is good and the UNO is good, it should work.
Maybe your code is wrong.
Can you post your code so we can see.
on classic ATmega you can use the toneAC library for higher volume
I think the audio comes out on pin 11.
Is the speaker connected to pin 11?
To make sure you haven't damaged any pins, do a simple test with an LED and a 330 Ohm resistor.
Connect the LED, (making sure the polarity), in series with a resistor between the pin and gnd.
use a blink and run for each pin you should test.
i tried the toneAC library and it worked.it produced SUCH A LOUD NOISE like it genuinely scared the hell out of me
but is this library compatible with the SDFat library