We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
i urgently need a speaker simulator program for the project. i try searching my intrnet but cannot find much that is good. please someone must have some like anyone have library or source code for it?
First this is not a chat. You may not get an answer for a day. I assume English is not your 1st language. "not many electric bits" is not English. Try to explain this. A Simulated Speaker in software is not possible, so I assume you want something else. Like a PWM sound generator?
sound requires a mechanical movement and if a '51 is moving mechanically you have a REAL problem.
I guess (perceiving that there is a language problem here) that you are under the illusion that because there is no 'speaker' in your watch the sound is generated without any electromechanical device which is blatantly false, there MUST be some kind of a 'transducer' (e.g. speaker, piezo, ...)
Erik
Hmmm... over 6 hours with no comment from "malcom sky"
Where's the sense of urgency gone now, then...?!
sorry for long time but i had to eat and sleep.
i speaked to a lecturer to get good help and he say what he wanted was a led light so it lights when there is a sound.
now is very easy i hope.
"sorry for long time but i had to eat and sleep."
Don't you think that also applies to everyone else?!
"i speaked to a lecturer"
Yes, It's always a good idea to make sure you have the correct requirements!!
I have always thought that everyone else on web forums or mailing lists were droids or bots :)
how can i get the led to go in code?
has someone a sample code or good project please
so it lights when there is a sound. then you need a microphone (or something similar) not a speaker.
based on your previous questions:
I speaked to a lecturer either your 'lecturer' is asking you to do things he has not covered - which is totally unreasonable - or - i had to eat and sleep. which took place in class
if the first is the case, go tho the 'lecturers' boss and complain, if the second is the case, you dug that hole yourself.
Switch to a more powerful processor. Connect line out from preamp, computer or whatever to AD input of uC. Write a couple of digital filters to extract the amount of energy at different frequencies. Use PWM or similar to control a couple of LEDs. Voila - a spectrum analyzer.
Have a look at the following link http://www.keil.com/arm/mcb2300/ Its schematic & sample program
hi,
im still workin on the program bit cannot get the led to go when there is a sound.
how can i get the led to light in code?
How is the LED connected to the controller?
If it's connected to a port pin, then you just set that port pin to the appropriate level (1 or 0) required by your hardware.
If it's connected to a port pin, then you just set that port pin to the appropriate level (1 or 0) required by your hardware. with many derivatives, setting the port pin to '1' will not make the LED light up unless external measures are taken. Small LEDs (and their series resistor) directly driven by port pins should be connected between Vcc and the port pin.
I meant my answer to be a bit more generic than it now looks.
:-(
The truth of the matter is that the question is impossible to answer without proper details of how the LED is connected.
As the OP didn't even think to mention this detail, it is not surprising that he can't get it to work!
I just took a look at the whole thread and there is not one single detail from the OP.
I guess he is trying to make us curious and his next post will be "I sell crystal balls"