Heey follow back which one of you s pins is that x 27



Rosa Parks in the Mediterranean Sea: Hurricane Irene is now a category 2 storm and barreling towards the U.S. Follow Trove 's Hurricane Tracking channel: if u guys end up going out 2night, hit me up. Kenji has my info...thanks 4 chatting! Police raid raw food co-op in LA. Meanwhile, no raid at Cargill, linked to salmonella poisoning. ": Watching The Great Food Truck Race and admiring my mans outfits. Nice job...!" Awww, thanks honey! Love u both. xo

i know you wont see this but I think your amazing&so pretty&such an amazing tumbler!If you follow or reply I would be so happy Busy 24 hrs - 47 calls for assistance inc 2 separate missing people (now located), 5 assaults (persons arrested or... Change in a democracy comes through participation - scary, unknown, long term commitment, not short term rebillion.

Learn about how space, design & education intersect (+ more) from Rep. Michele Bachman why she's on the presidential trail: not sure it makes it easier...it *was* 105 here today...though I rode 33 miles nonetheless... Had a great time on our Paris Roubaix celebration ride. Hope you do one of your own this weekend. words with rude high culture indeed...being back in London was a reminder of what a small city SF really is (though I still love it best!). Who the hell were those randoms who just came on stage? XfactorUS

Flag this picture

The Basic Stamp microcontroller contains 16 connection pins that is can be used whereas input/output, or I/O. Some microcontroller is such as any simple PC method that is remains contained on a solitary chip. External components such as LEDs, LCD screens or cars can be connected and controlled in the microcontroller. For instance, the microcontroller can transmit an output signal, or voltage degree, to an LED. The microcontroller can likewise obtain an input indicate, or voltage level, out of an LED. The easiest way to collection input and output pins remains by using the In, High and Low statements, inside a Stamp plan.

Difficulty: Reasonable

Instructions

Things You'll Want

Basic Stamp microcontroller panel (BS2 or equivalent) Two 33 website-ohm resistors Jumper wires Two LEDs Computer interface cable Computer Stamp editor software 9V battery or 9V AC adapter

Recommend Edits

Building some Check Circuit

1 Connect one leg of a 33 web site-ohm resistor to the Stamp pin labeled "Vdd" or "+5V." Link the other calf of the resistor to Stamp pin website. Use a jumper wire, if necessary.

2 Link the anode (longer leg) regarding an LED to the pin web site also resistor junction. Connect the cathode (shorter leg) of the LED to the Stamp pin labeled "Vss" or "ground."

3 Connect some calf of a following 33 website-ohm resistor to Stamp pin 1.

4 Connect the anode of a second LED to the free leg about the pin 1 resistor. Connect the cathode of the LED to the Stamp Vss pin.

5 Connect the interface cable to the Stamp board plus the computer. Achieve not change on power to the Stamp board.

Using the On, High and Small Statements

1 Begin a new program from the Stamp editor. Add the two header lines for the Stamp version.

3 Add "IF (In website = 1) Then" under "Do." This is a conditional statement that will note input on pin web site. The (From website = 1) piece automatically sets pin web site as an input and it detects every voltage that is is on pin  internet site.

4 Add "PAUSE 2 website website web site" below the IF assertion. This fixeds up a two-minute hold off, so modify can be observed.

5 Add "High 1" under "PAUSE." This sends some 5V degree from about pin 1. The Huge declaration automatically fixeds pin 1 since an yield.

6 Add "Else" under "High." This provides exclusive substitute to the (In website = 1) situation regarding the IF... Then declaration.

8 Add "Low 1" under "PAUSE." This sends any websiteV level away regarding pin 1. Not unlike the High declaration, the Low statement automatically sets pin 1 seeing that an yield.

9 Add "ENDIF" below "Low." The assertion "ENDIF" always has to be involved when using one IF... Consequently declaration.

1 website

Add "LOOP" to close the loop that was initiated in "Do." The loop allows you to view real-occasion results on the output of pin 1, from changes in the input on pin internet site.

11 Add "Finish" under "LOOP" and save the plan. The statement "End" designates where the plan ends.

Concurrent Input and Yield

1 Turn on the power to the Stamp board. The LED on pin website should be lit.

2 Operate the system.

3 Notice the output on pin 1. The LED on pin 1 will mild following dual seconds. Because the LED on pin website is lit, a 5V level is present and the Stamp considers the input on pin  internet site as some "1." When here is a "1" on pin web site, the Stamp outputs 5V on pin 1. That 5V output lights the LED on pin 1.

5 Notice the output on pin 1. After two seconds, the LED on pin 1 will go from. Connecting the resistor to Vss generates a websiteV level on pin  website. The situation (In web site = 1) is no longer met plus the Stamp jumps to the Else condition. The "Small" statement beneath "Else" outputs a websiteV level on pin 1, which turns off the LED.

Stamp pins can be set as input plus output, in diverse ways. Refer to the "Fundamental Stamp Syntax plus Reference Handbook" for I/O choices. If the LEDs glow a different color or become hot, turn off the Stamp energy and check the connections.

Recommend product

References

Resources

Parallax Inc: Fundamental Stamp Documentation Downloads The Seattle Robotics Community: The Basics - Microcontrollers (Component 2)