applying Instruction code theory and basics
Markphaser
Posts: 17
I need help to apply these programming terms to external components please
What would i use Sorting for "controlling" external components?
How can i use arithmetic operations to "control" external components?
Subrountines are inside loops or after loops mostly?
How can i use Boolean expressions to "control" external components?
How can i use operators to "control" external components?
How can i use Operands to "control" external components?
Please give simple examples controlling a resistor or capacitor, transistor,FETs, LED's, motors, op amps, inductors with theses programming terms
Comments
Are these related to a Stamp project? More details and specific questions will get you more help.
Regards
What would i use Sorting for "controlling" external components?
Using the Sorting function to Manipulate or process or control a resistor or capacitor,inductor , transistor,FETs, LED's, motors, relays?
How can i use arithmetic operations to "control" external components?
Using the arithmetic operations function to Manipulate or process or control a resistor or capacitor,inductor , transistor,FETs, LED's, motors, relays?
Subrountines are inside loops or after loops mostly?
Using the subrountines function to Manipulate or process or control a resistor or capacitor,inductor , transistor,FETs, LED's, motors, relays?
How can i use Boolean expressions to "control" external components?
Using the Boolean expressions to Manipulate or process or control a resistor or capacitor,inductor , transistor,FETs, LED's, motors, relays?
How can i use operators to "control" external components?
Using the operators to Manipulate or process or control a resistor or capacitor,inductor , transistor,FETs, LED's, motors, relays?
How can i use Operands to "control" external components?
Using the Operands to Manipulate or process or control a resistor or capacitor,inductor , transistor,FETs, LED's, motors, relays?
Your going to need to give us some (or a) concreate example of what your asking.
If it's not homework it sure sounds like it.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
"Ability may get you to the top, but it takes character to keep you there."
·
a resistor or capacitor,inductor , transistor,FETs, LED's, motors, relays is on the Stamp board
how do i use the Sorting? arithmetic operations ?Subrountines? Boolean expressions? operators?
Operands?
can u give me some·examples of using these programming terms when using these electronic components please··a resistor or capacitor,inductor , transistor,FETs, LED's, motors, relays
Since you are already at the Parallax forum, why not go ahead and take advantage of the other informational material Parallax offers.·
Specifically, I suspect that all of the the questions you are asking are addressed in the Stamps In Class series:· go to http://www.parallax.com/html_pages/edu/curriculum/sic_curriculum.asp·and start with the first·course ("What's a Microcontroller?") listed, click into that page, and download the text (a PDF file).· Read thru the table of contents, skim the chapters and I think that you will be pleasently surprised at how quickly and completely the concepts are treated.
Once done with the first course, I'd recommend doing the same for at least the following courses:· "Basic Analog and Digital", "Applied Sensors", and "Industrial Control".· There are additional courses that might catch your interest as well.
Although the PBASIC programming is gradually introduced, you might also·find the programming manual for the·Basic Stamp (purchase print copies or download from http://www.parallax.com/detail.asp?product_id=27218) to be useful.
Also, on page http://www.parallax.com/html_pages/products/books/books.asp, a number of other interesting resources are·available in print and for download.
Daniel
Post Edited (daniel) : 2/13/2006 9:34:19 PM GMT
Okay, you need to some kind of idea about what you want to accomplish. There is no real "answer" because your question is so generic (which it what make us think it's homework).
Tell us what you want to do and we can help you.
You question is so generic, it's like asking "How do I move my hands to draw some artwork ?". You need to be much more specific.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
"Ability may get you to the top, but it takes character to keep you there."
·
Programming terms:
Sorting,arithmetic operations,Subrountines,Boolean expressions ,operators,Operands
External electronic components hooked up to I/O ports :
a resistor,capacitor,inductor,transistor,FETs,LED's,motors,relays,Op-amps
I listed both programming and electronic components how do i apply them now please?
I'm trying to get down the concepts so i can learn how to use these programming functions
Again you are asking "How do I apply paint to a canvas to make a picture", but you don't know what you want a picture of ???
You need an idea first, then learn about the componets to make it happen.
If you truly cannot think of an idea. Try this:
Flash a single LED.
Now add a 2nd LED and flash them back and forth.
Now add a pot to control the flashing speed.
Now add a button to start the flashing, then another to stop it.
Right there is Resistor, LED, Pot and Buttons. Loops, conditions, subroutines (if you wanted)... etc.
You don't become an artist by studying paint, paint brushes, and paper. You become an artist by painting...
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
"Ability may get you to the top, but it takes character to keep you there."
·
Download the document for "What's a Microcontroller".
If you have the money, go to Radio Shack and purchase their "What's a Microcontroller" kit.
Go through the text, doing the experiments. That should get you started with a basic set of knowledge about what the BS2 can actually do.
There is an excellent tutorial on the Educational Downloads page that should help you out, It is called the "Parallax Basic Stamp Tutorial," and was developed by some people at Southern Illinois University. It begins with some basics of hardware and programming, and works through more advanced programming concepts applied to circuits that you will build along the way.
It is available as a PowerPoint file, or as a zipped HTML version. If you need a PowerPoint viewer, one can be freely downloaded from Microsoft. Look for the 2003 version.
If you use this tutorial, you can watch the presentation first to get the "big picture," then you can work through it, building and programming the circuits.
Here is the link to the page: www.parallax.com/html_pages/edu/downloads/downloads.asp
·Which microcontroller kits is there which brands and websites ?
·I need more and more Tutorials where are they at? which websites please?
Now add a 2nd LED and flash them back and forth.
Now add a pot to control the flashing speed.
Now add a button to start the flashing, then another to stop it.
Right there is Resistor, LED, Pot and Buttons. Loops, conditions, subroutines (if you wanted)... etc.
Give me more and more ideas please i need more ideas so i can practice my programming skills with external electronic components please
sorting is organizing? what is it organizing? when applying it to hardware interfacing?
operands is organizing? what is it organizing? when applying it to hardware interfacing?
operators is organizing? what is it organizing? when applying it to hardware interfacing?
subroutines is organizing? what is it organizing? when applying it to hardware interfacing?
arithmetic operations is organizing? what is it organizing? when applying it to hardware interfacing?
what is know?· what is terms?· what is generic?· what is example?
what is know?· what is terms?· what is generic?· what is example?
what is know?· what is terms?· what is generic?· what is example?
what do you mean by "mean"?
Have you had an opportunity to visit our web site? In the books section you'll find an excellent start text called "What's A Microcontroller?"
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
I think we are running into a slight language problem here. The words you are using (or their translations) don't seem to have any connection to each other. It is along the lines of asking "How do I fly gasoline with toaster?". Sorting does not have a "strong" correlation with "hardware interfacing" and I suspect the translation software you are using is using the very generic "organizing" for words that have more specific meanings in English...kind of like the German word "macht".
If you are not translating from non-English, I apologize...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
·Passing Variables into Functions or subrounties?
·Putting variables into Arrays,link list,Stacks?
·While loops?
·whats the difference between a For next loop VS a while loop?·
·Do while loops?
·Passing Arguments into functions or subrounties?
·How do i use these programming terms with hardware external electronic components please?
change the I/O data the input and output data and controlling it using different programming flows and branches changing the programming flow and data arrangments
How do i change the programming flow?
What are some modifications i can do to programming flow?
How do i change the data arrangments?
What are some modifications i can do to data arrangments?
It is not fair to continue to spew questions about fundamental programming practices and principles if you don't put in the effort to educate YOURSELF about the things you are asking.
I would go back through this thread and actually PUT SOME EFFORT into reading the resources that have been noted. Once you have done that, I'm sure you will be able to ask educated, cohesive questions that will probably get answers.
The simple answer is that your C++ questions have no connection to the Basic Stamp. The Stamp is programmed only in a variation of BASIC called PBASIC. C++ may be able to be used to program other microcontrollers, but is usually used for programming more complex (computer-like) machines.
It appears that you are taking the hard road and trying to learn Programming as an abstract concept at the same time that you are trying to learn something about using microcontrollers. While both of these are noble endeavors, in this case, they do not go together. There are many references for either one, but putting the two together just will not work.
As has been suggested, the "What's a Microcontroller?" free text is an excellent way to start to look at microcontrollers. Your C++ book may be a good education in that language, if you have a suitable machine and compiler to work with.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
If so, it's in poor taste.
It's also possible this is a real person, with English as their second language. If so, I again recommend the
http://www.parallax.com/html_pages/downloads/siccurriculum/documentation_sic_curriculum.asp
link, and download the "What's A Microcontroller" text.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
No AI would be·as poorly designed as this would seem to be, making it look really human...
(It should at least have caught the 'Powerpoint' word and the links and used them somehow, to generate new questions... )
My guess is that he's either a non-english speaking young student(using a dictionary but not understanding it)·or he's some sort of Psychology or Social-something student with an assignment.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't visit my new website...