Micro-controller to Run without PC connected??
gr8_big_geek
Posts: 34
Hello all!
I'm new to this board and have minimal amount of experience in this area...so please forgive me if I sound completely ignorant.
Question(s) -
Is there a way to have your microcontroller run without being attached to a computer? (For instance, you program it all with the PC, if that's what it takes, but then store the program in the memory somehow and then let it run on it's own from then on out).
If so, how?
Also, is there a way to have your microcontroller play a .wav or .mp3 audio file? Say if you press a button (on something like: 4x4 Matrix Membrane Keypad (#27899)) and it plays a .wav file (for an error or authorization being granted or even if you want each button pressed to trigger an audio sound)
Any and/or all assistance in this area would be wonderful.
Cheers~
I'm new to this board and have minimal amount of experience in this area...so please forgive me if I sound completely ignorant.
Question(s) -
Is there a way to have your microcontroller run without being attached to a computer? (For instance, you program it all with the PC, if that's what it takes, but then store the program in the memory somehow and then let it run on it's own from then on out).
If so, how?
Also, is there a way to have your microcontroller play a .wav or .mp3 audio file? Say if you press a button (on something like: 4x4 Matrix Membrane Keypad (#27899)) and it plays a .wav file (for an error or authorization being granted or even if you want each button pressed to trigger an audio sound)
Any and/or all assistance in this area would be wonderful.
Cheers~
Comments
Thank you for the fast response! Also, many thanks for answering that question about having the microcontroller run the program without being connected to my PC.
What about the other one though concerning playing the .wav/.mp3? I located this thread here where they had some .spin files to download that would allow you to play .wav files.
I'm at a loss as to what to buy or where to begin though.
Here's what I had planned:
Basic keypad design (which I will make up with my own breadboard) with a total of 12 buttons.
10 buttons make the same beep sound (from a .wav file) and each has a value (like 1-9 and a funny character like "*").
1 will be a door bell/call button (or trigger a speaker to sound a certain .wav file in the other room)
1 will be the enter key (enters the data for checking and sounds the authorization/rejection .wav(s) as appropriate)
upon authorization I need the door to be unlocked (as the authorization .wav sounds).
I located this Matrix Membrane Keypad but I'm not sure it will do everything I need. I've worked out the kinks in design and implementation of everything else. I just need to see if I can pull the logistics of this keypad/sound portion together and I will be gold.
There are a lot of different ways in which I could pull this off but now I'm excited about the learning part of this project.
I've read mention of a "demo board" but what kind? What sort of hardware would I need? Also, I've read about an SD card...? What part is that and how do I begin working it into the microcontroller or is there some sort of demo board that ties all of this in together (using the .spin program file type)?
I'm curious but a bit lost right now. Any help leading me further in the correct direction would be great.
Thanks~
The Demo Board is probably not what you want. Most of the I/O pins of the Propeller are used for specific purposes to demonstrate the capabilities of the Propeller. There are only 8 available for other things. A better choice would be the Propeller Protoboard or the QuickStart board.
Look at the Propeller application notes here. AN006 particularly deals with using an SD card. You might also look at EFX-TEK's AP-16+ board as an example of what can be done.
The start program can be stored in the Propeller's external EEPROM.
There are several .wav file players for Propeller that use SD card for .wav file storage.
Playing .mp3 with Propeller is "impossible" without an external decoder chip.
And, of course, the Propeller can run without being connected to a computer. I would suggest using the Propeller over the Stamp, as the stamp has no software for playing WAV files so you would have to use an external chip.
there are several sound-chip emulations in the obex.
As you are a complete newbee - programming microcontrollers is fun. Especially the propeller-chip. But things aren't as easy as pluging in a USB-device and everything works. You the
programmer have to take care of most of the details.
So if you are willing to learn how to program and going up a learning curve welcome to the propeller-forum
keep the questions coming
best regards
Stefan
Thanks,