Discussion in "New Ideas regarding projects" started by    ankitbajaj01    Nov 11, 2014.
Tue Nov 11 2014, 12:30 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, 01:11 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, 01:17 AM ]
Fri Nov 14 2014, 05:07 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, 01:49 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

Conversation

poojab51296
Sun Aug 20 2017, 10:23 AM
i am intending to interface sd card with STM32F4 and want to write a file in sd card using SPI protocol but using HAL only. Can anyone help me PLEASE!!!!
poojab51296
Sun Aug 20 2017, 10:22 AM
hello
rawat742
Fri Aug 18 2017, 11:37 AM
hi @ angel patel i will attach a file i hope it will be helpfull for you
ExperimenterUK
Mon Aug 14 2017, 09:57 PM
@ angel patel... just log in and post your problem
Mon Aug 14 2017, 01:45 PM
angel patel
hey any one help to make the led scrolling display
desuza6
Sat Jul 29 2017, 07:09 AM
I see the code for step motor h l 298 to rotate 45 degree, but all delay time, if I want to input sensor to h the pulses to stepmotor
rammichael
Thu Jul 27 2017, 12:05 PM
okay fine
ExperimenterUK
Wed Jul 26 2017, 07:51 PM
Please post questions in the forum, the chat box is for chat
msd007
Wed Jul 26 2017, 11:27 AM
i need code if any one have aduc706 interfacing lcd 16*2
msd007
Wed Jul 26 2017, 11:26 AM
pl help me how to write code of interfacing ADuc7026 controlleo lcd pl any one help me hoe to initializend configure the direction

Downloads

Comments

abdullah6484
Tue Aug 22 2017, 10:21 PM
crank.tp
Mon Aug 21 2017, 02:17 PM
poojab51296
Sun Aug 20 2017, 10:18 AM
kira113
Sat Aug 19 2017, 08:40 AM
Pirateak
Thu Aug 17 2017, 02:02 PM
sathishksk71
Wed Aug 16 2017, 04:47 AM
rawat742
Sun Aug 13 2017, 05:49 PM
alparslanbagriyanik
Fri Aug 11 2017, 08:10 AM

Online

Guests: 58, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 37882
Newest member: abdullah6484
Forum Activity
rawat742 Avatar
Posted By rawat742
Mon Aug 21 2017, 09:13 PM
Dear sir, I want purchase a debugger for 8051 , p...
rawat742 Avatar
Posted By rawat742
Mon Aug 21 2017, 09:09 PM
Dear Sir, I want to programe for de...
rawat742 Avatar
Posted By rawat742
Mon Aug 21 2017, 09:06 PM
Dear Sir, thanks now I have done almost my pro...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Aug 20 2017, 08:31 PM
"when i compile the program using keil ide i got s...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Aug 20 2017, 08:15 PM
You will probably get better results from a specia...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Aug 20 2017, 06:42 PM
Your data is retained in the simulation.Write data...
rawat742 Avatar
Posted By rawat742
Sun Aug 20 2017, 01:23 PM
Dear sir , I face a error mostly *** WARNING L1...
rawat742 Avatar
Posted By rawat742
Sun Aug 20 2017, 11:21 AM
Dear Sir, thanks I have done Acc to you now I am...
poojab51296 Avatar
Posted By poojab51296
Sun Aug 20 2017, 10:29 AM
Sir/Ma'am,I am trying to interface Sd card with ST...
kira113 Avatar
Posted By kira113
Sat Aug 19 2017, 08:52 AM
hello everyone i write a simple program using c la...