Interfacing 8 ohm speaker with 8051 and Generating Tone
Discussion in "New Ideas regarding projects" started by ankitbajaj01 Nov 11, 2014.
Tue Nov 11 2014, 06:00 pm
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.
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
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.
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
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
http://www.8051projects.net/download-d231-musical-tone-library-for-8051.html
Wed Nov 19 2014, 07:19 pm
Thanks for the prompt response,
I will try it out suggestions of both of you.
Once done, I will update here.
Regards...
I will try it out suggestions of both of you.
Once done, I will update here.
Regards...
Powered by e107 Forum System