Manufacturing 330/GE 393 - HW 2 First Stamp Project (2 Hours)

Total Page:16

File Type:pdf, Size:1020Kb

Manufacturing 330/GE 393 - HW 2 First Stamp Project (2 Hours)

Manufacturing 330/GE 393 - HW 2 First Stamp Project (2 hours) Assignment: Read STAMP Chapters 5-7 (Pg. 47-86). Answer the following questions. Chapter 5: Getting Started with Stamps 1. What command would you use in the editor to determine the range of your pot in STAMP units? 2. Do you need to "stop" programs that are already running if you want to download a new program? 3. If you disconnect the STAMP from its battery while it is running a program, will the STAMP continue running the program after you reconnect the battery? If so, where in the program will the program START running?

Chapter 6: Basic STAMP Boot Camp, Part 1 1. What are ALL variables cleared to before a program starts? 2. Why would we NOT want to initialize ANY of our variables to zero at the start of a program? 3. What is the maximum value for a byte in base 10? Using Appendix B as a reference, what is the maximum value for a byte in base 2? In hex? 4. Is there such thing as an ELSE command for an IF…THEN statement? How might we perform an IF… THEN… ELSE without one?

Chapter 7: Basic Stamp Boot Camp, Part 2 1. What are the two kinds of voltages that the STAMP can recognize? 2. Why should we ALWAYS avoid floating input? Draw a pushbutton circuit that pulls the open-switch high (to 5 volts). Draw a circuit that pulls the open switch to ground. 3. In Figure 7-2, does the STAMP light the LED with a high or with a low bit (1 or 0)? 4. Two pieces of metal are touched together to send a 5 volt signal over a line previously at 0 volts. Draw a diagram of what a high-speed o-scope might "see". What is physically happening to produce the features you see in this signal (Think about how similar closing a switch is to welding on a microscopic scale)? What STAMP command fixes this?

Hands On Build the dial-controlled buzzer in Chapter 7. How many times does the buzzer beep if you “accidentally” pull out the pot?

Modify the circuit by substituting the photoresistor where the potentiometer is located. Make the system beep continuously, but beep very slowly when it is dark and faster as the light level increases. In essence, we are creating a Geiger counter that measures light level (automatic flash systems and “light meters” in cameras use a VERY similar circuit). Bring your circuit and STAMP to lab for check out.

From what you learned about photoresistors in the previous circuit how would you use a photoresistor and an LED (or other light source) to make a smoke alarm? Would you want (or need) the LED to be on continuously? Classic smoke alarms use analog electronics; how might a STAMP alarm be more user-friendly? Think about how hard it is to shut alarms off. What other features would you want?

Recommended publications