Shop OBEX P1 Docs P2 Docs Learn Events
applying Instruction code theory and basics — Parallax Forums

applying Instruction code theory and basics

MarkphaserMarkphaser Posts: 17
edited 2006-02-16 09:34 in General Discussion



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

  • stamptrolstamptrol Posts: 1,731
    edited 2006-02-13 13:26
    This sounds like someone's homework!

    Are these related to a Stamp project? More details and specific questions will get you more help.

    Regards
  • MarkphaserMarkphaser Posts: 17
    edited 2006-02-13 18:43
    No Not homework im trying to apply these programming terms to control external electronic components how can i do this please?
  • MarkphaserMarkphaser Posts: 17
    edited 2006-02-13 20:53

    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?

  • BeanBean Posts: 8,129
    edited 2006-02-13 20:59
    Mark,
    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."
    ·
  • MarkphaserMarkphaser Posts: 17
    edited 2006-02-13 21:09
    No not homework i don't go to college

    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
  • danieldaniel Posts: 231
    edited 2006-02-13 21:31
    Markphaser,

    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
  • BeanBean Posts: 8,129
    edited 2006-02-13 21:32
    Mark,
    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."
    ·
  • MarkphaserMarkphaser Posts: 17
    edited 2006-02-13 21:42
    I need examples or tuturials on these programming terms yes they are generic because thats the whole point of learning the concepts of the programming terms if i don't know how to use them how am i suppost to have a idea if i don't even know how to use the programming terms thats why i asked if u had examples of control,process, manipulating external electronic components using these terms


    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

  • BeanBean Posts: 8,129
    edited 2006-02-13 23:57
    Okay Mark this is my last post...

    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."
    ·
  • allanlane5allanlane5 Posts: 3,815
    edited 2006-02-14 01:49
    I would recommend going to http://www.parallax.com/html_pages/downloads/siccurriculum/documentation_sic_curriculum.asp

    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.
  • Kevin WoodKevin Wood Posts: 1,266
    edited 2006-02-14 04:08
    Mark,

    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
  • MarkphaserMarkphaser Posts: 17
    edited 2006-02-14 06:44
    ·Where can i find more·Tutorial and kits ?

    ·Which microcontroller kits is there which brands and websites ?

    ·I need more and more Tutorials where are they at? which websites please?
  • MarkphaserMarkphaser Posts: 17
    edited 2006-02-14 06:47
    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.

    Give me more and more ideas please i need more ideas so i can practice my programming skills with external electronic components please
  • MarkphaserMarkphaser Posts: 17
    edited 2006-02-14 19:10
    Bollean operators is organizing? what is it organizing? when applying it to hardware interfacing?

    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?

  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-02-14 19:26
    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 is know?· what is terms?· what is generic?· what is example?

    what do you mean by "mean"?
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-02-14 19:38
    Mark,

    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
  • Tom WalkerTom Walker Posts: 509
    edited 2006-02-14 20:53
    Markphaser,
    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...
  • MarkphaserMarkphaser Posts: 17
    edited 2006-02-15 05:54
    ·My C++ book just has the Definitions

    ·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?
  • MarkphaserMarkphaser Posts: 17
    edited 2006-02-15 06:29
    program flow, and data arrangement

    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?
  • Paul Sr.Paul Sr. Posts: 435
    edited 2006-02-15 12:56
    You seem to be ignoring some VERY HELPFUL people here who have provided excellent direction as to where you can get the EDUCATION you NEED to answer many of your questions.

    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.
  • Tom WalkerTom Walker Posts: 509
    edited 2006-02-15 14:21
    Markphaser,

    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...
  • allanlane5allanlane5 Posts: 3,815
    edited 2006-02-15 14:53
    It's possible this is a Turing test -- somebody trying to test out their AI bot against a forum of live people.

    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 SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-02-15 15:13
    This thread is being moved from the BASIC Stamps Forum to the Sandbox Forum.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • GadgetmanGadgetman Posts: 2,436
    edited 2006-02-16 09:34
    allanlane5 said...
    It's possible this is a Turing test -- somebody trying to test out their AI bot against a forum of live people.

    If so, it's in poor taste.
    If it is a turing test it passes by Catch22...
    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...
Sign In or Register to comment.