This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: ME456 Solutions Chapter 2 Questions 1. What are standard servos commonly used for? Standard servos are commonly used in radio controlled airplane flaps, boat rudders, and car steering. 2. How do the Parallax Continuous Rotation servos differ from standard servos? Instead of holding a certain position like a standard servo, the Parallax Continuous Rotation servos turn a certain direction at a certain speed. 3. What does the PAUSE command do? What does PAUSE 3000 do? How about PAUSE 20 ? The PAUSE command tells the BASIC Stamp to wait for a while before executing the next command. PAUSE 3000 waits for three (3) seconds. PAUSE 20 waits for twenty (20) milliseconds. 4. How long does a millisecond last? How do you abbreviate it? A millisecond lasts one thousandth of a second. Millisecond is abbreviated "ms". 5. What PBASIC commands can you use to make other PBASIC commands to execute over and over again? The DO...LOOP command is used to make other PBASIC commands execute over and over. 6. What does a resistor do in a circuit? What are the colored bands on a resistor used for? A resistor resists the flow of electricity. The colored bands, or stripes, are used to indicate the resistor's value. 7. What does LED stand for? What does an LED do in a circuit? What are the two terminals of an LED? LED stands for light emitting diode. An LED lights up when current passes through it. The two terminals are called the anode and the cathode. 8. What command causes the BASIC Stamp to internally connect one of its I/O pins to Vdd? What command makes the same kind of connection, but to Vss? HIGH connects I/O pin to Vdd, LOW connects I/O pin to Vss. 9. What command can you use to deliver a high signal for a certain number of microseconds? How long does a microsecond last, and how is it abbreviated? The PULSOUT command delivers a high signal for a certain number of microseconds. A microsecond lasts one millionth of a second. Microsecond is abbreviated μ s. 10. What are the names of the different size variables that can be declared in a PBASIC program? What size values can each size of variable store? The variable sizes are Bit, Nib, Byte, and Word. Bit – Stores 0 to 1 Nib – Stores 0 to 15 Byte – Stores 0 to 255 Word – Stores 0 to 65535 or -32768 to +32767 Word – Stores 0 to 65535 or -32768 to +32767 11. What is the principal difference between a FOR…NEXT loop and a DO…LOOP loop? A FOR...NEXT loop executes a set number of times, but a DO...LOOP repeats indefinitely....
View Full Document
- Fall '07
- Light-emitting diode, loop, light-emitting diodes, servo, PULSOUT