Discussion in "New Ideas regarding projects" started by    ankitbajaj01    Nov 11, 2014.
Tue Nov 11 2014, 06:00 pm
#1
Hello All,
Can any one guide me how to interface the 8051 with 8 ohm speaker?
I want to generate tone as following:
Ping...Ping...Ping...Ping...Ping...Ping...Ping...Ping

Please guide me.
Thu Nov 13 2014, 06:41 am
#2
An 8 ohm speaker is not a good choice, 16 or 64 ohms is better.
Better still use a piezo sounder.
With a small 8 ohm speaker add a 220 ohm resistor in series with the speaker
and use a transistor to switch the current.
Experiment with smaller resistors to get a louder sound without damaging the speaker !

To make a tone, turn the transistor on and off a 1000 times a second.
To make beeps, turn the transistor on and off 1000 times a second, for a second,
then off for a second, then repeat as often as you like.




[ Edited Thu Nov 13 2014, 06:47 am ]
Fri Nov 14 2014, 10:37 am
#3
For generating music from 8051, take a look at our musical library with demo tones.. Test it and let us know how it sounds.
http://www.8051projects.net/download-d231-musical-tone-library-for-8051.html
Wed Nov 19 2014, 07:19 pm
#4
Thanks for the prompt response,
I will try it out suggestions of both of you.
Once done, I will update here.
Regards...

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Davidbab
Tue Apr 23 2024, 10:41 am
Richardrit
Tue Apr 23 2024, 09:54 am
HenryLaf
Mon Apr 22 2024, 03:50 pm
bleradrar
Mon Apr 22 2024, 06:38 am
ppu-pro_ka
Sun Apr 21 2024, 07:39 pm
Infewow
Sun Apr 21 2024, 06:30 pm
HumanTak
Sun Apr 21 2024, 12:26 pm
Zacharybus
Sun Apr 21 2024, 02:45 am