Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .astro/content-modules.mjs
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@

export default new Map([
["src/content/docs/index.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Findex.mdx&astroContentModuleFlag=true")],
["src/content/docs/getting-started/display-shields.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fgetting-started%2Fdisplay-shields.mdx&astroContentModuleFlag=true")],
["src/content/docs/extensions/display-shield-ext.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fextensions%2Fdisplay-shield-ext.mdx&astroContentModuleFlag=true")],
["src/content/docs/getting-started/intro.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fgetting-started%2Fintro.mdx&astroContentModuleFlag=true")],
["src/content/docs/microdata/guide.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fmicrodata%2Fguide.mdx&astroContentModuleFlag=true")],
["src/content/docs/getting-started/display-shields.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fgetting-started%2Fdisplay-shields.mdx&astroContentModuleFlag=true")],
["src/content/docs/microcode/create.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fmicrocode%2Fcreate.mdx&astroContentModuleFlag=true")],
["src/content/docs/microcode/do.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fmicrocode%2Fdo.mdx&astroContentModuleFlag=true")],
["src/content/docs/microdata/start.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fmicrodata%2Fstart.mdx&astroContentModuleFlag=true")],
["src/content/docs/getting-started/intro.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fgetting-started%2Fintro.mdx&astroContentModuleFlag=true")],
["src/content/docs/microcode/emotion-badge.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fmicrocode%2Femotion-badge.mdx&astroContentModuleFlag=true")],
["src/content/docs/microcode/do.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fmicrocode%2Fdo.mdx&astroContentModuleFlag=true")],
["src/content/docs/microcode/start.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fmicrocode%2Fstart.mdx&astroContentModuleFlag=true")],
["src/content/docs/microcode/when.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fmicrocode%2Fwhen.mdx&astroContentModuleFlag=true")],
["src/content/docs/resources/display-shield-ui.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fresources%2Fdisplay-shield-ui.mdx&astroContentModuleFlag=true")],
["src/content/docs/resources/faq.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fresources%2Ffaq.mdx&astroContentModuleFlag=true")],
["src/content/docs/resources/troubleshooting.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fresources%2Ftroubleshooting.mdx&astroContentModuleFlag=true")]]);
["src/content/docs/resources/troubleshooting.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fresources%2Ftroubleshooting.mdx&astroContentModuleFlag=true")],
["src/content/docs/microdata/electromagnet.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fmicrodata%2Felectromagnet.mdx&astroContentModuleFlag=true")],
["src/content/docs/microdata/guide.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fmicrodata%2Fguide.mdx&astroContentModuleFlag=true")],
["src/content/docs/microdata/start.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fmicrodata%2Fstart.mdx&astroContentModuleFlag=true")]]);

2 changes: 1 addition & 1 deletion .astro/data-store.json

Large diffs are not rendered by default.

12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ MicroData, which are described more fully in the sibling directories

# TODO

- user interface and input mechanisms
- in web app
- on hardware
More sections for the site

- Community
- Jacdac
- Robot

MicroData
- bring over content from https://github.com/microbit-apps/MicroData/blob/main/EXPERIMENTS.MD


4 changes: 3 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ export default defineConfig({
label: "MicroData",
items: [
{ label: "MicroData start", link: "/microdata/start/" },
{ label: "MicroData guide", link: "/microdata/guide/" },
{ label: "MicroData guide", link: "/microdata/guide/" },
{ label: "Electro-magnets", link: "/microdata/electromagnet/"}

],
},
{
Expand Down
68 changes: 68 additions & 0 deletions src/content/docs/microdata/electromagnet.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
title: Electro-magnet experiment
description: Measure the magnetic force from an electro-magnet
---

MicroData lets you leverage the micro:bit's magnetometer
to measure magnetic force from an electro-magnet in real-time.
This experiment investigates how the voltage,
number of turns of wire and distance affect the magnetic field
of an electro-magnet.

### Requirements:

* 9 Volt or 12 Volt battery, copper wire, an iron nail.
* Optionally: resistors

## Experiment

### How to build an electro-magnet:

1. Wrap the copper wire around the iron nail:
![Electro-magnet](images/electro_magnet.png)

2. Turn your battery off, then connect one of the ends of wire to
the positive terminal and the other end to the negative terminal:
![Electro-magnet](images/electro_magnet_powered.png)

### MicroData setup:

1. On the MicroData home screen click on Real-time Data:
![On the MicroData home screen click on Real-time Data](images/selecting_realtime_data.png)

2. Select the Magnet sensor:
![Select the Magnet sensor](./images/selecting_magnet.png)

3. Press Done and see the micro-tesla readings from the magnometer:
![Press Done and see the micro-tesla readings from the magnometer.](./images/electro_magnet_reading.png)

## Tests:

1. What is the reading on the magnetometer when there is no electromagnet nearby?

2. What is the reading on the magnetometer when using a 9 Volt battery with 15 turns of wire, when the micro:bit is 5cm from the electromagnet?

3. What is the reading on the magnetometer when using a 9 Volt battery with 15 turns of wire, when the micro:bit is 1cm from the electromagnet?

4. Name 1 control variable used for question 2 and question 3.

5. What is the reading on the magnetometer when using a 9 Volt battery with 30 turns of wire, when 5cm away from the micro:bit?

6. What is the reading on the magnetometer when using a 9 Volt battery with 30 turns of wire, when 1cm away from the micro:bit?

7. Name 1 independent variable in questions 5 and 6?

8. How does the magnetic field strength change as the electromagnet is moved closer to the micro:bit?

9. How does the magnetic field strength change as the number of turns of wire increases?

10. Why is it that increasing the number of wire turns changes the magnetic field strength?

11. Which affected the strength of the magnetic field more: changing the number of turns of wire, or changing the distance? Show your working and use appropriate units.

## Questions:

1. Name one control variable and why it was important.
2. Which setup had the highest reading on the magnometer?
3. Create a graph with the magnometer reading on the y-axis and the distance on the x-axis.
Using the data from Tests 4, 5 & 6.
2 changes: 2 additions & 0 deletions src/content/docs/microdata/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
title: MicroData guide
description: The MicroData UI and features
---

TBD
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/content/docs/microdata/images/home_screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.