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?
Don't you think that also applies to everyone else?!
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.
Erik
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"
i put on the led to the port pin and it lit bright but then wend down but i didnot change your code.
i go again and led is not bright but same code ?)
i didnot change your code. whose code? what code? post (a link to) it.
i go again and led is not bright but same code ? what do you mean by "go again"? power down/power up? reset? loop?
more words do not make you appear stupid, they make you appear clear
"i put on the led to the port pin"
What does that mean?!
Trying to describe electronic circuits in words is a really Bad Idea. Upload a schematic (circuit diagram) to somewhere accessible, and post a link to it.
"it lit bright but then wend down"
Again, what does "wend down" mean??
Did you use a series resistor, or other current-limiting device? If not, it could well be that it "lit bright" until the LED and/or the port driver blew up - so it will obviously never work again!
yes it is not your code it is mine
i start the code again and the led is not bright but it was before