... | ... | @@ -8,9 +8,9 @@ |
|
|
|
|
|
<p id="top"></p>
|
|
|
|
|
|
### Features
|
|
|
* **Estimated Time: 1 Hour (basic; base lab) - 4 Hours (advanced; enhancements)**
|
|
|
* **Appropriate Grades: 6-12**
|
|
|
## Features
|
|
|
* **Estimated Time: 1 Hour** (base lab) - **4 Hours** (Further Exploration)
|
|
|
* **Appropriate Grades:** 6-12
|
|
|
* **Topic Alignment:** ( **L**imited, **M**edium, **H**igh )
|
|
|
* GenCyber Cybersecurity First Principles:
|
|
|
|
... | ... | @@ -39,10 +39,10 @@ |
|
|
| Keep It Simple | L |
|
|
|
|
|
|
|
|
|
### Description
|
|
|
## Description
|
|
|
You will have the opportunity to mimic data interception from a fitness tracker using radio signals. After gathering data from your partner, you will be able to interpret and graph the results using simple techniques. From the interpreted data, you will be able to tell what kind of activities your partner is doing.
|
|
|
|
|
|
### Step 0: The Basics
|
|
|
## Step 0: The Basics
|
|
|
* Micro::Bit Coding Options
|
|
|
* [Click here to code with JavaScript/Blocks] (https://makecode.microbit.org)
|
|
|
* [Click here to code with MicroPython](https://python.microbit.org)
|
... | ... | @@ -56,12 +56,12 @@ You will have the opportunity to mimic data interception from a fitness tracker |
|
|
* To find the total acceleration, you need the following equation: $`Acceleration = \sqrt{x^2+y^2+z^2}`$
|
|
|
|
|
|
|
|
|
### Step 1: Gather Materials
|
|
|
## Step 1: Gather Materials
|
|
|
* Micro::Bit (1 per person / 2 per team)
|
|
|
* Micro-USB Cable
|
|
|
* Battery Pack (Equivalent to two AA batteries)
|
|
|
|
|
|
### Step 2: Get Familiar With Fitness Trackers
|
|
|
## Step 2: Get Familiar With Fitness Trackers
|
|
|
* A Fitness tracker will gather data about its surroundings and send it somewhere else to be synthesized. For example, Fitness watches will measure things like heart rate and steps. They will then send that information to your smart phone to be shown to you. We will be making a fitness tracker, that tracks your acceleration. It will send this data to another Micro::Bit that will graph it on the computer using Python. You will be able to see how much someone is moving, based on the graph.
|
|
|
|
|
|
* Below is code snippet that gets the acceleration and sends it over the radio to the fitTracker receiver
|
... | ... | @@ -75,7 +75,7 @@ def capture_data(): |
|
|
|
|
|
|
|
|
|
|
|
### Step 3: Download The Files
|
|
|
## Step 3: Download The Files
|
|
|
* Download (click on) the following file to get started: [05_FitTrack.zip](/uploads/32b7fbd0dbb0081998bf601b80d8110d/05_FitTrack.zip)
|
|
|
|
|
|
* Unzip FitTrack.zip (right click on the FitTrackLab.zip and select "extract all". Then, just pick where you want to save your copy of these files). Notice there are three folders/directories in FitTrackLab:
|
... | ... | @@ -85,7 +85,7 @@ def capture_data(): |
|
|
|
|
|
![files_new](/uploads/db7d5badc4c093fab35c294881ace7e4/files_new.PNG)
|
|
|
|
|
|
### Step 4: Open your editor.
|
|
|
## Step 4: Open your editor.
|
|
|
* For JavaScript/Blocks, you will use the Micro::Bit online editor: [MakeCode](https://makecode.microbit.org/). Here, you can switch back and forth between JavaScript and Blocks by clicking on the button/slider in the top center of the screen.
|
|
|
|
|
|
![blocks](/uploads/7061a5064100caa0790c714bdb1182c1/blocks.PNG)
|
... | ... | @@ -95,10 +95,10 @@ def capture_data(): |
|
|
* Python must be downloaded on your computer to run serial_reader.py. You can still complete this lab without serial_reader.py with a chrome extension [here](https://chrome.google.com/webstore/detail/serial-monitor/ohncdkkhephpakbbecnkclhjkmbjnmlo?hl=en).
|
|
|
|
|
|
|
|
|
### Step 5: Flash the base code.
|
|
|
## Step 5: Flash the base code.
|
|
|
If you don't remember how to flash code to your Micro::Bit, see the instructions [here](how-to-flash).
|
|
|
|
|
|
### Step 6: Programming!
|
|
|
## Step 6: Programming!
|
|
|
1) Read through the links under the prerequisite skills section. This will enable you to understand the basics of the lab. You want to be able to answer the following questions:
|
|
|
|
|
|
* If someone sends a message over radio waves, who can access that message?
|
... | ... | @@ -148,7 +148,7 @@ If you don't remember how to flash code to your Micro::Bit, see the instructions |
|
|
10) With your partner, employ a solution in your code. Run the experiment one last time and to see if your solution worked. What worked well in your solution? How could your solution be improved?
|
|
|
|
|
|
|
|
|
### Step 7: Further Exploration
|
|
|
## Step 7: Further Exploration
|
|
|
* Can you think of a way to track steps instead of acceleration? Maybe the fitness Tracker could also detect temperature? What else can be deduced from knowing someone's acceleration throughout the day? Spend some time exploring with your Micro::Bit and see what kind of improvements you can make. Try to steal data from other group's fitness Trackers.
|
|
|
|
|
|
* Are you able to steal fitness data from another group's tracker?
|
... | ... | |