User Tools

Site Tools


milestone_4

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

milestone_4 [2023/03/20 12:34]
scott [Statistical Distance Experiments]
milestone_4 [2024/03/22 17:52] (current)
scott [Test and Pass Off]
Line 11: Line 11:
   * adjust the hit sensitivity level.   * adjust the hit sensitivity level.
  
-As a group (typically 4 students), you will test your system and demonstrate ​its ability to:+As a group (typically 4 students), you will test your system ​(two kits working together) ​and demonstrate ​the ability to:
   * shoot when the trigger is pulled,   * shoot when the trigger is pulled,
   * record hits using '​shooter mode' with each of the 10 frequencies,​   * record hits using '​shooter mode' with each of the 10 frequencies,​
Line 21: Line 21:
 Finally, as a group you will subject your system to a series of statistical distance measurements. Finally, as a group you will subject your system to a series of statistical distance measurements.
  
-You will need a microSD card for this task. Make sure that it is class 10 or above and has a capacity of at least 8 GB. The shop should have some of these for sale. If not, the bookstore or Amazon are good options.+You will need a microSD card for this task. Make sure that it is class 10 or above and has a capacity of at least 8 GB, but not more than 32 GB. The shop should have some of these for sale. If not, the bookstore or Amazon are good options.
  
 ---- ----
Line 62: Line 62:
  
 ==== SD Card Preparation ==== ==== SD Card Preparation ====
-Your laser tag kit needs to be portable; the game wouldn'​t be much fun to play if you have to remain attached to a desktop computer via the USB programming/​power cable. As such, the box contains a battery for powering the kit (you will need to charge this from time to time) and the ZYBO board has a slot for an microSD card containing the software that you have, to this point, downloaded to the ZYBO board via the USB cable. You will copy the software to the SD card using this [[sd_card|procedure]]. //Note that you can choose to use the software created by either pair in your group. However, I strongly suggest that you use the same software for both kits.// Once the SD card is ready to go, insert it into the SD-card socket on the ZYBO board along with your receiver and transmitter boards and start testing. Here is a general outline that you can follow.+Your laser-tag kit needs to be portable; the game wouldn'​t be much fun to play if you have to remain attached to a desktop computer via the USB programming/​power cable. As such, the box contains a battery for powering the kit (you will need to charge this from time to time) and the ZYBO board has a slot for an microSD card containing the software that you have, to this point, downloaded to the ZYBO board via the USB cable. You will copy the software to the SD card using this [[sd_card|procedure]]. //Note that you can choose to use the software created by either pair in your group. However, I strongly suggest that you use the same software for both kits.// Once the SD card is ready to go, insert it into the SD-card socket on the ZYBO board along with your receiver and transmitter boards and start testing. Here is a general outline that you can follow.
  
 NOTE: It is typically a good idea to implement your software so that each kit ignores its own frequency. The light from the LED often leaks in and partially shines on the photo diode and causes you to be hit by your own gun. NOTE: It is typically a good idea to implement your software so that each kit ignores its own frequency. The light from the LED often leaks in and partially shines on the photo diode and causes you to be hit by your own gun.
Line 74: Line 74:
  
 === Approach === === Approach ===
-Make sure that you have two laser tag kits where each one consists of an electronic box with attached Nerf gun, programmed SD card, and charged battery. Here is how I suggest that you proceed.+Make sure that you have two laser-tag kits where each one consists of an electronic box with attached Nerf gun, programmed SD card, and charged battery. Here is how I suggest that you proceed.
  
 === Step 1: Continuous Mode === === Step 1: Continuous Mode ===
Line 86: Line 86:
  
 === Step 2: Shooter Mode === === Step 2: Shooter Mode ===
-To enter shooter mode (as long as you are using the original, unmodified software for main.c with RUNNING_MODE_M3_T3 defined), just hold down BTN2 while you cycle power on the ZYBO board. The board will come up in shooter mode. Now, perform the same tests as before but watch to see that the histograms on both kits accumulate hits on the correct frequencies. If you do not detect hits, the problem is likely ​one of the following:+To enter shooter mode (as long as you are using the original, unmodified software for main.c with RUNNING_MODE_M3_T3 defined), just hold down BTN2 while you cycle power on the ZYBO board. The board will come up in shooter mode. Now, perform the same tests as before but watch to see that the histograms on both kits accumulate hits on the correct frequencies. If you do not detect hits, the problem is likely the following:
   * Your fudge factor may be too large of a value. Experiment with lower values for the fudge factor until you can detect hits at a reasonable distance. Try to select a fudge factor that is low enough to detect hits at a reasonable distances but is high enough that background noise does not cause false hits.   * Your fudge factor may be too large of a value. Experiment with lower values for the fudge factor until you can detect hits at a reasonable distance. Try to select a fudge factor that is low enough to detect hits at a reasonable distances but is high enough that background noise does not cause false hits.
  
Line 113: Line 113:
 {{  ::​probability.png?​400 ​ }} {{  ::​probability.png?​400 ​ }}
  
-where W = 1 indicates that your receiving laser tag kit detects a ‘hit,’ and W = 0 indicates that it misses a detection. (This type of random variable is known as a Bernoulli random variable, and you probably recognize it as one of the simplest ways to model outcomes of a random experiment.) Missed detections may occur for a number of reasons. You should brainstorm several reasons why these occur while you conduct this experiment.+where W = 1 indicates that your receiving laser-tag kit detects a ‘hit,’ and W = 0 indicates that it misses a detection. (This type of random variable is known as a Bernoulli random variable, and you probably recognize it as one of the simplest ways to model outcomes of a random experiment.) Missed detections may occur for a number of reasons. You should brainstorm several reasons why these occur while you conduct this experiment.
  
 ==== Objective ==== ==== Objective ====
Line 128: Line 128:
     - Notice that the width (difference between upper and lower bounds) of the confidence interval shrinks as n grows. This matches our intuition that more data will result in better estimates.     - Notice that the width (difference between upper and lower bounds) of the confidence interval shrinks as n grows. This matches our intuition that more data will result in better estimates.
   - Produce a table summarizing your results. Include the value of n, the number of successful trials at each distance, your estimates of the probabilities p<​sub>​20</​sub>,​ p<​sub>​40</​sub>,​ and p<​sub>​60</​sub>,​ and the 95% confidence intervals for each estimate.   - Produce a table summarizing your results. Include the value of n, the number of successful trials at each distance, your estimates of the probabilities p<​sub>​20</​sub>,​ p<​sub>​40</​sub>,​ and p<​sub>​60</​sub>,​ and the 95% confidence intervals for each estimate.
-  - Compare your confidence intervals with data from another ​team. You can just use their computed confidence intervals directly, you don't need to recompute confidence intervals on their raw data.+  - Compare your confidence intervals with data from another ​group. You can just use their computed confidence intervals directly, you don't need to recompute confidence intervals on their raw data.
     - Answer these questions: is one system better for all distances? Or, does the answer to this question depend upon the distance, e.g., is one system better at 20 feet and the other system better at 40 feet?     - Answer these questions: is one system better for all distances? Or, does the answer to this question depend upon the distance, e.g., is one system better at 20 feet and the other system better at 40 feet?
  
Line 134: Line 134:
  
 ===== Test and Pass Off ===== ===== Test and Pass Off =====
-Pass off requires two teams, each with a laser tag kit, to work together:+Pass off requires two teams, each with a laser-tag kit, to work together:
   - Aim gun 1 with the shooting LED pointing at the photodetector of gun 2   - Aim gun 1 with the shooting LED pointing at the photodetector of gun 2
   - Pull the trigger on gun 1   - Pull the trigger on gun 1
Line 140: Line 140:
   - Show that the 'Hit Indicator LED' on the board and top of the gun comes on for target kit 2   - Show that the 'Hit Indicator LED' on the board and top of the gun comes on for target kit 2
   - Verify that gun 2 cannot be hit by an opponent when the 'Hit Indicator LED' is on   - Verify that gun 2 cannot be hit by an opponent when the 'Hit Indicator LED' is on
-  - Verify that hits can be reliably detected when the kits are at least 40 feet apart.+  - Verify that hits can be reliably detected when the kits are at least 40 feet apart
   - Demonstrate that there are no false positives   - Demonstrate that there are no false positives
     - Point gun 2 at the room lights and demonstrate that hits are not recorded     - Point gun 2 at the room lights and demonstrate that hits are not recorded
Line 148: Line 148:
  
 ==== M4 Report ==== ==== M4 Report ====
 +The focus of this report should be on the assembly and function of the two laser-tag kits. This document should show that you know how the kit parts function, and at a high level, how the software interacts with the hardware. You should capture evidence that your kits are working (oscilloscope plots). Save the details of your statistical experiments for the Statistical Report (a separate document). ​
   - Pictures of the two kits   - Pictures of the two kits
   - Description of the physical parts of the kits   - Description of the physical parts of the kits
milestone_4.1679337288.txt.gz · Last modified: 2023/03/20 12:34 by scott