Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
Thread Tools Display Modes
Old 14th March 2008, 11:53 PM   (permalink)
Default Tune player project - Need Help

I'm trying to build this project, that will play the first line of the tune "Happy birthday to you". I want to use only 6 tones (frequencies) to play the tune.

The basic idea that I tried implementing is that, the 4093 IC produces pulses of a specific frequency (determined by C5 and R1). The frequency is supposed to be adjustable, so I'm using a potentiometer as R1.

The output from the 4093 pulse goes to the 4017 decade counter (5-stage johnson), the outputs of which are connected to a 555 timer. As each output of the decade counter goes high, the 555 timer (operating in astable mode), is to produce an output, the frequency of which will vary with the resistances (potentiometers) connected to the decade counter outputs. Therefore, by varying the potentiometers at the 4017 outputs, the frequency of the output (tones) at the 555 timer should change. And setting the resistances in sequence to produce specific frequencies should produce the tune. The hex inverter is used to reset the 555 timer, after giving gaps after the last tone played, and then the 9th output resets the 4017 to start the tune over again.

PROBLEMS:

So far, here's the trouble im having. The 4093 schmidt trigger nand gate isn't giving a pulse of consistent frequency. It seems to be varying between two frequencies. This appears to get fixed when i remove the ground connection from the Vss pin. Should I just remove the ground? Is that good for practical purposes when i make this circuit on the breadboard?

I dont seem to be getting any output at the 4017 counter and the 555 timer. I do get an output when i remove the ground from the Vss pin of the 4017 timer. However, its not the right output. THe frequencies don't change at the 555 timer as they should. Right now I have an 8 ohm resistor simulating the presence of an 8 ohm speaker. I have the potentiometers at the decade counter set to produce the following tones at the 555 timer output, giving the tune for the 1st line of "Happy birthday to you" (potentiometers should be set at 100%, as opposed to 50% as shown in diagram). I need potentiometers because i want to be able to change the tunes produced by
changing the output frequencies of the 555 timer.

Also, i'm not getting a square wave at the speaker. Its a very distored wave. Could be some speaker loading issue ?

Can anyone please guide me on what i'm doing wrong, and how I need to modify this circuit to get the results i want?

Here are the frequencies i'm using for the tune:

392 392 440 392 523 494 (Hz)
G G A G C1 B
"ha ppy birth day to you"

Any help will be greatly appreciated. Thanks !!

Oz
Attached Images
File Type: jpg tune_player.jpg (156.5 KB, 12 views)
Attached Files
File Type: pdf tune_player.pdf (51.5 KB, 4 views)
ashrau is offline   Reply With Quote
Old 15th March 2008, 02:09 AM   (permalink)
Default

On problem I see, you need decoupling capacitors for you entire circuit. More specifically one from pin 8 of the 555 to ground as close to the IC as possible. The circuit shown will not produce a 50% duty cycle squarewave.
The load on pin 3 may be two low in resistance.
__________________
The great thing about electronics is unlimited ways to do the job. The only limit is one\'s imagination. I generally think my way is best.
Show me a different way. I have an open mind.
k7elp60 is offline   Reply With Quote
Old 15th March 2008, 04:52 AM   (permalink)
Default

What simulator are you using? You'll definitely need to connect Vss to ground on all chips in the real world. Also, unused inputs on CMOS ICs need to be tied to either Vss or Vdd. You cannot let them float. You don't need D7. You can't tie O6 & O7 on the 4017 together like that because they are both outputs. You need to run all the CMOS ICs from the same voltage. You can't run one on 5V, another on 9V like that. They'll all work on the 9V just fine. Try something like this:
Attached Images
File Type: jpg tune_player.jpg (122.8 KB, 11 views)
__________________
--- The days of the digital watch are numbered. ---

Last edited by kchriste; 15th March 2008 at 05:31 AM.
kchriste is offline   Reply With Quote
Old 19th March 2008, 12:29 AM   (permalink)
Default

Hi kchriste,

Thanks for the input. I'm using MultiSim ver. 10. I tried making the modifications, but it doesnt seem to help. I still don't get any output at the 4017 decade counter, or the 555 timer. The pulse frequency from the 4093 schmidt trigger is still variable, however i noticed that it seems to get very close to constant when I configure the pot to 100% of its resistance value, i.e 100k ohms. I'm not sure why that is though. The signal from the 4093 just doesn't seem to be triggering any response from the 4017. Is it possible that the incoming frequency is too high for the 4017 ? Any thoughts would be appreciated. Thanks
ashrau is offline   Reply With Quote
Old 19th March 2008, 02:06 AM   (permalink)
Default

Quote:
Is it possible that the incoming frequency is too high for the 4017
Unlikely. Not if you are using the values listed in the diagram.

Repost a schematic of the circuit as you have it set up now. I don't have MultiSim, but maybe someone else here does, so you could post the MultiSim file as well.
__________________
--- The days of the digital watch are numbered. ---
kchriste is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Ideas for a project please! Flavs General Electronics Chat 0 24th December 2007 03:23 AM
Uni Project Advice 2-tone Electronic Projects Design/Ideas/Reviews 7 18th October 2007 12:10 AM
My professor screwed my final electronics project! kungfusansu Electronic Projects Design/Ideas/Reviews 21 26th August 2007 09:57 PM
DIY MP3 Player Project? mindctrl Electronic Projects Design/Ideas/Reviews 3 31st January 2005 04:35 AM
I want to tune the TV tuner/ 89C52 project Madanlov Micro Controllers 4 11th May 2004 09:03 AM



All times are GMT. The time now is 07:26 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.